Skip to content

fix: serve and advertise the a2a json-rpc endpoint at /a2a in every language - #457

Merged
edenreich merged 2 commits into
mainfrom
fix/a2a-jsonrpc-path
Oct 3, 2026
Merged

edenreich merged 2 commits into
mainfrom
fix/a2a-jsonrpc-path

Conversation

@edenreich

Copy link
Copy Markdown
Contributor

Summary

  • TypeScript path (018c431): generated TS agents served JSON-RPC at the ADK default /, while Go, Rust, the generated README and AGENTS.md use /a2a. Clients built for /a2a got a 404 (the Go ADK client always appends /a2a). The TS agent now sets jsonRpcPath: '/a2a'.
  • Card URL default (6bfa287): Go and Rust agents served a card with an empty interface URL unless A2A_AGENT_URL was set, so spec-following clients such as the A2A TCK, which post to that URL, had nowhere to go. Rust and TS ignored A2A_AGENT_URL. All three now advertise A2A_AGENT_URL, else the manifest's spec.card.supportedInterfaces[0].url, else <scheme>://localhost:<port>/a2a. CONFIGURATIONS.md documents the new default.

Verification

Agents generated from examples/ against the #456 pins (adk v0.31.1, TS 0.18.1, Rust 0.16.1), run with .env.example defaults plus a stub OpenAI-compatible LLM, then checked with the official TCK (--transport jsonrpc --level must) and the Go ADK protocol-methods client:

Agent Card URL before Card URL after TCK before TCK after Go client before Go client after
Go (go-agent-ai) "" http://localhost:<port>/a2a 10 passed / 35 failed 60 / 6 exit 0 exit 0
Go (go-agent, A2A_AGENT_URL set) "" the env value 10 / 35 60 / 5 exit 0 exit 0
Rust (rust-agent) "" http://localhost:<port>/a2a 10 / 36 55 / 12 exit 0 exit 0
TypeScript (typescript-agent) http://0.0.0.0:<port> (served at /) http://localhost:<port>/a2a 49 / 14 49 / 14 exit 1 (404 on /a2a) exit 0

golangci-lint run and go test ./... pass. New tests cover the TS path and the card URL default for Go and Rust (derived and manifest-declared).

Left

  • TCK scenario agent: 5 failures in every language (4 artifact, 1 message response) need it; tracked in adk#346.
  • Push config without push support: all three accept or route push config calls while the card advertises pushNotifications: false, where the spec wants -32003. ADK side.
  • Rust ListTasks: CORE-LIST-001..005 fail, the same as the rust-adk TCK run. rust-adk side.
  • TS method registration: the TS template registers only SendMessage, GetTask and ListTasks, though the card advertises streaming and the ADK exports createMessageStreamHandler, createTaskCancelHandler, createTaskResubscribeHandler and the push config handlers. That accounts for 8 of the 14 TS failures. Follow-up in adl-cli.

Generated TypeScript agents served JSON-RPC at the ADK default `/` while
the Go and Rust agents, the generated README and AGENTS.md all use
`/a2a`, so clients built for those (the Go ADK client always appends
`/a2a`) got a 404. The agent now sets jsonRpcPath to /a2a, and the card's
fallback interface URL points there.
Generated Go and Rust agents served a card whose interface URL was empty
unless A2A_AGENT_URL was set, so spec-following clients such as the A2A
TCK had nowhere to send requests. Rust and TypeScript also ignored
A2A_AGENT_URL. All three now advertise A2A_AGENT_URL, else the manifest's
interface URL, else their own /a2a endpoint on localhost.
@edenreich
edenreich requested a review from a team as a code owner October 3, 2026 10:28
@edenreich
edenreich merged commit 71e2c82 into main Oct 3, 2026
1 check passed
@edenreich
edenreich deleted the fix/a2a-jsonrpc-path branch October 3, 2026 10:35
inference-gateway-releaser Bot added a commit that referenced this pull request Oct 3, 2026
## [0.65.4](v0.65.3...v0.65.4) (2026-10-03)

### ♻️ Improvements

* **rust:** let the adk resolve the agent card url ([#461](#461)) ([f5e438a](f5e438a))

### 🐛 Bug Fixes

* serve and advertise the a2a json-rpc endpoint at /a2a in every language ([#457](#457)) ([71e2c82](71e2c82))
* **typescript:** register every a2a method the agent card advertises ([#458](#458)) ([7149295](7149295))

### 🔧 Miscellaneous

* **deps:** bump template pins to latest ([#460](#460)) ([503a054](503a054))
@inference-gateway-releaser

Copy link
Copy Markdown
Contributor

🎉 This PR is included in version 0.65.4 🎉

The release is available on:

Your semantic-release bot 📦🚀

@inference-gateway-releaser inference-gateway-releaser Bot added the released Shipped in a release label Oct 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

released Shipped in a release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant