A2A MCP Server
A2A ⚡ MCP エージェント
このプロジェクトでは、エージェント通信に対する 2 つの異なるアプローチを示します。
マスターコントロールプログラム(MCP) - エージェントが中央サーバーを介して通信する集中型サーバーベースのアプローチ
エージェントツーエージェント(A2A) - エージェント同士が直接通信する分散型ピアツーピアアプローチ
インストール
仮想環境を作成してアクティブ化します。
python -m venv venv
source venv/bin/activate # On Windows: venv\Scripts\activate依存関係をインストールします:
pip install -r requirements.txtRelated MCP server: Novu MCP Server
使用法
MCP サーバーとエージェント
MCP サーバーを起動します。
python cli.py run-mcp-server別のターミナルで、1 つ以上の MCP エージェントを起動します。
python cli.py run-mcp-agent --agent-id agent1
python cli.py run-mcp-agent --agent-id agent2MCPサーバーは、接続されたすべてのエージェントとそのステータスを追跡します。ブラウザでhttp://localhost:5000を開くと、ステータスを確認できます。
A2A(エージェント間)ネットワーク
最初の A2A エージェントを起動します。
python cli.py run-a2a-agent --agent-id a2a1 --port 5001追加の A2A エージェントを起動し、既存のエージェントに接続します。
python cli.py run-a2a-agent --agent-id a2a2 --port 5002 --peer localhost:5001
python cli.py run-a2a-agent --agent-id a2a3 --port 5003 --peer localhost:5001 --peer localhost:5002A2Aエージェントは、初期ピアを通じて他のエージェントを自動的に検出します。任意のエージェントのターミナルにメッセージを入力すると、接続中のすべてのエージェントにブロードキャストできます。
建築
MCP(マスターコントロールプログラム)
すべてのエージェントを追跡する集中サーバー
エージェントはサーバーに登録し、ハートビートを通じて接続を維持します。
サーバーはエージェントのステータスを監視するためのWebインターフェースを提供します
シンプルで信頼性が高いが、単一障害点がある
A2A(エージェント間)
分散型ピアツーピアネットワーク
エージェントは互いに直接接続します
メッセージがネットワークを通じて溢れかえる
より回復力があるが、より複雑な調整が必要
単一障害点なし
プロジェクト構造
a2a_mcp/
├── agents/ # Agent implementations
│ ├── mcp_agent.py # MCP-based agent
│ └── a2a_agent.py # Peer-to-peer agent
├── mcp/ # MCP server implementation
│ └── server.py # Flask-based MCP server
├── cli.py # Command-line interface
└── requirements.txt # Python dependencies貢献
デモを改善するために、お気軽に問題やプル リクエストを送信してください。
This server cannot be deployed
Related MCP Connectors
Real-time health monitoring and heartbeat tracking for agent services
MCP Server for an Agent Task Marketplace
The Remote MCP server acts as a standardized bridge between LLM applications (like Claude, ChatGPT, and Cursor) and external services, enabling AI agents to access external tools and resources. Its primary capability is providing a centralized search tool to discover other MCP servers and their respective tools. Unlike local implementations, it runs remotely with OAuth authentication and permission controls for security.
Your agents' cloud. MCP server with search, execute, packages, jobs, secrets, and integrations.
Related MCP Servers
- AlicenseBqualityDmaintenanceA server for task orchestration and coordination, facilitating task management with dependencies, multi-instance collaboration, and persistent task tracking.7026MIT

Novu MCP Serverofficial
FlicenseNot gradedqualityNot gradedmaintenanceEnables AI agents to interact with Novu's notification system, facilitating operations like sending notifications, managing subscribers, and organizing topics.4-- FlicenseNot gradedqualityDmaintenanceA server that enables AI systems to browse, retrieve content from, and interact with web pages through the Model Context Protocol.1-
- AlicenseNot gradedqualityDmaintenanceA specialized MCP server that enables AI agents to interact with Reddit, including reading posts, creating content, and managing subreddit configurations.34 npm10Apache 2.0