BluEng9/parallel-dev
If you are the rightful owner of parallel-dev and would like to certify it and/or have it hosted online, please leave a comment on the right or send an email to henry@mcphub.com.
The Model Context Protocol (MCP) server facilitates AI-powered parallel execution of development tasks across multiple machines, enhancing efficiency and productivity.
parallel-dev โ Parallel Development Across Your Machines
Automate development tasks across multiple machines with AI-powered parallel execution.
MCP server for Claude Code with intelligent task distribution and health monitoring.
โจ Features
- โก๏ธ Parallel execution across multiple development machines
- ๐งฐ Claude Code MCP integration with slash commands
- ๐ช Safety hooks for command validation and audit logging
- ๐ Privacy-first - local execution, no telemetry
- ๐ Health monitoring with real-time status checks
- ๐ง Per-machine deploy commands - fully customizable workflows
- ๐ฏ Branch placeholder support -
{branch}
auto-substitution
๐ Quick Start
Option 1: Automated Setup (Recommended)
git clone https://github.com/BluEng9/parallel-dev-mcp.git
cd parallel-dev-mcp
pip install -r requirements.txt
# Run complete setup (SSH + verification)
./scripts/setup-all.sh
This one command will:
- โ Generate SSH keys
- โ Configure both machines (M1 + M3)
- โ Create deploy directories
- โ Verify everything works
Option 2: Manual Setup
# 1. Clone and install
git clone https://github.com/BluEng9/parallel-dev-mcp.git
cd parallel-dev-mcp
pip install -r requirements.txt
# 2. Configure
cp config/dual-machines.example.json dual-machines.local.json
# Edit with your machine details
# 3. Setup SSH
./scripts/fix-ssh.sh
# 4. Verify
./scripts/verify-setup.sh
# 5. Start MCP server
./scripts/start.sh
Use in Claude Code
/doctor # Full system diagnostic
/health # Quick health status
/deploy both master # Deploy to all machines
๐ See for detailed instructions.
โ๏ธ Configuration
Basic Setup
Your dual-machines.local.json
controls all machine behavior:
{
"machines": {
"m1": {
"ssh": "user@127.0.0.1",
"health_url": "http://localhost:3000/health",
"deploy": [
"cd ~/Workspace/Projects/your-app && git pull origin {branch}",
"cd ~/Workspace/Projects/your-app && docker compose up -d --build"
]
},
"m3": {
"ssh": "user@192.168.0.101",
"health_url": "http://192.168.0.101:3000/health",
"deploy": [
"cd ~/Workspace/Projects/your-app && git pull origin {branch}",
"cd ~/Workspace/Projects/your-app && docker compose restart"
]
}
},
"policy": {
"max_parallel": 2,
"require_approval": ["docker compose down"],
"dangerous_patterns": ["rm -rf", "mkfs"]
}
}
๐ก Tip: Use ./scripts/fix-deploy-paths.sh
to update paths automatically.
๐ Project Structure
parallel-dev/
โโโ mcp_server/ # MCP server implementation
โ โโโ main.py # Server entry point
โ โโโ tools/ # Tool implementations
โโโ src/ # Core source code
โ โโโ doctor.py # Diagnostic tool
โ โโโ health_server.py # Test health server
โโโ scripts/ # Setup & utility scripts
โ โโโ setup-all.sh # Complete automated setup
โ โโโ fix-ssh.sh # SSH configuration
โ โโโ verify-setup.sh # Verify installation
โ โโโ fix-deploy-paths.sh # Update config paths
โโโ docs/ # Documentation
โ โโโ QUICK_START.md # 5-minute setup guide
โ โโโ SETUP_CHECKLIST.md # Detailed checklist
โ โโโ architecture/ # Design documentation
โโโ tests/ # Test suite
โโโ config/ # Configuration examples
๐ Documentation
Getting Started
- โก - Get running in 5 minutes
- ๐ - Step-by-step setup guide
- ๐ - Detailed installation
Architecture & Design
- ๐๏ธ - System design
- ๐จ - Visual architecture
- ๐ง - All config options
Reference
- โก - Common commands
- ๐ - Development roadmap
- ๐ - Solutions to common issues
๐งญ Usage Examples
System Diagnostics
/doctor # Full diagnostic report
/doctor --dry-run # Preview without execution
Health Monitoring
/health # Check all machines
Deployments
/deploy m1 master # Deploy to single machine
/deploy both feature-xyz # Deploy to all machines
Verification Scripts
./scripts/verify-setup.sh # Verify complete setup
./scripts/fix-ssh.sh # Fix SSH issues
๐ Security & Safety
Built-in Protection
- โ SSH key-based authentication
- โ Command allow-list per machine
- โ
Dangerous pattern blocking (
rm -rf
, fork bombs, etc.) - โ Audit logging with SHA-256 signatures
- โ 5-minute operation timeout
- โ Local-first (no external services)
Environment Variables
# Custom log location
export PD_LOG_DIR=~/custom-logs
# Custom state location
export PD_STATE_DIR=~/custom-state
# API keys (if needed)
export ANTHROPIC_API_KEY=sk-ant-...
Log Files
- Logs:
.parallel-dev/logs/run_*.jsonl
- State:
.parallel-dev/state/machine.facts.json
- Fallback:
~/.parallel-dev/
if local directory fails
๐งช Testing
# Run all tests
pytest tests/
# Run specific test
python tests/test_doctor.py
# Quick verification
./scripts/verify-setup.sh
๐ Troubleshooting
Quick Fixes
SSH Connection Failed:
./scripts/fix-ssh.sh
Deploy Path Wrong:
./scripts/fix-deploy-paths.sh
Verify Everything:
./scripts/verify-setup.sh
Reset Setup:
./scripts/setup-all.sh
Common Issues
Issue | Solution |
---|---|
SSH Permission Denied | Run ./scripts/fix-ssh.sh |
Health Endpoint Down | Check if services running: docker ps |
Deploy Directory Missing | Run ./scripts/fix-deploy-paths.sh |
Python Deps Missing | pip install -r requirements.txt |
๐ See for detailed solutions.
๐ค Contributing
Contributions are welcome! Please read our .
Development Setup
git clone https://github.com/BluEng9/parallel-dev-mcp.git
cd parallel-dev-mcp
python -m venv .venv
source .venv/bin/activate
pip install -r requirements.txt
# Run in development
PYTHONUNBUFFERED=1 python -m mcp_server.main
๐ Performance
- Parallel execution: Deploy to 2 machines in ~30s (vs 60s sequential)
- Health checks: Sub-second response
- Doctor diagnostics: 3-5s for full check
- Memory: ~50MB MCP server
- Logs: ~10KB per deployment
๐ License
GPL-3.0 โ see
๐ Acknowledgments
Built with:
๐ Quick Links
- ๐ฆ GitHub Repository
- ๐ Report Issues
- ๐ฌ Discussions
- ๐
- โก
Made for developers who live on more than one machine. ๐
If this project helps you, consider giving it a โญ๏ธ on GitHub!
See for all commands.