A2a Bridge

io.github.mdfifty50-boop由 GitHub 帳號 mdfifty50-boop 發布v0.1.1更新於 Nov 3, 2026

Agent-to-agent communication bridge for multi-agent systems

概覽

AI 產生的概覽

本機 MCP 伺服器,提供代理間通訊層,讓助理註冊代理、探索能力、委派任務並彙整結果。

可以做什麼
  • 註冊代理,登錄能力字串、描述以及輸入輸出 schema
  • 依能力以模糊相似度評分探索代理,或列出所有已註冊代理
  • 將任務委派給指定代理,或廣播給所有符合某能力的代理,每個任務都有任務 ID 追蹤
  • 輪詢任務狀態與結果,或為任務提交結果或錯誤
  • 檢視代理的能力卡片,含 schema、成功率與任務計數
  • 透過 a2a://agents 資源讀取完整代理登錄表
適用情境
適合在建置或協調多代理系統時使用,讓一個助理依能力找到其他代理、分派工作並收集結果。單一代理或一般工具呼叫情境幫助不大。
執行需求
以 stdio 在本機執行,可用 npx a2a-bridge-mcp 啟動(需 Node.js),或從原始碼 npm install 後執行。未宣告驗證、環境變數或標頭。依 README,代理需自行註冊,並透過外部通知或輪詢接收委派任務。
安裝前請注意
委派任務會把輸入資料傳給其他已註冊代理,避免在任務內容中放入金鑰或敏感資料。任務結果由執行代理自行提交,狀態與成功率屬自陳資料。登錄表在行程內共用,所有註冊的代理都看得到。

安裝

在 SourceWeft 中

  1. 開啟 儀表板中的 A2a Bridge,將其新增到工作區。
  2. 為需要使用其工具的對話啟用該服務。

Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。

其他 MCP 客戶端

參照 儲存庫 中的啟動說明。

README

a2a-bridge-mcp

MCP server for agent-to-agent communication -- capability discovery, task delegation, and result aggregation across MCP agents.

MCP connects agents to tools, but not to each other. This server adds a standardized agent-to-agent layer within the MCP protocol -- register agents, discover capabilities, delegate tasks, and broadcast work to multiple agents. Inspired by Google's A2A protocol.

Install

bash
npx a2a-bridge-mcp

Claude Desktop

Add to claude_desktop_config.json:

json
{  "mcpServers": {    "a2a-bridge": {      "command": "npx",      "args": ["a2a-bridge-mcp"]    }  }}

From source

bash
git clone https://github.com/mdfifty50-boop/a2a-bridge-mcp.gitcd a2a-bridge-mcpnpm installnode src/index.js

Tools

register_agent

Register an agent with capabilities for discovery by other agents.

ParamTypeDefaultDescription
agent_idstringrequiredUnique agent identifier
capabilitiesstring[]requiredCapability strings (e.g. ["code-review", "summarization"])
descriptionstring""Human-readable description
input_schemaobject{}JSON schema for accepted input
output_schemaobject{}JSON schema for produced output
endpointstring""Optional endpoint or transport hint

discover_agents

Find agents matching a capability need with fuzzy text similarity scoring.

ParamTypeDefaultDescription
capability_neededstringrequiredCapability to search for
min_scorenumber0.3Minimum similarity score (0-1)

Returns scored matches sorted by relevance.

delegate_task

Delegate a task to a specific registered agent. Creates a tracked task with status lifecycle.

ParamTypeDefaultDescription
from_agentstringrequiredDelegating agent ID
to_agentstringrequiredTarget agent ID
task_descriptionstringrequiredWhat the target should do
input_dataobject{}Input data for the task
timeout_msnumber30000Timeout in milliseconds

Returns a task_id for tracking.

get_task_result

Get status and result of a delegated task. Also used by executing agents to submit results.

ParamTypeDescription
task_idstringTask ID from delegate_task or broadcast_task
submit_resultobject(Optional) Submit completion result
submit_errorstring(Optional) Submit failure error

Status lifecycle: pending -> running -> completed / failed.

broadcast_task

Send a task to ALL agents matching a capability. Creates individual tracked tasks for each match.

ParamTypeDefaultDescription
from_agentstringrequiredBroadcasting agent ID
capability_neededstringrequiredCapability to match
task_descriptionstringrequiredWhat matched agents should do
input_dataobject{}Input data
min_scorenumber0.3Minimum match score
timeout_msnumber30000Timeout per agent

Returns list of task IDs for aggregation via get_task_result.

get_agent_card

Get an agent's full capability card with schemas, stats, and task history.

ParamTypeDescription
agent_idstringAgent identifier

Returns capabilities, input/output schemas, success rate, and task counts. Inspired by Google A2A agent cards.

list_agents

List all registered agents, optionally filtered by capability.

ParamTypeDefaultDescription
filterstring""Capability keyword to filter by (empty = all)

Resources

URIDescription
a2a://agentsAll registered agents with capabilities and stats

Usage Pattern

1. register_agent    -- each agent registers at startup2. discover_agents   -- find who can handle a task3. delegate_task     -- send work to a specific agent   OR broadcast_task -- send work to all matching agents4. get_task_result   -- poll for completion or submit results5. get_agent_card    -- inspect an agent's full profile6. list_agents       -- overview of the agent network

Multi-agent workflow example

Agent A (orchestrator):  1. register_agent(agent_id="orchestrator", capabilities=["planning", "coordination"])  2. discover_agents(capability_needed="code review")     -> finds Agent B (score: 0.95)  3. delegate_task(from="orchestrator", to="agent-b", task="Review PR #42")     -> task_id: "task_1234"  4. get_task_result(task_id="task_1234")     -> status: "completed", result: { approved: true, comments: [...] }
Agent B (worker):  1. register_agent(agent_id="agent-b", capabilities=["code-review", "linting"])  2. (receives task via external notification or polling)  3. get_task_result(task_id="task_1234", submit_result={ approved: true })

License

MIT

來源:README.md,提交 be04486

工具

0
SourceWeft 尚未在沙箱中啟動過該軟體包,因此其工具未知。

版本歷史

1
  1. v0.1.1最新Sep 16, 2026

評分

已滿足適用檢查項的 40%

該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。

  • 近 30 天內可連通25 分

    請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。

  • 已宣告認證方式10 分

    請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。

  • 已列出工具15 分

    請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。

  • 描述必需15 分
  • 圖示10 分
  • 文件15 分
  • 授權條款10 分

    請在儲存庫或註冊中心條目中宣告授權條款。