One map, six connections
In Level 1 you saw where a text-only agent runs out of road. It can't show a seat map. It can't let someone drag a slider. It scrapes websites that were never built for it. It can't hand work to another agent in any clean way. Each of those limits has grown its own protocol, and the names are easy to mix up: MCP, MCP Apps, AG-UI, WebMCP, A2A, ACP.
The way to keep them apart is to stop asking what each protocol is. Ask which two parties it connects. Think of a building's wiring diagram. Power, network, intercom and fire alarm all run through the same walls, but each cable joins different rooms. Pull the wrong cable and nothing works.
Here are the parties on our map:
- Person: the human, looking at some screen.
- Host / front end: a chat client (Claude, ChatGPT, VS Code), your own web app, a browser or an editor.
- Agent: the model plus the loop that calls tools.
- Tool / data: APIs, databases, files.
- Website: someone else's site, open in the user's browser.
- Other agent: an independent agent run by another team or company.
The map
┌──────────── PERSON ────────────┐
│ │
(sees UI in a chat host) (sees your own app / a site / an editor)
│ │
┌──────── Chat host (Claude, ChatGPT, VS Code…) ───┐ ┌── Your front end ──┐
│ MCP Apps widget (sandboxed HTML iframe) │ │ React / Vue / etc. │
└──────────────▲──────────────────────────────────┘ └─────────▲──────────┘
│ MCP Apps (UI extension to MCP) │ AG-UI event stream
│ │ (+ gen-UI libraries)
┌────┴───────────────── AGENT ────────────────────────┴───┐
│ │
MCP ──────┤ agent → tools & data A2A ───────────────┤ agent ↔ other agent
│ │
ACP ──────┤ editor ↔ coding agent (stdio) WebMCP ─────────────┤ website → browser agent
└─────────────────────────────────────────────────────────┘
The same map as a lookup table:
# who-talks-to-whom.yaml: one line per connection
MCP: { from: agent, to: tools/data, e.g.: "query Postgres, read a repo" }
MCP Apps: { from: MCP server, to: chat-host UI, e.g.: "interactive chart inside the chat" }
AG-UI: { from: agent backend, to: YOUR front end, e.g.: "stream progress + state to a React app" }
Gen-UI libs:{ where: your app, role: "render model output as components (e.g. Vercel AI SDK, CopilotKit)" }
WebMCP: { from: website, to: in-browser agent, e.g.: "site registers 'search_flights' as a tool" }
A2A: { from: agent, to: other agent, e.g.: "travel agent delegates to an airline's agent" }
ACP: { from: code editor, to: coding agent, e.g.: "Zed drives Gemini CLI or OpenCode" }
Walking each cable
MCP: agent to tool. This is the base layer you already know. A server exposes tools and resources, and an agent's client calls them. It knows nothing about pixels. MCP is now hosted by the Agentic AI Foundation under the Linux Foundation.
MCP Apps: tool to UI inside someone else's chat client. This is an official MCP extension (identifier io.modelcontextprotocol/ui), announced in January 2026. A tool can return an interactive HTML interface, and the host renders it inline in the conversation inside a sandbox. Claude, ChatGPT, VS Code with GitHub Copilot and Goose all support it. Support keeps growing, so check the official extension support matrix before you promise a client to anyone. The point is that you don't own the screen. The host does.
AG-UI and generative UI libraries: agent to your own front end. When the screen is yours, you need a live feed of what the agent is doing: text tokens, tool-call starts and ends, state snapshots. AG-UI (the Agent User Interaction Protocol, started by CopilotKit) standardises that feed as typed events, usually sent over Server-Sent Events:
RUN_STARTED → TEXT_MESSAGE_START → TEXT_MESSAGE_CONTENT "Checking…" → TOOL_CALL_START search_flights
→ TOOL_CALL_ARGS {...} → TOOL_CALL_END → STATE_SNAPSHOT {results: 12} → RUN_FINISHED
Libraries such as the Vercel AI SDK and CopilotKit sit on this side of the map. They turn streamed model output into components in your app.
WebMCP: website to browser agent. WebMCP turns scraping around. Instead of an agent guessing at buttons, the site declares its tools itself:
// On the airline's own page: the site offers a tool to whatever agent runs in the browser
await document.modelContext.registerTool({
name: "search_flights", // what the agent will call
description: "Search flights by route and date",
inputSchema: { type: "object", properties: { from: {type:"string"}, to: {type:"string"} } },
execute: async ({ from, to }) => searchApi(from, to) // runs in the page, with the user's session
});
Gotcha: standards status. WebMCP is a Draft Community Group Report from the W3C Web Machine Learning Community Group. It is not a W3C Standard and not on the Standards Track. The API surface has already moved (older drafts and early Chrome previews used
navigator.modelContext, and the current draft usesdocument.modelContext). Treat it as experimental.
A2A: agent to agent. Agent2Agent connects independent agents that keep their internals private. One agent finds another through its Agent Card, a description of its skills and endpoints, and then sends it tasks. A2A v1.0 was its first stable spec, and in August 2026 the project moved to the Agentic AI Foundation, alongside MCP. Here is the key difference from MCP. An MCP tool is a function you call. An A2A agent is a peer that reasons, may take a long time, and may ask you questions back.
ACP: editor to coding agent. Zed's Agent Client Protocol lets any editor drive any coding agent. The editor launches the agent as a subprocess, and the two exchange JSON-RPC messages over stdio. It is much like what LSP did for language servers. ACP is not agent-to-agent, and it is not agent-to-tool. It is the link between a person's editor and their agent.
Picking a layer: a worked decision
type Scenario = { screen: "chat-host" | "own-app" | "third-party-site" | "editor" | "none";
counterpart: "tool" | "agent" | "person" };
function pickLayer(s: Scenario): string {
if (s.counterpart === "agent") return "A2A"; // peer with its own reasoning
if (s.screen === "chat-host") return "MCP Apps (on top of MCP)"; // you don't own the UI
if (s.screen === "own-app") return "AG-UI + a gen-UI library"; // you own the UI
if (s.screen === "third-party-site") return "WebMCP"; // site exposes tools
if (s.screen === "editor") return "ACP"; // editor ↔ coding agent
return "MCP"; // headless tool access
}
pickLayer({ screen: "chat-host", counterpart: "person" }); // → "MCP Apps (on top of MCP)"
Trade-off: these layers stack. They don't compete. A real product often uses three of them: MCP for data, MCP Apps for the widget in Claude or ChatGPT, and AG-UI for the same feature in your own dashboard. Practice is still settling, and the boundaries (AG-UI vs. library-specific streams, for example) shift from one release to the next.
Hands-on exercise
- Draw the map from memory on paper or in Excalidraw, with all six parties and seven labels.
- Classify each scenario and write one sentence on why the nearest wrong layer doesn't fit:
- (a) A hotel chain wants guests' in-browser assistants to book rooms without scraping.
- (b) Your SaaS dashboard should show an agent's step-by-step progress live.
- (c) A procurement agent must negotiate with a supplier's agent.
- (d) A data team wants an interactive chart to appear inside ChatGPT and Claude.
- (e) You want your team's custom coding agent to work inside Zed.
- Check your answers with
pickLayer, then add one scenario of your own that needs two layers.
Key takeaways
- Sort protocols by which two parties they connect, not by their names.
- MCP = agent to tool. MCP Apps = tool UI inside a chat host. AG-UI = agent to your own front end.
- WebMCP = a website offering tools to a browser agent. It is still a W3C Community Group draft.
- A2A = peer agents that keep their internals private. ACP = editor to coding agent over JSON-RPC on stdio.
- Real products stack several layers. Pick each one by asking who owns the screen and who is on the other end.