a2a-bridge
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
a2a-mcp-bridge
把任意 A2A agent 暴露成 MCP 工具,用于宿主(如 WorkBuddy)的原生 A2A 通道被账号类型门控挡住时, 仍能在对话里让远程 agent 干活。
零运行时依赖(只用 Node 内置模块)
不改宿主安装目录、不改账号数据、不伪造会话
令牌从 A2A 服务自己的配置读取,不写进 MCP 配置
为什么需要它
WorkBuddy 桌面端的原生 A2A 出站要求 accessToken && enterpriseId(企业/企微托管账号)。
个人账号永远拿不到 enterpriseId,桌面端会直接把 CODEBUDDY_A2A_OUTBOUND_ENABLED 置 0、
清空发现 URL。a2a-mcp-bridge 用 MCP 达到同等效果:一份用户级配置 + 一次"信任"点击。
原生 A2A | 本桥 | |
账号要求 | 企业 / 企微托管 | 无 |
侵入性 | 需 hosts + 用户环境变量 | 仅一条 MCP 配置 |
交互 | 对话里委派 agent | 模型调用 |
Related MCP server: A2A MCP
安装
git clone https://github.com/athronix/a2a-mcp-bridge.git
cd a2a-mcp-bridge
npm install && npm run build注册到 MCP 宿主
在宿主 MCP 配置(WorkBuddy 为 ~/.workbuddy/mcp.json)里加:
{
"mcpServers": {
"a2a-bridge": {
"type": "stdio",
"command": "node",
"args": ["<绝对路径>/a2a-mcp-bridge/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
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
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