You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[DOCS] Gateway A2A server (A2A_ENABLED, POST /a2a) is missing or contradicted in the gateway docs #954
Gateway v0.58.0 turns the gateway itself into an A2A server. With A2A_ENABLED=true it registers GET /.well-known/agent-card.json, POST /a2a, GET /a2a/agents and GET /.well-known/oauth-protected-resource/a2a, and relays every JSON-RPC call to the agent named in A2A_AGENTS (cmd/gateway/main.go, api/a2a.go, A2AConfig in config/config.go). Only the spec.a2a section of operator.md reflects this. The gateway pages still describe the old model, and two of them contradict the code.
Acceptance Criteria
architecture-overview.md: remove "the gateway does not proxy the A2A protocol". With A2A_ENABLED=true the gateway relays A2A JSON-RPC calls on POST /a2a to the agents in A2A_AGENTS and serves one merged agent card at GET /.well-known/agent-card.json (api/a2a.go).
operator.md Orchestrator table: the a2a.enabled row says "A2A lives on Orchestrator, not on Gateway", which contradicts the Gatewayspec.a2a section on the same page (A2ASpec in api/v1alpha1/gateway_types.go, operator v0.27.0). Reword it so the Orchestrator a2a block is the CLI daemon's own A2A client, separate from Gateway.spec.a2a.
configuration.md: add an A2A settings table, plus matching lines in "Complete Configuration Example", for A2A_ENABLED (default false), A2A_AGENTS, A2A_RESOURCE_URL, A2A_CLIENT_TIMEOUT (default 30s), A2A_STREAM_IDLE_TIMEOUT (default 5m) and A2A_CARD_REFRESH_INTERVAL (default 5m), as defined in A2AConfig in config/config.go. The page calls itself the complete configuration reference but lists none of them.
api-reference.md: document the routes the gateway registers when A2A_ENABLED=true: GET /.well-known/agent-card.json, POST /a2a, GET /a2a/agents and GET /.well-known/oauth-protected-resource/a2a. While A2A is disabled the routes are not registered and return 404.
a2a.md: the frontmatter description says agents are coordinated "from any chat completion", but the gateway injects no A2A tools into /v1/chat/completions (only the MCP middleware runs there). A2A delegation from a chat happens in the CLI. Fix the description and add a short section on the gateway as an A2A server that links to /operator/#a2a-agents-spec-a2a.
operator.md A2A Agents: "requires a gateway image with A2A server support" should name the minimum gateway version, v0.58.0.
Gather context (read docs pages, verified every fact against the gateway source: A2AConfig, api/a2a.go, internal/a2a/*, cmd/gateway/main.go)
architecture-overview.md - dropped "the gateway does not proxy the A2A protocol"
operator.md - Orchestrator a2a.enabled row reworded as the CLI daemon's own A2A client, separate from Gateway.spec.a2a; A2A Agents now names gateway v0.58.0
configuration.md - "Agent2Agent (A2A) Settings" table for all six vars plus matching lines in "Complete Configuration Example"
api-reference.md - new "A2A Server (JSON-RPC)" section for the four routes, the relayed methods, agent resolution, task-id prefixing and error codes
a2a.md - frontmatter description fixed, "The Gateway as an A2A Server" section added
Validate - lint:md, format:check, bun test and build all pass
Commit + open PR
Two details worth a maintainer's eye, both taken from the code rather than invented: the A2A protected-resource document returns 404 whenever AUTH_ENABLED=false (it does not additionally gate on A2A being enabled the way the MCP one gates on MCP_EXPOSE), and ListTasks is the only method that fans out to every agent when no agent is named.
Activity
edenreich commentedon Oct 4, 2026
@claude can you work on this? use /ponytail:ponytail
inference-gateway-maintainer commentedon Oct 4, 2026
Claude finished @edenreich's task in 4m 18s —— View job •
docs/issue-954-20261004-1113• Create PR ➔Done - PR #965 opened
A2AConfig,api/a2a.go,internal/a2a/*,cmd/gateway/main.go)architecture-overview.md- dropped "the gateway does not proxy the A2A protocol"operator.md- Orchestratora2a.enabledrow reworded as the CLI daemon's own A2A client, separate fromGateway.spec.a2a; A2A Agents now names gateway v0.58.0configuration.md- "Agent2Agent (A2A) Settings" table for all six vars plus matching lines in "Complete Configuration Example"api-reference.md- new "A2A Server (JSON-RPC)" section for the four routes, the relayed methods, agent resolution, task-id prefixing and error codesa2a.md- frontmatter description fixed, "The Gateway as an A2A Server" section addedlint:md,format:check,bun testandbuildall passTwo details worth a maintainer's eye, both taken from the code rather than invented: the A2A protected-resource document returns
404wheneverAUTH_ENABLED=false(it does not additionally gate on A2A being enabled the way the MCP one gates onMCP_EXPOSE), andListTasksis the only method that fans out to every agent when no agent is named.| Branch
inference-gateway-releaser commentedon Oct 4, 2026
🎉 This issue has been resolved in version 0.9.21 🎉
The release is available on GitHub release
Your semantic-release bot 📦🚀