
tesla0225/mcp-a2a
Developer tools이 페이지는 AI로 자동 번역되었습니다. 기술적인 세부 사항은 원문을 확인하세요. 원문 보기
Agent-to-Agent (A2A) 프로토콜에 클라이언트 역할을 하는 MCP 서버는 LLM을 모델 Context Protocol (MCP)을 통해 A2A 에이전트와 상호 작용할 수 있습니다.
개요
Agent-to-Agent (A2A) 프로토콜에 클라이언트 역할을 하는 MCP 서버는 LLM을 모델 Context Protocol (MCP)을 통해 A2A 에이전트와 상호 작용할 수 있습니다. - A2A 호환 에이전트에 연결 - 메시지 보내기 및 수신 - 트랙 및 작업 관리 - 스트리밍 응답 지원 - Query 에이전트 기능과 메타 데이터 - A2A ENDPOINT URL: A2A 에이전트의 URL (기본값: "[T0]]] claude desktop config.json에 이것을 추가하십시오: A2A 에이전트로 작업 보내기 - 메시지 (문자) : 에이전트로 보내는 메시지 - taskId (문자, 선택 사항) : 작업 ID (제공되지 않은 경우 생성) 작업의 현재 상태를 가져옵니다 - taskId (string) : 검색 작업의 ID 작업을 취소 - taskId (string) : 취소 할 작업의 ID 작업 및 업데이트 구독 (streaming) - 메시지 (문자) : 에이전트로 보내는 메시지 - taskId (문자, 선택) : 작업 ID (제공되지 않은 경우 생성) - maxUpdates (number, 옵션) : 최대 업데이트 수신 (기본값 : 10)
개요(AI 번역)
Agent-to-Agent (A2A) 프로토콜에 클라이언트 역할을 하는 MCP 서버는 LLM을 모델 Context Protocol (MCP)을 통해 A2A 에이전트와 상호 작용할 수 있습니다.
특징
- A2A 호환 에이전트에 연결
- 메시지 보내기
- 작업 추적 및 관리
- 스트리밍 응답 지원
- Query 에이전트 기능과 metadata
설치
구성
환경 변수
A2A_ENDPOINT_URL: A2A 에이전트의 URL (과태: "[T1]]
Claude 데스크탑 사용
claude_desktop_config.json에 이것을 추가하십시오:
NPX의 특징
도커
Docker 이미지를 만듭니다:
Claude 데스크탑 구성:
사용 가능한 도구
a2a send task에 대한 의견
A2A 에이전트로 작업 보내기
message(string): 에이전트로 보내는 메시지taskId(문자, 선택): 작업 ID (제공되지 않은 경우 생성)
## a2a get task ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ##
작업의 현재 상태를 가져옵니다
taskId(string): 검색할 작업의 ID
a2a cancel task,
작업 취소
taskId(string): 취소할 작업의 ID
a2a send task subscribe
작업 및 업데이트 구독 (streaming)
message(string) : 에이전트로 보내는 메시지
이 페이지는 AI로 자동 번역되었습니다. 기술적인 세부 사항은 원문을 확인하세요.
README
원문 README의 일부입니다. 원문 보기.
A2A Client MCP Server
An MCP server that acts as a client to the Agent-to-Agent (A2A) protocol, allowing LLMs to interact with A2A agents through the Model Context Protocol (MCP).
Features
- Connect to any A2A-compatible agent
- Send and receive messages
- Track and manage tasks
- Support for streaming responses
- Query agent capabilities and metadata
Installation
# Install globally
npm install -g a2a-client-mcp-server
# Or run directly with npx
npx a2a-client-mcp-server
Configuration
Environment Variables
A2A_ENDPOINT_URL: URL of the A2A agent to connect to (default: “http://localhost:41241”)
Usage with Claude Desktop
Add this to your claude_desktop_config.json:
NPX
npm run build
npm link
{
"mcpServers": {
"a2a-client": {
"command": "npx",
"args": ["-y", "a2a-client-mcp-server"],
"env": {
"A2A_ENDPOINT_URL": "http://localhost:41241"
}
}
}
}
Docker
Build the Docker image:
docker build -t a2a-client-mcp-server .
Configure Claude Desktop:
{
"mcpServers": {
"a2a-client": {
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"-e",
"A2A_ENDPOINT_URL",
"a2a-client-mcp-server"
],
"env": {
"A2A_ENDPOINT_URL": "http://localhost:41241"
}
}
}
}
Available Tools
a2a_send_task
Send a task to an A2A agent
message(string): Message to send to the agenttaskId(string, optional): Task ID (generated if not provided)
a2a_get_task
Get the current state of a task
taskId(string): ID of the task to retrieve
a2a_cancel_task
Cancel a running task
taskId(string): ID of the task to cancel
a2a_send_task_subscribe
Send a task and subscribe to updates (streaming)
message(string): Message to send to the agenttaskId(string, optional): Task ID (generated if not provided)maxUpdates(number, optional): Maximum updates to receive (default: 10)
a2a_agent_info
Get information about the connected A2A agent
- No parameters required
Resources
The server provides access to two MCP resources:
a2a://agent-card: Information about the connected A2A agenta2a://tasks: List of recent A2A tasks
Example Usage
This example shows how to use A2A Client MCP Server to interact with a Coder Agent:
First, let me explore what A2A agent we're connected to.
I'll use the a2a_agent_info tool to check the agent details.
The agent provides a coding service that can generate files based on natural language instructions. Let's create a simple Python script.
I'll use the a2a_send_task tool to send a request:
Task: "Create a Python function that calculates the Fibonacci sequence"
Now I can check the task status using a2a_get_task with the task ID from the previous response.
The agent has created the requested Python code. I can now retrieve and use this code in my project.
설치
npx -y a2a-client-mcp-server설정
{
"mcpServers": {
"a2a-client": {
"command": "npx",
"args": ["-y", "a2a-client-mcp-server"],
"env": {
"A2A_ENDPOINT_URL": "http://localhost:41241"
}
}
}
}