parallel-dev

BluEng9/parallel-dev

3.2

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

IssueSolution
SSH Permission DeniedRun ./scripts/fix-ssh.sh
Health Endpoint DownCheck if services running: docker ps
Deploy Directory MissingRun ./scripts/fix-deploy-paths.sh
Python Deps Missingpip 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:

  • FastMCP - MCP server framework
  • Claude - AI assistance
  • Open source community โค๏ธ

๐Ÿ”— Quick Links


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.