What is the A2A protocol?
A2A is an open protocol for agents to find other agents, give them work and get results back, whatever framework or vendor each one uses. The specification lets agents "manage collaborative tasks" and exchange information "without needing access to each other's internal state, memory, or tools."
A short history, from primary sources:
- April 9, 2025. Google launched A2A with "more than 50 technology partners" and called it "an open protocol that complements Anthropic's Model Context Protocol (MCP)".
- June 23, 2025. The Linux Foundation launched the A2A project, describing it as "an open protocol created by Google".
- March 12, 2026. Version 1.0.0 was released on GitHub. The latest release as of November 20, 2026 is v1.0.1 (May 28, 2026), and the spec page lists 1.0.0 as its latest released version.
- August 27, 2026. A2A was accepted as a Growth Stage project at the Agentic AI Foundation (AAIF), the Linux Foundation fund that already holds MCP, goose and AGENTS.md.
The protocol is built from a few objects:
- Agent Card. JSON listing an agent's name, skills, endpoints and auth, served at
/.well-known/agent-card.json. - Task. The unit of work: an ID, a
contextIdthat groups related tasks, a status and results. - Message and Part. One turn of the conversation, in text, files or data.
- Artifact. An output of the task, like a report or a file.
In version 1.0, JSON-RPC methods have PascalCase names such as SendMessage, GetTask and CancelTask.
What is MCP?
MCP, the Model Context Protocol, is the open standard for connecting an AI application to tools and data. In the words of the A2A project's own comparison, MCP "defines how an AI agent uses individual tools and resources, such as a database or an API." A server offers tools, resources and prompts. The model picks a tool and the client calls it.
Anthropic introduced MCP on November 25, 2024 and donated it to the AAIF on December 9, 2025. Our MCP glossary entry walks through a session step by step.
A2A vs MCP: what is the difference?
MCP connects one agent to the tools it uses. A2A connects that agent to other agents it works with. The A2A docs put it as two directions: "MCP is vertical. It deepens a single agent," while "A2A is horizontal. It connects agents across that boundary," to another team, department or partner organization.
| Aspect | A2A | MCP |
|---|---|---|
| Connects | A client agent to a remote agent | An AI application (host and client) to a server with tools and data |
| What the other side is | An agent that plans and reasons on its own, often run by someone else | Tools with defined inputs and outputs, like a database query or a card update |
| How you find out what it can do | Read its Agent Card (skills, endpoints, auth) | Ask the server for its list of tools (names, descriptions, input schemas) |
| Unit of work | A task with states, messages and artifacts, which can run for a long time and ask for input | A tool call that returns a result; an optional Tasks extension for long-running calls |
| What you see inside | Nothing by design ("opaque execution"): no shared memory, tools or plans | The tools the server offers and what each call returned |
| Wire format | JSON-RPC 2.0 over HTTP(S) with SSE, gRPC, or HTTP+JSON | JSON-RPC 2.0 over stdio or Streamable HTTP |
| Current version (November 2026) | 1.0 (latest release v1.0.1, May 2026) | Revision 2026-07-28 |
Sources: A2A specification (sections 1, 3, 4.1.3, 5.3, 9, 14.3 and appendix B), A2A and MCP, MCP specification 2026-07-28 and its changelog, all read November 20, 2026.
When should you use A2A, MCP or both?
Use MCP when your agent acts on a system, and A2A when it hands work to an agent that decides for itself how to do it. Many setups use both. The spec's appendix B describes the usual shape: "An A2A Client agent might request an A2A Server agent to perform a complex task. The Server agent, in turn, might use MCP" to reach its tools.
- MCP alone. Your coding agent reads a card, opens a pull request and comments on the card. The board, the repo and the database are tools. Flux's MCP server is this kind: 12 tools such as
get_card,move_cardandadd_comment. - A2A alone. A customer service agent hands a billing question to a billing agent (an example from the A2A docs). It doesn't need to see the billing agent's tools, only its answer.
- Both. Your agent asks a partner's review agent, over A2A, to check a release. The review agent uses its own MCP servers inside.
- Often neither. If every agent runs in one tool you control, like Claude Code with its subagents, the tool passes work between agents for you. That is orchestration, which we cover in agent orchestration. A2A matters where work crosses the edge of your own system.
How does an A2A task move through its states?
A task starts as submitted, moves to working, and ends as completed, failed, canceled or rejected. On the way it can stop and wait for input or for authentication. The spec defines these values in section 4.1.3 (plus an "unspecified" value for unknown states). The last column is our suggestion for showing each one on a team board, not part of A2A.
| State | Meaning in the spec | Kind | On a board (our mapping) |
|---|---|---|---|
TASK_STATE_SUBMITTED | Submitted and acknowledged | Not terminal | In progress |
TASK_STATE_WORKING | Being processed | Not terminal | In progress |
TASK_STATE_INPUT_REQUIRED | The agent needs more input to go on | Interrupted | Blocked: a person answers |
TASK_STATE_AUTH_REQUIRED | Authentication is needed to go on | Interrupted | Blocked: a person signs in or grants access |
TASK_STATE_COMPLETED | Finished successfully | Terminal | Needs review |
TASK_STATE_FAILED | Finished with an error | Terminal | Back to Ready, with the error |
TASK_STATE_REJECTED | The agent decided not to do it | Terminal | Back to Ready, with the reason |
TASK_STATE_CANCELED | Canceled before it finished | Terminal | Wherever the person who canceled it decides |
Two rules to know. A task in a terminal state takes no more messages, so a follow-up is a new task in the same contextId. And SendMessage waits until the task ends or stops for input, unless you set returnImmediately. Then you get the task back at once and follow it with GetTask, a stream or push notifications.
MCP has something similar: revision 2026-07-28 moved tasks into an official extension, where a slow tool call returns a handle the client polls. That is still one agent waiting on one tool, not two agents sharing work.
Where should a team track work that agents hand to each other?
In a place people and agents can both read. A2A tells the client agent how its task is going. It doesn't tell your team. The task lives on the remote agent's server, behind whatever access that agent grants, and by design you can't see the plan or tools inside. When the task changes state, nobody else knows unless something writes it down.
A board card per handed-off task fills that gap: the brief, the A2A task and context IDs, each state change and the result. A person moves it to Done after review. Our human-in-the-loop guide covers where those review points go.
Four facts about doing this with Flux, checked against the Flux code and live site on November 20, 2026:
- Flux speaks MCP and REST, not A2A. It publishes no Agent Card:
flux.umin.ai/.well-known/agent-card.jsonredirects to the sign-in page. So the agent or script that hands off the task does the recording. - Write comments through REST if you want them in the activity log. Comments posted with
POST /api/cards/<card UUID>/commentsare recorded in the card's activity log. Comments from the MCPadd_commenttool are not. - Tag them. Posting needs a key with the Write scope, from an account with member access to the board, and the comment shows under that account's name. The script below starts each one with
[a2a]. - Flux doesn't lock columns. A key with Write can move a card to any column on its board. The script never moves cards, so a person still decides what is done.
How do you hand a Flux card to an A2A agent?
Read the card, read the agent's Agent Card, send the brief as an A2A message, then post each state change back to the card as a comment. This Python script does that with the standard library only. It sends the card's title and description, asks for the task back at once, polls GetTask every 10 seconds, and stops when the task ends, waits on a person, or after an hour of polling (it says so on the card).
#!/usr/bin/env python3
"""Hand a Flux card to a remote A2A agent and log the task on the card.
Usage: python3 a2a_card.py https://agent.example.com CARD_UUID
Needs FLUX_API_KEY (a Flux key with Write). Set A2A_TOKEN if the agent wants
a Bearer token. The card's title and description are sent to the agent, so
only use agents you trust with them.
"""
import html, json, os, sys, time, urllib.request, uuid
FLUX_URL = os.environ.get("FLUX_URL", "https://flux.umin.ai")
POLL_SECONDS = int(os.environ.get("POLL_SECONDS", "10"))
STOP = {"TASK_STATE_COMPLETED", "TASK_STATE_FAILED", "TASK_STATE_CANCELED",
"TASK_STATE_REJECTED", "TASK_STATE_INPUT_REQUIRED", "TASK_STATE_AUTH_REQUIRED"}
def call(method, url, body=None, token=None, extra=None):
headers = {"Content-Type": "application/json", "User-Agent": "flux-a2a-card/1.0"}
if token:
headers["Authorization"] = f"Bearer {token}"
headers.update(extra or {})
data = None if body is None else json.dumps(body).encode()
request = urllib.request.Request(url, data=data, method=method, headers=headers)
with urllib.request.urlopen(request, timeout=60) as response:
return json.load(response)
def flux(method, path, body=None):
return call(method, FLUX_URL + path, body, token=os.environ["FLUX_API_KEY"])
def comment(card_id, text):
flux("POST", f"/api/cards/{card_id}/comments", {"content": "[a2a] " + html.escape(text)})
def a2a(endpoint, method, params):
reply = call("POST", endpoint, {"jsonrpc": "2.0", "id": str(uuid.uuid4()),
"method": method, "params": params},
token=os.environ.get("A2A_TOKEN"), extra={"A2A-Version": "1.0"})
if "error" in reply:
sys.exit(f"A2A error: {reply['error']}")
return reply["result"]
def status_text(task):
status = task["status"]
parts = (status.get("message") or {}).get("parts", [])
note = " ".join(p["text"] for p in parts if "text" in p)
return f"{status['state'].removeprefix('TASK_STATE_')}: {note}".strip(": ")
def main():
agent_url, card_id = sys.argv[1].rstrip("/"), sys.argv[2]
agent_card = call("GET", agent_url + "/.well-known/agent-card.json")
endpoint = next((i["url"] for i in agent_card.get("supportedInterfaces", [])
if i.get("protocolBinding") == "JSONRPC"), None)
if not endpoint:
sys.exit("This agent card lists no A2A 1.0 JSON-RPC interface.")
card = flux("GET", f"/api/cards/{card_id}")
brief = f"{card['title']}\n\n{card.get('description') or ''}"
result = a2a(endpoint, "SendMessage", {
"message": {"messageId": str(uuid.uuid4()), "role": "ROLE_USER",
"parts": [{"text": brief}]},
"configuration": {"returnImmediately": True},
})
if "task" not in result: # the agent answered without starting a task
comment(card_id, f"{agent_card['name']} replied without a task.")
return
task = result["task"]
comment(card_id, f"Sent to {agent_card['name']}. A2A task {task['id']}, "
f"context {task.get('contextId', 'none')}. {status_text(task)}")
last = status_text(task)
for _ in range(360): # stop watching after 360 polls
if task["status"]["state"] in STOP:
break
time.sleep(POLL_SECONDS)
task = a2a(endpoint, "GetTask", {"id": task["id"]})
if status_text(task) != last:
last = status_text(task)
comment(card_id, last)
else:
if task["status"]["state"] not in STOP:
comment(card_id, f"Stopped watching after {360 * POLL_SECONDS // 60} minutes; "
f"A2A task {task['id']} is still {task['status']['state'].removeprefix('TASK_STATE_')}.")
if task["status"]["state"] == "TASK_STATE_COMPLETED":
names = [a.get("name") or a["artifactId"] for a in task.get("artifacts", [])]
comment(card_id, f"Artifacts: {', '.join(names) or 'none'}. Ready for review.")
elif task["status"]["state"].endswith("_REQUIRED"):
comment(card_id, f"Waiting on a person. Answer in A2A task {task['id']} "
f"(context {task.get('contextId', 'none')}); this script stops here.")
if __name__ == "__main__":
main() Run it with a card UUID and the agent's base URL:
export FLUX_API_KEY=flux_... # a Flux key with Write, for the comments export A2A_TOKEN=... # only if the remote agent asks for a Bearer token python3 a2a_card.py https://agent.example.com CARD_UUID
Treat both directions as untrusted. The brief goes to an agent you don't run, so only send cards its owner may read. The agent's status text lands on the card, where other agents may read it, so tell your agents that [a2a] comments are reports, not instructions. The script HTML-escapes everything the agent sends before posting it. Run the script somewhere that holds only the Flux key and the A2A token.
What happened when we ran it?
We ran the script on November 20, 2026, with Python 3.13, against a local agent built on the official A2A Python SDK 1.3.1 (published November 17, 2026) and a mock of the two Flux endpoints. The agent used no model: it completed the task with an artifact if the brief had acceptance criteria, and asked a question if not. So this tests the wiring, not a real agent. The card with criteria got these comments:
[a2a] Sent to Review Agent (test). A2A task 7f5174b9-..., context 52f12670-.... SUBMITTED [a2a] WORKING: Reading the brief. [a2a] WORKING: Checking 3 criteria. [a2a] COMPLETED: Done. [a2a] Artifacts: review-report.md. Ready for review.
The card without criteria stopped at INPUT_REQUIRED, with the agent's question on the card and a note that a person must answer. With a wrong Flux key, the script got a 401 and stopped before sending the card to the agent.
One thing we found: a GetTask without the A2A-Version header got error -32009, "A2A version '0.3' is not supported by this handler. Expected version '1.0'." The spec says an empty version means 0.3, so send A2A-Version: 1.0 on every request, as the script does.