a2a-bridge
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| A2A_POLL_MS | No | 轮询间隔 (polling interval in milliseconds). | 2000 |
| A2A_DEADLINE_MS | No | 单次调用等待上限 (per-call wait deadline in milliseconds). | 600000 |
| A2A_SERVICE_URL | No | A2A 服务地址 (A2A service address). | http://127.0.0.1:8787/ |
| A2A_BRIDGE_DEBUG | No | 设为 1 时往 stderr 打印端点信息 (prints endpoint info to stderr when set to 1). | |
| A2A_SERVICE_TOKEN | No | bearer token; 默认从 ~/.workbuddy-a2a/config.json 的 token 读取,可用此变量覆盖。 | |
| A2A_SERVICE_CONFIG | No | 读 token 的文件 (file to read the token from). | ~/.workbuddy-a2a/config.json |
Instructions
Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.
This server publishes no instructions, or was last inspected before Glama recorded them.
Capabilities
Features and capabilities supported by this server
Protocol revision2025-11-25
| Capability | Details |
|---|---|
| tools | {} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| a2a_agentsA | 列出远程 A2A 服务上的 agent 卡片(GET /agents)。用来确认服务可达,并看到 name/version/skills。 |
| a2a_sendA | 把任务委派给远程 A2A agent 并等待结果。返回 state 与结果正文;若停在 input-required,会给出登录链接或工具授权选项。 |
| a2a_taskA | 查询某个 A2A 任务的当前状态与最新消息(长任务用它轮询)。 |
| a2a_answerA | 回应远程 agent 的等待:工具授权传 optionId(allow/allow_always/skip/reject);登录卡拒绝传 approved=false。 |
| a2a_cancelC | 取消一个远程 A2A 任务。 |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
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.