Docs: cover the A2A HTTP and JSON-RPC transport for kagent 1.x
I maintainer di solito rispondono entro 1 giorno
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Idoneità per principianti
- 45/100
- Tipo di issue
- Documentazione
- Chiarezza
- Abbastanza chiara
- Stato di attività
- Attiva
- Stack tecnologico
- grpc
- Ambito
- api, documentation
Direzione di ricerca
Read docs/architecture/a2a-transports.md and substrate-runtime/identity.md, then run examples/a2a-agents.md as written. Fetch an Agent Card, exercise JSON-RPC streaming and share-token permissions, and verify ingress behavior against a live instance. Done means the guide documents both transports, routing and naming changes, ingress requirements, and a resolved exposure policy.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
[!IMPORTANT]
Rewritten for 1.0.0-alpha5 on 2026-09-29. This issue was filed against alpha4 and described a per-AgentInstance endpoint. alpha5 changed the URL shape, the resource it addresses, and the gRPC routing field. The original scoping is superseded; what follows is verified against thev1.0.0-alpha5tag. Part of #549.
examples/a2a-agents.md uses grpcurl throughout and documents no HTTP path. kagent serves A2A over HTTP/JSON-RPC alongside gRPC, with a discoverable Agent Card, and a reader who wants an ordinary HTTP client has nothing to follow.
Upstream's docs/architecture/a2a-transports.md is the endpoint contract and the right source. It is an architecture document rather than a task guide.
The endpoint surface
Both transports are served on the controller's API listener, port 8083 by default, and share the same Session authorization, durable tasks, history, and runtime lifecycle.
| Operation | Path |
|---|---|
| Read the Agent Card | GET /agents/{namespace}/{name}/.well-known/agent-card.json |
| Call JSON-RPC, including streaming | POST /agents/{namespace}/{name} |
The URL addresses an Agent, not an AgentInstance. This is the alpha5 change: alpha4 served /agents/{instance-id}, and the resource that a conversation belongs to is now a Session.
- HTTP requests need no
tenant. gRPC requests use the standard A2Atenantfield asnamespace/name, advertised only on the card's gRPC interface. An HTTP request that does supply a tenant must have it match the URL. Session.idis the messagecontextId. Omitting both context and task IDs creates a new conversation; retrying that first message with the same message ID reuses it. A task-only request resolves the conversation from the globally unique task ID.- There is no deployment-wide Agent Card, because the gateway serves many agents.
JSON-RPC uses the pinned upstream A2A v1 SDK: SendMessage, SendStreamingMessage, GetTask, ListTasks, CancelTask, SubscribeToTask, and GetExtendedAgentCard. Those are the v1 names for what older clients called message/send, message/stream, tasks/get, tasks/list, tasks/cancel, and tasks/resubscribe, which is worth stating for anyone arriving with a pre-v1 client.
Behavior the API does not announce
controller.a2aGatewayUrlchanged meaning in alpha4 and still holds. It was the public gRPC URL advertised by Agent Cards; it is now the gateway base URL for both transports, and HTTP interfaces append the agent path to it, preserving any deployment prefix. Its default is the controller's cluster Service URL.- An ingress with a prefix must strip it before forwarding to the core listener, and must forward streaming responses without buffering. Neither is enforced by a chart value.
- The card advertises JSON-RPC first, then gRPC. It comes from the Agent's latest successful revision, or from a shared session's pinned revision, and retains runtime extensions while reporting the gateway's streaming capabilities.
- Share tokens grade by permission. A validated
X-Share-Tokensupplements the authenticated user's access to its session: a read-only share permits card and task reads and subscriptions, and a read-write share also permits messages and cancellation. Cards are not publicly cached.
The conflict to resolve before writing
substrate-runtime/identity.md warns against exposing port 8083 outside the cluster, because the open source build's authenticator admits every request. The HTTP transport is served on that same listener, and the architecture document describes setting a2aGatewayUrl and putting an ingress in front precisely so agents can be reached from outside.
alpha5 changes this picture and it must be re-checked before writing. kagent#2971 restored controller.auth.mode and controller.auth.userIdClaim, so the permissive posture is no longer the only option. Establish what the authenticated configuration actually allows, then say which argument won. This is the main open question in this issue.
What to check before starting
- Read
docs/architecture/a2a-transports.mdat the release being documented. - Run the existing
examples/a2a-agents.mdguide as written, so the gRPC path is known to work before an HTTP path joins it. Note that the page is written around AgentInstance and needs the Session rename from #549 regardless. - Fetch a card over HTTP and confirm the interface ordering and retained extensions.
- Exercise streaming over JSON-RPC, and confirm what a client sees when an ingress buffers.
- Confirm the share-token grading through both transports rather than inferring it.
Done when
- Both endpoint paths are documented in their alpha5 form, with a working
curlexample for the card and for a JSON-RPC call. - The page states that the URL addresses an Agent, and that
Session.idis thecontextId. - The v1 method names are listed against their pre-v1 equivalents.
- The
a2aGatewayUrlmeaning is covered wherever that value is documented. - The ingress requirements, prefix stripping and unbuffered streaming, are stated.
- The exposure question against
identity.mdis resolved against alpha5 authentication rather than left for the reader. - Every command was run against a live Agent.
- Lingua principale
- TypeScript
- Stelle
- 20
- Fork
- 66
- Merge medio
- 15h 35m
- PR unite (30g)
- 59
Preparare l'ambiente
Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di kagent-dev/website
-
Hold until GA: repoint kagent.dev navigation from 0.x to 1.xForse già presa @Rachael-Graham l’ha presa 11 giorni fa. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
kagent-dev/website#521 · 1 assegnatario ·
I maintainer di solito rispondono entro 1 giorno
-
Document session sharingApertadocumentation kagent
Difficoltà 4/5 3-5 giorni Idoneità per principianti 60/100
kagent-dev/website#562 ·
I maintainer di solito rispondono entro 1 giorno
-
help wanted
Difficoltà 3/5 1-2 giorni Idoneità per principianti 72/100
kagent-dev/website#539 ·
I maintainer di solito rispondono entro 1 giorno
-
Docs: add Codex and Claude Harness examples, and a codex runtime-image conrefForse già presa @chinmaychahar l’ha presa 5 giorni fa. Apertahelp wanted
Difficoltà 3/5 1-2 giorni Idoneità per principianti 65/100
kagent-dev/website#530 · 7 commenti · 1 assegnatario ·
I maintainer di solito rispondono entro 1 giorno
-
help wanted
Difficoltà 3/5 1-2 giorni Idoneità per principianti 65/100
kagent-dev/website#519 ·
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di kagent-dev/website
Issue simili
-
bug cli service
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
I maintainer di solito rispondono entro 1 giorno
-
create-element: same editorAlias silent-fallback bug as #201, not covered by that fixForse già presa Una pull request collegata a questa issue è aperta o già unita. Apertagenerated-by-ai
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
umbraco/Umbraco-CMS-MCP-Editor#208 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
Table: Space fires onActivate in single-selection mode — the reference doc and the JSDoc disagreeAperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
sidorares/react-x11-components#764 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
backnotprop/plannotator#1840 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
JoviDeCroock/pracht#432 ·
I maintainer di solito rispondono entro 1 giorno