a2a-bridge
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@a2a-bridge delegate to the remote agent: review my auth module and report back"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
a2a-tools-lite
把任意 A2A agent 暴露成 MCP 工具,用于宿主(如 WorkBuddy)的原生 A2A 通道被账号类型门控挡住时, 仍能在对话里让远程 agent 干活。
零运行时依赖(只用 Node 内置模块)
不改宿主安装目录、不改账号数据、不伪造会话
令牌从 A2A 服务自己的配置读取,不写进 MCP 配置
为什么需要它
WorkBuddy 桌面端的原生 A2A 出站要求 accessToken && enterpriseId(企业/企微托管账号)。
个人账号永远拿不到 enterpriseId,桌面端会直接把 CODEBUDDY_A2A_OUTBOUND_ENABLED 置 0、
清空发现 URL。a2a-tools-lite 用 MCP 达到同等效果:一份用户级配置 + 一次"信任"点击。
原生 A2A | 本桥 | |
账号要求 | 企业 / 企微托管 | 无 |
侵入性 | 需 hosts + 用户环境变量 | 仅一条 MCP 配置 |
交互 | 对话里委派 agent | 模型调用 |
Related MCP server: A2A MCP
安装
git clone https://github.com/athronix/a2a-tools-lite.git
cd a2a-tools-lite
npm install && npm run build注册到 MCP 宿主
在宿主 MCP 配置(WorkBuddy 为 ~/.workbuddy/mcp.json)里加:
{
"mcpServers": {
"a2a-tools-lite": {
"type": "stdio",
"command": "node",
"args": ["<绝对路径>/a2a-tools-lite/dist/index.js"],
"env": {
"A2A_SERVICE_URL": "http://127.0.0.1:8787/",
"A2A_DEADLINE_MS": "600000"
},
"timeout": 600000
}
}
}令牌默认从 ~/.workbuddy-a2a/config.json 的 token 读取;也可用 A2A_SERVICE_TOKEN 覆盖。
生效需要宿主加载新 MCP server(WorkBuddy:连接器管理页信任,或重启)。
工具
工具 | 作用 |
| 列远程 agent 卡片( |
| 委派任务并等待结果 → |
| 轮询任务状态 |
| 回工具授权( |
| 取消任务 |
等待态会语义化:needsToolApproval{toolName, command, options[]} 或 needsLogin{authUrl, expiresAt}。
环境变量
变量 | 默认 | 说明 |
|
| A2A 服务地址 |
| 空(读配置文件) | bearer |
|
| 读 token 的文件 |
|
| 单次调用等待上限 |
|
| 轮询间隔 |
| — |
|
两个已知坑(已在实现里规避)
不要用
fetch()做长请求:SendMessage是同步的,Node 内置 fetch(undici)默认headersTimeout=300s,真实任务在 5m06s 必定fetch failed。本项目用node:http且timeout: 0。单会话排队:服务端
maxSessions常为 1,等待预算用尽时任务其实还在跑。 桥会用messageId去GET /a2a/tasks找回任务继续等待(结果标记recoveredAfterTimeout)。
开发
npm run typecheck # tsc --noEmit
npm run build && npm test # 25 个单测
A2A_E2E=1 npm run test:e2e # 对真实服务跑一次(需服务在线)文档
License
MIT
Available Tools
5 toolsa2a_agentsA
列出远程 A2A 服务上的 agent 卡片(GET /agents)。用来确认服务可达,并看到 name/version/skills。
Inputs: no named parameters.
a2a_answerA
回应远程 agent 的等待:工具授权传 optionId(allow/allow_always/skip/reject);登录卡拒绝传 approved=false。
Inputs: taskId (required), approved, optionId, approvalId.
a2a_cancelC
取消一个远程 A2A 任务。
Inputs: taskId (required).
a2a_sendA
把任务委派给远程 A2A agent 并等待结果。返回 state 与结果正文;若停在 input-required,会给出登录链接或工具授权选项。
Inputs: prompt (required), contextId, waitSeconds.
a2a_taskA
查询某个 A2A 任务的当前状态与最新消息(长任务用它轮询)。
Inputs: taskId (required).
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 5 tools
Each tool maps to a distinct step in the A2A lifecycle: discovery (a2a_agents), delegation (a2a_send), status polling (a2a_task), responding to pending requests (a2a_answer), and cancellation (a2a_cancel). The only mild overlap is between a2a_send and a2a_task, since send also waits for a result, but the descriptions clarify the long-task polling case.
All names share a clear a2a_ snake_case prefix, keeping the set tightly grouped. However, two names are nouns (a2a_agents, a2a_task) while the rest are verbs (send, answer, cancel), a minor inconsistency in the verb_noun pattern.
Five tools is a tight, well-scoped surface for a bridge that mainly needs discovery, delegation, polling, response, and cancellation. Every tool covers a necessary step, with no filler.
The main remote-task lifecycle, from agent discovery through delegation, polling, responding to input-required, and cancellation, is fully covered. Minor gaps exist, such as retrieving artifacts or listing task history, but agents can work around them with a2a_task.
Maintenance
Related MCP Connectors
Discover and call AI agents via MCP. Supports A2A agents and platform agents with async tasks.
Your org's AI agents, tasks, runs, search, and brain files as MCP tools and resources.
Work with roles, tasks and delegated agent work within current workspace permissions. Setup: In a remote MCP client that supports Streamable HTTP and OAuth, add https://platform.samuelz.com/api/v1/mcp/operator?toolset=agent. Sign in to Samuelz and select your authorized workspace. An active workspace membership and the relevant module permissions are required. Review the requested permissions before authorizing. Existing approval requirements continue to apply.
Agent communication platform for agent to agent messaging via MCP. Messages, channels, skills.
Related MCP Servers
- FlicenseAqualityDmaintenanceExposes A2A (Agent-to-Agent) protocol as MCP tools, enabling Goose to call remote A2A agents via External Subagent mechanism.61-
- AlicenseNot gradedqualityCmaintenanceBridges local MCP hosts to A2A v1-compatible agents, exposing A2A client operations as MCP tools.13 npmMIT
- FlicenseNot gradedqualityCmaintenanceBridges Agent2Agent (A2A) remote agents to MCP clients by projecting each agent skill as a namespaced MCP tool. Enables stateless, task-oriented invocation of A2A agents through the MCP Tasks extension.-
- AlicenseNot gradedqualityCmaintenanceEnables agent clients to safely connect to tools and execution resources through MCP with authorization, approvals, audit, chat-context isolation, SSH/Docker access, and long-running command session tracking.MIT