WA

webdevtodayjason/a2amcp

开发工具

本页由 AI 翻译,技术细节请以原文为准。 查看原文

21 stars 6 forks 质量 67 趋势 10MIT

A2AMCP 是一个 Agent2Agent MCP 通信服务器,采用了 Google 的 Agent2Agent 协议(A2A)的概念

概览

A2AMCP 将谷歌的代理对代理(A2A)通信概念引入模型上下文协议(MCP)生态系统,使 AI 代理能够实时通信、协调和协作,同时完成并行开发任务。 A2AMCP 最初为 SplitMind 创建,解决了孤立的 AI 代理在同一代码库上工作,彼此不知情对方变更的关键问题。 添加到你的配置文件中(macOS上的~/Library/Application Support/Claude/claude_desktop_config.json): 当多个AI代理在同一代码库上工作时:- : 代理会创建冲突代码、重复工作并引发合并冲突 - : 代理协调、共享接口、防止冲突并作为团队协作 A2AMCP 可以协调任何多代理场景:- : 不同代理构建独立服务 - : 前后端代理协作 - : 多个代理创建互联文档 - : 测试编写者与功能开发者协调 - : 代理负责不同的...

概述(AI 翻译)

实现AI驱动开发的无缝多代理协作

A2AMCP 将谷歌的代理对代理(A2A)通信概念引入模型上下文协议(MCP)生态系统,使 AI 代理能够实时通信、协调和协作,同时完成并行开发任务。

A2AMCP 最初为 SplitMind 创建,解决了孤立的 AI 代理在同一代码库上工作,彼此不知情对方变更的关键问题。

** ✅ 服务器状态:正常工作!所有17个工具均已实现并测试。使用现代MCP SDK 1.9.3.**

🚀 快速启动

使用 Docker (推荐)

配置你的代理

克劳德代码(CLI)

克劳德桌面

在你的配置文件中添加(macOS上的~/Library/Application Support/Claude/claude_desktop_config.json):

🎯 A2AMCP 解决了什么问题?

当多个AI代理在同一代码库上工作时:

  • 没有A2AMCP:代理会创建冲突代码,重复工作,并引发合并冲突
  • 使用 A2AMCP:代理协调、共享接口、防止冲突并作为团队协作

SplitMind 以外的通用用例

A2AMCP 可以协调任何多智能体场景:

本页由 AI 翻译,技术细节请以原文为准。

README

以下为原文 README 节选,完整内容请查看原文。

A2AMCP - Agent-to-Agent Model Context Protocol

Enabling Seamless Multi-Agent Collaboration for AI-Powered Development

A2AMCP brings Google’s Agent-to-Agent (A2A) communication concepts to the Model Context Protocol (MCP) ecosystem, enabling AI agents to communicate, coordinate, and collaborate in real-time while working on parallel development tasks.

Originally created for SplitMind, A2AMCP solves the critical problem of isolated AI agents working on the same codebase without awareness of each other’s changes.

✅ Server Status: WORKING! All 17 tools implemented and tested. Uses modern MCP SDK 1.9.3.

🚀 Quick Start

# Clone the repository
git clone https://github.com/webdevtodayjason/A2AMCP
cd A2AMCP

# Start the server
docker-compose up -d

# Verify it's running
docker ps | grep splitmind

# Test the connection
python verify_mcp.py

Configure Your Agents

Claude Code (CLI)

# Add the MCP server using Claude Code CLI
claude mcp add splitmind-a2amcp \
  -e REDIS_URL=redis://localhost:6379 \
  -- docker exec -i splitmind-mcp-server python /app/mcp-server-redis.py

Claude Desktop

Add to your configuration file (~/Library/Application Support/Claude/claude_desktop_config.json on macOS):

{
  "mcpServers": {
    "splitmind-a2amcp": {
      "command": "docker",
      "args": ["exec", "-i", "splitmind-mcp-server", "python", "/app/mcp-server-redis.py"],
      "env": {
        "REDIS_URL": "redis://redis:6379"
      }
    }
  }
}

🎯 What Problem Does A2AMCP Solve?

When multiple AI agents work on the same codebase:

  • Without A2AMCP: Agents create conflicting code, duplicate efforts, and cause merge conflicts
  • With A2AMCP: Agents coordinate, share interfaces, prevent conflicts, and work as a team

Generic Use Cases Beyond SplitMind

A2AMCP can coordinate any multi-agent scenario:

  • Microservices: Different agents building separate services
  • Full-Stack Apps: Frontend and backend agents collaborating
  • Documentation: Multiple agents creating interconnected docs
  • Testing: Test writers coordinating with feature developers
  • Refactoring: Agents working on different modules simultaneously

🏗️ Architecture

┌─────────────────┐
│   A2AMCP Server │ ← Persistent Redis-backed MCP server
│   (Port 5050)   │   handling all agent communication
└────────┬────────┘
         │ STDIO Protocol (MCP)
    ┌────┴────┬─────────┬─────────┐
    ▼         ▼         ▼         ▼
在 GitHub 查看完整 README

安装

docker exec -i splitmind-mcp-server python /app/mcp-server-redis.py
新手?先看 mcpskill.org 教程 →

配置

{ "mcpServers": { "splitmind-a2amcp": { "command": "docker", "args": ["exec", "-i", "splitmind-mcp-server", "python", "/app/mcp-server-redis.py"], "env": { "REDIS_URL": "redis://redis:6379" } } } }