multi-agent-mcp
Orchestrates multiple AI agents (Product Manager, Software Architect, Engineer, QA, Reviewer) to collaboratively plan, design, implement, review, and improve software development projects via MCP tools.
README
Multi-Agent MCP Server
A sophisticated Model Context Protocol (MCP) server that orchestrates multiple AI agents to collaborate on software development projects. This system enables automated, multi-agent workflows for planning, architecture design, implementation, quality assurance, and code review.
š Features
Multi-Agent Collaboration
- Product Manager: Analyzes requirements, creates user stories, prioritizes features
- Software Architect: Designs system architecture, APIs, and data models
- Software Engineer: Implements features with clean, efficient code
- QA Engineer: Reviews code for bugs, edge cases, and vulnerabilities
- Code Reviewer: Suggests improvements for readability and maintainability
MCP Tools
plan_feature- Generate detailed feature plans with user storiesdesign_architecture- Create system architecture and technical specificationsimplement_code- Generate production-ready code implementationsreview_code- Perform quality assurance and testing reviewssuggest_improvements- Provide code refactoring and optimization suggestionscollaborate- Enable multi-agent discussions and consensus buildingfull_workflow- Execute complete development lifecycle from planning to review
Automated Workflows
- Full Development Cycle: Planning ā Architecture ā Implementation ā QA ā Review
- Terminal Automation: Auto-executes build, test, and deployment commands
- Conversation History: Maintains context across multi-agent interactions
- Error Handling: Robust error recovery and retry mechanisms
š Prerequisites
- Node.js 18+ and npm
- TypeScript 5.3+
- VS Code with GitHub Copilot Chat extension
- Claude Desktop (optional, for alternative MCP client)
š ļø Installation
-
Clone the repository
git clone <repository-url> cd multi-agent-mcp -
Install dependencies
npm install -
Build the project
npm run build
āļø Configuration
VS Code Settings (Recommended)
For full automation without terminal prompts, add these settings to your VS Code User Settings:
{
"chat.tools.terminal.autoApprove": {
"/.*/": true
},
"chat.mcp.autostart": "newAndOutdated"
}
Claude Desktop Configuration
Add to your claude_desktop_config.json:
{
"mcpServers": {
"multi-agent": {
"command": "node",
"args": ["C:\\path\\to\\multi-agent-mcp\\build\\index.js"]
}
}
}
š Usage
Starting the Server
npm start
Using with GitHub Copilot
- Open VS Code with GitHub Copilot Chat
- Start the MCP server in a terminal:
npm start - Use the full workflow tool:
Use the full_workflow tool with:
{
"requirement": "Create a user authentication system with JWT tokens",
"language": "typescript"
}
Individual Agent Tools
Plan a Feature:
Use plan_feature with:
{
"requirement": "Build a REST API for user management"
}
Design Architecture:
Use design_architecture with:
{
"feature_plan": "User management API with CRUD operations",
"tech_stack": "Node.js, Express, PostgreSQL"
}
Implement Code:
Use implement_code with:
{
"architecture": "REST API with Express router pattern",
"language": "typescript"
}
Review Code:
Use review_code with:
{
"code": "your code here",
"context": "User authentication module"
}
Multi-Agent Collaboration:
Use collaborate with:
{
"topic": "Database schema design for e-commerce platform",
"agents": "architect,engineer",
"rounds": 3
}
š Project Structure
multi-agent-mcp/
āāā src/
ā āāā index.ts # Main MCP server implementation
āāā build/ # Compiled JavaScript output
āāā package.json # Dependencies and scripts
āāā tsconfig.json # TypeScript configuration
āāā OPTIMIZATIONS.md # Performance optimizations
āāā README.md # This file
š§ Development
Building
npm run build
Watch Mode
npm run watch
Testing
npm test
š¤ Agent Capabilities
Product Manager Agent
- Requirements analysis and prioritization
- User story creation with acceptance criteria
- Feature planning and roadmap development
- Success metrics definition
Software Architect Agent
- System architecture design
- Component and API specification
- Data model design
- Technology stack recommendations
- Scalability and performance considerations
Software Engineer Agent
- Clean code implementation
- Algorithm optimization
- Error handling and edge cases
- Best practices adherence
- Documentation generation
QA Engineer Agent
- Code quality assessment
- Bug detection and vulnerability scanning
- Test case recommendations
- Edge case identification
- Performance bottleneck analysis
Code Reviewer Agent
- Code readability evaluation
- Maintainability improvements
- Refactoring suggestions
- Best practices validation
- Performance optimizations
š Workflow Example
Input: "Create a task management web app"
1. PM Agent ā Analyzes requirements, creates user stories
2. Architect Agent ā Designs React + Node.js architecture
3. Engineer Agent ā Implements components and API endpoints
4. QA Agent ā Reviews code, suggests test cases
5. Reviewer Agent ā Recommends code improvements
Output: Complete, production-ready application
š”ļø Security & Best Practices
- Terminal Command Safety: Configurable auto-approval for development commands
- Error Recovery: Robust error handling with retry mechanisms
- Conversation Context: Maintains state across multi-agent interactions
- Type Safety: Full TypeScript implementation with strict typing
š¤ Contributing
- Fork the repository
- Create a feature branch:
git checkout -b feature/new-agent - Make your changes and test thoroughly
- Submit a pull request with detailed description
š License
This project is licensed under the MIT License - see the LICENSE file for details.
š Troubleshooting
Server Won't Start
- Ensure Node.js 18+ is installed:
node --version - Check dependencies:
npm install - Verify build:
npm run build
MCP Tools Not Available
- Restart VS Code after configuration changes
- Check VS Code settings for MCP configuration
- Verify server is running:
npm start
Terminal Commands Not Auto-Executing
- Update VS Code settings with terminal auto-approve rules
- Restart VS Code to apply settings changes
š Performance
- Response Time: < 2 seconds for typical requests
- Concurrent Agents: Supports multiple simultaneous workflows
- Memory Usage: Optimized for long-running sessions
- Error Recovery: Automatic retry with exponential backoff
š® Future Enhancements
- [ ] Additional specialized agents (DevOps, Security, UX/UI)
- [ ] Integration with external APIs and services
- [ ] Custom agent training and fine-tuning
- [ ] Workflow templates and presets
- [ ] Real-time collaboration features
- [ ] Plugin system for extensibility
Built with ā¤ļø using the Model Context Protocol
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.