Guide a2a/
A2A for developers: agent cards, tasks and how it differs from MCP
A2A lets one agent hand work to another agent over HTTP. These are the objects you send and receive, taken from the 1.0.0 specification.
Short answer
A2A (Agent2Agent) is an open protocol that lets one AI agent delegate work to another agent whose internals stay hidden. The released specification is 1.0.0 as of December 6, 2026. A server agent publishes an Agent Card at /.well-known/agent-card.json listing its skills, interfaces and security schemes. A client sends a message with SendMessage (or POST /message:send) and follows the resulting task to a state such as TASK_STATE_COMPLETED. MCP connects an agent to tools; A2A connects agents to each other.
Checked against: the A2A Protocol Specification 1.0.0, Key Concepts, Agent Discovery and A2A and MCP, December 6, 2026.
Run by us: no. Requests and responses are copied from the A2A specification.
What is A2A, and who maintains it?
A2A is an open protocol for AI agents to discover each other and hand off work as peers, without sharing their internals.
| Actor | Definition in the A2A docs |
|---|---|
| User | “The end user, which can be a human operator or an automated service.” |
| A2A client | “An application, service, or another AI agent that acts on behalf of the user.” |
| A2A server (remote agent) | “An AI agent or agentic system that exposes an HTTP endpoint implementing the A2A protocol.” |
To the client, the remote agent is opaque: “its internal workings, memory, and tools stay hidden” (Key Concepts).
Google announced A2A on April 9, 2025, as “an open protocol that complements Anthropic’s Model Context Protocol (MCP)” (Google). The A2A site now carries a Linux Foundation copyright, lists neutral governance, and says the project is part of the Agentic AI Foundation. As of December 6, 2026, the latest released specification is 1.0.0. Earlier versions were 0.3.0, 0.2.6 and 0.1.0.
How does a client find an agent?
A client usually fetches the agent’s Agent Card from https://{agent-server-domain}/.well-known/agent-card.json.
| Agent Card field | Required |
|---|---|
name, description, version |
Yes |
supportedInterfaces (each with url, protocolBinding, protocolVersion, optional tenant) |
Yes |
capabilities (for example streaming, pushNotifications, extendedAgentCard) |
Yes |
skills (each with id, name, description, tags) |
Yes |
defaultInputModes, defaultOutputModes |
Yes |
securitySchemes, securityRequirements |
No |
provider, documentationUrl, iconUrl, signatures |
No |
The Agent Card is “a JSON metadata document describing an agent’s identity, capabilities, endpoint, skills, and authentication requirements” (Key Concepts). The Agent Discovery page lists two other ways to find one: curated registries and direct configuration. “The current A2A specification does not prescribe a standard API for curated registries.”
A public card should not hold secrets. The discovery page says cards containing sensitive data “must be protected with authentication and authorization mechanisms” and recommends authenticated extended agent cards for sensitive details. Clients fetch those with GetExtendedAgentCard. Servers should send Cache-Control and an ETag so clients can revalidate the card.
How do I send work to an agent?
You send a message, and the agent answers with either a task that tracks the work or a direct message.
POST /message:send
Content-Type: application/a2a+json
{
"message": {
"messageId": "uuid",
"role": "ROLE_USER",
"parts": [{"text": "Hello"}]
},
"configuration": {
"acceptedOutputModes": ["text/plain"]
}
}
HTTP/1.1 200 OK
Content-Type: application/a2a+json
{
"task": {
"id": "task-uuid",
"contextId": "context-uuid",
"status": {
"state": "TASK_STATE_COMPLETED"
}
}
}
That is the HTTP+JSON/REST binding. The spec also defines JSON-RPC and gRPC bindings, and the same operations exist in each:
| Operation | JSON-RPC method | HTTP+JSON/REST |
|---|---|---|
| Send message | SendMessage |
POST /message:send |
| Send streaming message | SendStreamingMessage |
POST /message:stream |
| Get task | GetTask |
GET /tasks/{id} |
| List tasks | ListTasks |
GET /tasks |
| Cancel task | CancelTask |
POST /tasks/{id}:cancel |
| Subscribe to task | SubscribeToTask |
POST /tasks/{id}:subscribe |
| Create push config | CreateTaskPushNotificationConfig |
POST /tasks/{id}/pushNotificationConfigs |
| Get push config | GetTaskPushNotificationConfig |
GET /tasks/{id}/pushNotificationConfigs/{configId} |
| List push configs | ListTaskPushNotificationConfigs |
GET /tasks/{id}/pushNotificationConfigs |
| Delete push config | DeleteTaskPushNotificationConfig |
DELETE /tasks/{id}/pushNotificationConfigs/{configId} |
| Extended Agent Card | GetExtendedAgentCard |
GET /extendedAgentCard |
The protocol version travels in the A2A-Version header, in Major.Minor form. An agent that doesn’t support the requested version returns VersionNotSupportedError.
What is inside a message, a part and an artifact?
A message is one turn with a role and a list of parts, and an artifact is an output made of parts.
| Object | Fields |
|---|---|
| Message | messageId, role (ROLE_USER or ROLE_AGENT), parts, optional contextId, taskId, referenceTaskIds, metadata, extensions |
| Part | Exactly one of text, raw (base64 bytes in JSON), url or data (any JSON), plus optional mediaType, filename, metadata |
| Artifact | artifactId, parts, optional name, description, metadata, extensions |
A contextId is server-generated and groups related tasks, so a follow-up message can continue the same piece of work.
How does a task move through its lifecycle?
A task is a stateful unit of work with a required id and status, plus optional contextId, artifacts, history and metadata.
| State | Type |
|---|---|
TASK_STATE_SUBMITTED |
Accepted and acknowledged |
TASK_STATE_WORKING |
Being processed |
TASK_STATE_INPUT_REQUIRED |
Interrupted: the agent needs more user input |
TASK_STATE_AUTH_REQUIRED |
Interrupted: authentication is needed |
TASK_STATE_COMPLETED |
Terminal: finished successfully |
TASK_STATE_FAILED |
Terminal: finished with an error |
TASK_STATE_CANCELED |
Terminal: canceled before completion |
TASK_STATE_REJECTED |
Terminal: the agent decided not to do it |
Clients get updates three ways: polling with GetTask, streaming over server-sent events with SendStreamingMessage or SubscribeToTask, or push notifications, which the spec describes as “server-initiated HTTP POST requests to a client-provided webhook URL.”
How does a client authenticate to an agent?
The client reads securitySchemes in the Agent Card and authenticates with one of the declared schemes.
| Scheme object in the spec | Covers |
|---|---|
APIKeySecurityScheme |
API keys |
HTTPAuthSecurityScheme |
HTTP authentication |
OAuth2SecurityScheme |
OAuth 2.0 |
OpenIdConnectSecurityScheme |
OpenID Connect |
MutualTlsSecurityScheme |
Mutual TLS |
The A2A discovery page “strongly recommends the use of out-of-band dynamic credentials” rather than static secrets in the card. Here A2A and MCP differ. The MCP authorization spec prescribes one OAuth 2.1 flow for HTTP servers, discovered through protected resource metadata. A2A lets each agent declare its own scheme. See MCP authorization step by step.
How is A2A different from MCP?
MCP connects an agent to tools and data, while A2A connects an agent to other agents.
| MCP (revision 2026-07-28) | A2A (1.0.0) | |
|---|---|---|
| Other side | A server exposing tools, resources and prompts | An opaque agent with its own tools and reasoning |
| Discovery | Configured server URL or command; server/discover, tools/list |
Agent Card at a well-known URL, a registry or configuration |
| Unit of work | A tool call | A task with a lifecycle |
| State | Stateless protocol; servers mint handles passed as tool arguments | Tasks with IDs, grouped by contextId |
| Wire format | JSON-RPC 2.0 over stdio or Streamable HTTP | JSON-RPC, gRPC or HTTP+JSON/REST |
| Auth | OAuth 2.1-based flow for HTTP; environment credentials for stdio | Schemes declared in the Agent Card |
The MCP column comes from the MCP overview and 2026-07-28 changelog. The A2A docs put the split in two lines: “MCP is vertical. It deepens a single agent.” and “A2A is horizontal. It connects agents across that boundary” (A2A and MCP).
The specification’s appendix calls them “complementary protocols designed for different aspects of agentic systems.” Its example has an A2A client agent ask an A2A server agent for a complex task, and “the Server agent, in turn, might use MCP to interact with several underlying tools, APIs, or data sources.”
When should I use A2A instead of MCP?
Use A2A when the thing you call is an agent that plans and keeps state on its own, and MCP when it is a tool with defined inputs and outputs.
- MCP only. One agent needs tools and data: a database, a code host, a ticket tracker.
- A2A. Separate agents, often built by different teams or on different frameworks, must hand work to each other without exposing their internals.
- Both. An orchestrating agent delegates over A2A, and each remote agent reaches its own tools over MCP.
The A2A docs also note an overlap: an A2A server “can expose some skills as MCP-compatible resources.”
What to read next
Sources
Changelog
- First published.
Cite this page
Agents for Devs. "A2A for developers: agent cards, tasks and how it differs from MCP." Published Dec 6, 2026. https://agentsfordevs.com/guides/a2a-for-developers - Page: https://agentsfordevs.com/guides/a2a-for-developers
- Markdown version: https://agentsfordevs.com/guides/a2a-for-developers.md
- Reuse: quote or summarize with a link to this page. Reuse terms
Cite one section
- What is A2A, and who maintains it?
- How does a client find an agent?
- How do I send work to an agent?
- What is inside a message, a part and an artifact?
- How does a task move through its lifecycle?
- How does a client authenticate to an agent?
- How is A2A different from MCP?
- When should I use A2A instead of MCP?
- What to read next