Agent Protocols Explained

/about

About this site

Agent Protocols Explained follows how agents talk to tools at the level of messages on the wire: why a protocol, JSON-RPC and the life cycle of a session, tools, resources and prompts, transports, and the server asking the user or a model. Every chapter is built around an animation. It is the second of a family of agent sites, after Agent Harnesses Explained and followed by Agent Context Explained and Agent Orchestration Explained, next to the LLM-systems sites (the Transformer Decoder Explainer, LLM Inference Explained, Inference Trade-offs Explained and others, all in the header's switch).

The protocol revision

The site describes MCP revision 2026-07-28, the current one on the specification's versioning page when it was written (accessed 2026-10-08), and the handshake era it replaced (2024-11-05 to 2025-11-25). Where the two differ, every animation can show both.

The engine

Every animation is a run of Agent_Loop_Sim's protocols module, vendored into this site at commit 46b445c (VENDORED.json records each file's SHA-256). Its Python reference and the TypeScript port the site runs produce the same messages and frames; the site's CI regenerates its fixtures from the Python reference installed at that commit and requires the port to match them. It has:

Checked against the official SDK

The protocol is not modelled from the specification alone. A small server written with the official MCP Python SDK (mcp 2.3.0) and the SDK's own client play 18 sessions over stdio while a tee records every line; the engine must produce the same 160 messages, compared as JSON with request IDs renumbered. The engine's CI re-records the SDK live on every change. The conformance page shows the recordings.

A2A is checked the same way: an agent written with the official A2A Python SDK (a2a-sdk 1.2.2) is driven, in process, by the engine's own A2A client through 8 sessions; the engine's agent must send the same 56 messages once IDs and timestamps are normalised.

What is real and what is illustrative

How it is checked

Go deeper

The slides behind the chapters: the MCP series, OAuth for MCP and the Agents hub. Source and issues: GitHub.

Built by Brendan Lynskey