Published November 26, 2026
A2UI vs AG-UI vs MCP-UI: Where Each Protocol Fits in a Flutter GenUI Stack
Three names keep appearing in the same sentence when Flutter teams talk about generative UI: A2UI, AG-UI, and MCP-UI. They are not competitors, and treating them as alternatives is the fastest way to build the wrong layer twice. Each one answers a different question, and a single product can reasonably use all three.
The confusion is understandable, because all three describe agents talking to interfaces. The distinction is ownership. Who owns the screen, who owns the conversation, who owns the tool. Answer those and the choice stops being a debate.
A2UI describes the interface
A2UI is the layer that describes what gets drawn. An agent produces JSON that names components from a catalog the app has already approved, and the app renders those names with its own widgets. In Flutter that job belongs to a2ui_flutter, which reached 0.3.0 alongside the A2UI 1.0 announcement in November.
The important property is that the agent never chooses a color, a font, or a corner radius. It chooses from a menu the design system wrote. That is what keeps a generated screen looking like the app rather than like a generic chat surface with cards attached.
A2UI 1.0 added typed two-way function calls, and that single change is what makes the protocol feel less like templating and more like an interface. Previously the loop was mostly one direction: the agent sent a tree, the app drew it. Now the app can send events and function calls back up the same channel, and the agent can respond to what the person actually did.
AG-UI carries the conversation
AG-UI is transport, not layout. It is an open, event-based protocol that connects an agent back end to the client a person is using, and it grew out of work from CopilotKit alongside LangChain and CrewAI. If A2UI is the shape of the screen, AG-UI is the pipe the shapes travel through.
The A2UI 1.0 specification names AG-UI as its standard transport binding, which means A2UI messages very often ride inside an AG-UI event stream and most teams never think about the seam. A2UI can also travel over Google's Agent2Agent protocol, over MCP, over a plain WebSocket, or over REST. The binding is a choice, not a constraint.
MCP-UI, now called MCP Apps, answers the third question. Instead of asking the host to draw your components, an MCP server returns an HTML application as a ui:// resource, and hosts such as Claude or VS Code GitHub Copilot render it inside a sandboxed iframe. The MCP-UI client package now renders MCP Apps views, so the older name still shows up in dependency lists.
Put plainly, the decision comes down to whose screen it is:
- If you own the app and its design system, A2UI lets an agent compose your components while the brand stays intact.
- If your product needs to appear inside someone else's assistant, MCP Apps puts your interface there, in a frame the host controls.
- If you own both ends, AG-UI is the wire between them, carrying whatever interface protocol you settled on.
These layers combine rather than compete. The A2UI documentation even covers embedding an MCP App inside an A2UI surface, which is the honest admission that a mature product may need both: native components for the main experience, and an embedded foreign view for a capability someone else built.
What a two-way loop changes on screen
The clearest demonstration of the new loop is a smart home panel that Very Good Ventures built in Flutter to accompany the A2UI 1.0 launch. Rivera Home is a wall-mounted dashboard where an agent assembles a different arrangement of cards for each member of a household, in the moment, from a small approved catalog.
The scenario is deliberately mundane. Two people are hosting a dinner party. One is cooking, the other is running pickups. Then the guests call to say they are arriving an hour early. That single change ripples through both people's days, and the panel has to keep up without being refreshed.
Three mechanics make that work, and all three are worth copying. The app sends its current data model upward, so the agent edits the screen the person is already looking at instead of rebuilding from scratch. Cards bind to data paths, so a temperature or a delivery status updates in place without another model call. And the back end keeps a socket open, pushing clock ticks, device changes, and freshly built dashboards as they happen.
The guardrails are the part Flutter teams will recognize as production work. The panel is a twelve-column, two-row grid. Each card's size is declared once and then used by the prompt, by a server-side validator, and by the layout, so no arrangement the model invents can overflow or leave a gap. The back end rejects invalid A2UI, unknown components, and wrong card sizes, then retries once. The app applies each reply atomically, which is why the panel never shows a half-built grid while a response streams in.
Voice entry closes the loop from the human side, using live transcription to turn a spoken sentence into an agent turn. The plumbing is deliberately boring: A2UI over a socket to a Dart back end, no extra protocol layer for a single-household demo.
The lesson for anyone building generative UI in Flutter is that the hard part is not the schema. It is deciding what the model is allowed to decide. Let the model choose structure. Let code and data carry the values. Let the stream carry the change. Everything else, from card sizing to validation retries, is ordinary engineering that happens to sit next to a model.
Rivera Home is open source under Apache-2.0, which makes it one of the few GenUI references a Flutter team can read end to end rather than infer from a specification.