AIToday
Large Language ModelsZenn AI/MLPublished: Nov 29, 2026, 22:00 JST

AG-UI・A2UI・MCP Apps compared in one generative-UI demo

Send on LINE
AG-UI・A2UI・MCP Apps compared in one generative-UI demo

3 Key Points

  1. What happened

    A new page, "The Three Types of Generative UI," replays the same expense-filing request three ways: static AG-UI events, declarative A2UI v1.0 messages rendered with @a2ui/react, and free-form MCP Apps HTML inside a sandboxed iframe.

  2. Why it matters

    The demo frames the three as different layers rather than rivals — AG-UI is the path between agent and screen, A2UI is how the screen's shape is written, and MCP Apps is a tool handing over the whole screen — so they can be combined.

Ask AI

Ask the AI about this article. Questions and answers are published on this page

Context & Analysis

The comparison is organized around a table that splits responsibilities three ways: who decides the screen's shape, who decides its look, and what the agent actually sends. In the static AG-UI path, the app owns both shape and look, and the agent contributes only which tool is called and with what arguments. A2UI moves shape and look to the agent, which sends a list of components and data as JSON that the app draws with its own parts; the demo uses A2UI v1.0 messages (createSurface, updateComponents, updateDataModel) and the real @a2ui/react renderer, with --a2ui-* CSS variables aligning colors and corner radii to the site. MCP Apps goes furthest, with the MCP server handing over per-HTML screens as ui:// resources, loaded into an iframe with sandbox="allow-scripts" and negotiated through postMessage from ui/initialize to tools/call, with tool calls from the screen checked for permission before running.

Because the page treats these as layers rather than alternatives — a path between agent and screen, a way of writing the screen's shape, and a mechanism for a tool to deliver a screen — it argues they can be combined in one product. Each tab shows the app's screen on the left and incoming messages in arrival order on the right, and nothing calls an AI: the messages are written to spec and replayed, so runs are repeatable. Event names and fields follow @ag-ui/core 1.0.5, and MCP Apps initialization arguments and responses follow @modelcontextprotocol/ext-apps 2.0.4 types. The author notes two limits: the free-form tab is simplified, since the spec places web apps in a sandboxed relay page on a separate origin, and Open-JSON-UI was left out because no official spec could be found at the time of checking. The author also verified each tab end to end, including that a reception number appears inside the iframe after permission is granted.

FAQ
What is the difference between the three types?
In the static AG-UI type, the app decides the screen's shape and look, and the agent only sends which tool to call with which arguments. In the declarative A2UI type, the agent decides the shape and look via JSON component lists. In the free-form MCP Apps type, the MCP server supplies the whole HTML screen as ui:// resources.
Which type should a developer choose?
The page's guide: static for your own app when the screen is fixed in advance, declarative for your own app when the screen cannot be fully decided beforehand, and free-form MCP Apps inside other companies' apps such as Claude or ChatGPT.
Is this a live AI demo?
No. The pages replay messages written to spec rather than calling an AI, so every run produces the same result for comparison.
Send on LINE

AI news that matters for your work, delivered every morning.

Pick your industry and the AI tools you use, and get news related to your work every day.

By signing up you agree to the Terms of Service and Privacy Policy.

Free · 30 seconds with Google · unsubscribe anytimeWhat is AIToday? →

Related Articles

Next articleClaude Fable 5.2 gives up fast when tasks look rigged, Goodhart Labs finds