
vishalmysore/mcp-agentic-mesh
Developer toolsこのページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。 原文を見る
mCP および A2A プロトコルの 4 つの異なるサーバー間での Agentic Mesh を使用します
概要
このプロジェクトでは、MCP と A2A プロトコルの 4 つの異なるサーバー間での Agentic Mesh を使用する方法を説明します。 各サーバーは特定のドメインに対して責任を負い、独立または他者との組み合わせで提携することができます。 Model Context Protocol (MCP) と Agent-to-Agent (A2A) 通信プロトコルを使用して複数のサーバーアーキテクチャを持っています。 デザート、ジム、レストラン、ヨガなどの各種ドメインを扱うように設計しております。 4つの別々のサーバーを実装: 1. デザートサーバー(ポート7863) 2. ジムサーバー(ポート7864) 3. レストランサーバー(ポート7865) 4. ヨガサーバー(ポート7866) Dessertサーバーのアプリケーションプロパティ: Dessertサーバーは、ポート7863で起動します: [http://localhost:7863] ジムサーバーのアプリケーションプロパティ: ジムサーバは、ポート7864で起動します。[http://localhost:7864] レストラン サーバーのアプリケーションプロパティ: レストランサーバは、ポート7865で起動します: [http://localhost:7865]
概要(AI 翻訳)
このプロジェクトでは、MCP と A2A プロトコルの 4 つの異なるサーバー間での Agentic Mesh を使用する方法を説明します。 各サーバーは特定のドメインに対して責任を負い、独立または他者との組み合わせで提携することができます。 Model Context Protocol (MCP) と Agent-to-Agent (A2A) 通信プロトコルを使用して複数のサーバーアーキテクチャを持っています。 デザート、ジム、レストラン、ヨガなどの各種ドメインを扱うように設計しております。
4つの別々のサーバーを実装します。
- デザート サーバー (ポート 7863)
- ジム サーバー (ポート 7864)
- レストラン サーバー (ポート 7865)
- ヨガサーバー (ポート 7866)
サーバーの起動
デザートサーバー
Dessertサーバーを起動するには、以下を実行します。
Dessertサーバーのアプリケーションプロパティ:
Dessertサーバーは、ポート7863で起動します: [http://localhost:7863]
ジム サーバー
ジムサーバを起動するには、以下を実行します。
ジムサーバーのアプリケーションプロパティ:
ジムサーバは、ポート7864で起動します。[http://localhost:7864]
##レストランサーバー レストラン サーバーを開始するには、以下を実行します。
レストラン サーバーのアプリケーションプロパティ:
レストランサーバは、ポート7865で起動します: [http://localhost:7865]
###ヨガサーバー ヨガサーバーを開始するには、以下を実行します。
ヨガサーバーのアプリケーションプロパティ:
このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。
README
以下は原文 README の抜粋です。原文を見る。
Multi-Server MCP and A2A Implementation
This project demonstrates how to use agentic Mesh across 4 different servers for MCP and A2A protocols. Each server is responsible for a specific domain and can be queried independently or in combination with others. It has a multi-server architecture using the Model Context Protocol (MCP) and Agent-to-Agent (A2A) communication protocols. It is designed to handle various domains such as dessert, gym, restaurant, and yoga services.
Implements four separate servers:
- Dessert Server (Port 7863)
- Gym Server (Port 7864)
- Restaurant Server (Port 7865)
- Yoga Server (Port 7866)
Starting the Servers
Dessert Server
To start the Dessert server, run:
mvn spring-boot:run -Pdessert
The Dessert server’s application properties:
spring.application.name=dessert-server
server.port=7863
a2a.persistence=cache
tools4ai.properties.path=tools4ai_dessert.properties
The Dessert server will start on port 7863: http://localhost:7863
Gym Server
To start the Gym server, run:
mvn spring-boot:run -Pgym
The Gym server’s application properties:
spring.application.name=gym-server
server.port=7864
a2a.persistence=cache
tools4ai.properties.path=tools4ai_gym.properties
The Gym server will start on port 7864: http://localhost:7864
Restaurant Server
To start the Restaurant server, run:
mvn spring-boot:run -Prestaurant
The Restaurant server’s application properties:
spring.application.name=restaurant-server
server.port=7865
a2a.persistence=cache
tools4ai.properties.path=tools4ai_restaurant.properties
The Restaurant server will start on port 7865: http://localhost:7865
Yoga Server
To start the Yoga server, run:
mvn spring-boot:run -Pyoga
The Yoga server’s application properties:
spring.application.name=yoga-server
server.port=7866
a2a.persistence=cache
tools4ai.properties.path=tools4ai_yoga.properties
The Yoga server will start on port 7866: http://localhost:7866
Each server has its own tools4ai properties file with a separate action.packages.to.scan:
# Dessert Server
action.packages.to.scan=org.example.desert
# Gym Server
action.packages.to.scan=org.example.gym
# Restaurant Server
action.packages.to.scan=org.example.restaurant
# Yoga Server
action.packages.to.scan=org.example.yoga
MCP Server and Client Example
This server is designed to work as both an A2A (Agent-to-Agent) and MCP (Model Context Protocol) server:
- A2A: Google’s Agent-to-Agent protocol for communication between AI agents
- MCP: Model Context Protocol for interaction with AI models and tools
Testing with curl commands
You can use curl commands to test all servers. Each server has its own set of services and runs on different ports:
インストール
This server does not publish a one-line install command.
Open the repository installation guide MCP 初心者?mcpskill.org のガイドから始めましょう →設定
{
"mcpServers": {
"yogaserver": {
"command": "java",
"args": [
"-jar",
"PATH_TO_YOUR_JAR/mcp-connector-full.jar",
"http://localhost:7866"
],
"timeout": 30000
}
}
}