multi-agent-mcp

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.

Category
访问服务器

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 stories
  • design_architecture - Create system architecture and technical specifications
  • implement_code - Generate production-ready code implementations
  • review_code - Perform quality assurance and testing reviews
  • suggest_improvements - Provide code refactoring and optimization suggestions
  • collaborate - Enable multi-agent discussions and consensus building
  • full_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

  1. Clone the repository

    git clone <repository-url>
    cd multi-agent-mcp
    
  2. Install dependencies

    npm install
    
  3. 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

  1. Open VS Code with GitHub Copilot Chat
  2. Start the MCP server in a terminal: npm start
  3. 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

  1. Fork the repository
  2. Create a feature branch: git checkout -b feature/new-agent
  3. Make your changes and test thoroughly
  4. 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

推荐服务器

Baidu Map

Baidu Map

百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。

官方
精选
JavaScript
Playwright MCP Server

Playwright MCP Server

一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。

官方
精选
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。

官方
精选
本地
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。

官方
精选
本地
TypeScript
VeyraX

VeyraX

一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。

官方
精选
本地
graphlit-mcp-server

graphlit-mcp-server

模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。

官方
精选
TypeScript
Kagi MCP Server

Kagi MCP Server

一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。

官方
精选
Python
e2b-mcp-server

e2b-mcp-server

使用 MCP 通过 e2b 运行代码。

官方
精选
Neon MCP Server

Neon MCP Server

用于与 Neon 管理 API 和数据库交互的 MCP 服务器

官方
精选
Exa MCP Server

Exa MCP Server

模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。

官方
精选