/.well-known/agent-card.json and JSON-RPC on POST / (PascalCase methods such as SendMessage, SendStreamingMessage).
Source: examples/agent_with_a2a_server/
What it demonstrates
WithA2ADefaultServerorWithA2AServerwith host, port, bearer tokensRunA2A(ctx)blocking until shutdown- Pair with A2A Config as a client
Run
Fromexamples/:
localhost:9999 — override with A2A_SERVER_HOST, A2A_SERVER_PORT (see Configuration).
Optional A2A_SERVER_BEARER_TOKENS — comma-separated secrets; JSON-RPC calls must send Authorization: Bearer <token>. Agent card GET stays unauthenticated.
Quick checks
Test as a client from this repo
Second terminal,examples/:
Test with the a2a CLI
a2a help send for auth flags.
Learn more
A2A
Server and client feature docs
A2A Config
Outbound client example