# MCP Apps (SEP-1865) vs. A2UI 1.0 vs. Generative UI: Agentic Commerce UI Architecture

**Direct Answer:** MCP Apps (`SEP-1865`) renders single-file `ui://` HTML inside an opaque `default-src 'none'` CSP iframe over JSON-RPC `postMessage`, whereas A2UI 1.0 streams declarative `catalog.json` adjacency JSONL with `RFC 6901` JSON Pointers and zero agent JavaScript, and Generative UI fits ephemeral single-turn widgets without persistent server state.

> **Canonical URL:** https://theuniversalcommerceprotocol.com/mcp-apps-sep-1865-vs-a2ui-agentic-commerce-ui-spec/  
> **Updated:** December 1, 2026  
> **Workbook & Brief:** [Excel Architecture Matrix (.xlsx)](https://theuniversalcommerceprotocol.com/wp-content/uploads/2026/12/ucp-mcp-apps-vs-a2ui-architecture-matrix-2026-12-01.xlsx) | [2-Page Specification Brief (.pdf)](https://theuniversalcommerceprotocol.com/wp-content/uploads/2026/12/ucp-mcp-apps-sep-1865-vs-a2ui-reference-brief.pdf)

---

## 1. Wire Contracts, Isolation Boundaries & State Persistence

Choosing a commerce UI surface for agentic checkout requires matching the trust boundary to the host runtime (`Antigravity v2.34.0+`, web storefronts, or native mobile apps). Allowing an LLM to emit arbitrary executable `<script>` blocks next to AP2 payment tokens or merchant admin tools invites prompt-injection escalation, while rigid text-only responses force buyers out of the agent loop.

| Dimension | MCP Apps (`SEP-1865`) | A2UI 1.0 | Generative UI |
| :--- | :--- | :--- | :--- |
| Primary Wire Contract | Single-file `ui://` HTML (`text/html;profile=mcp-app`) over JSON-RPC `postMessage` | Declarative component adjacency JSONL + `RFC 6901` JSON Pointer data model | One-off host-rendered ephemeral HTML widget inside a single turn |
| Security & Isolation | Opaque/unique-origin iframe, `default-src 'none'` CSP, no persistent cookies | Zero agent-supplied HTML/JS execution; host validates `catalog.json` whitelist | Host-sandboxed artifact HTML without backing stdio/HTTP MCP server |
| Surface Entrypoints | Inline chat (`150-800px`), `aux_pane`, `global` sidebar, `file` viewer | Cross-platform native/web renderers (React, Angular, Lit, Flutter, SwiftUI, Compose) | Inline chat widget or standalone conversation artifact |
| Tool & Model Visibility | `visibility: ['app']` hides privileged tools from LLM while UI calls server | Server `@macro` expansion + `action.event` / `action.functionCall` split | No dedicated MCP server; model generates markup directly |
| State Persistence | No `ui/resource-teardown` in Antigravity — persist eagerly via app tools | Server-side state & surface data updates via `updateDataModel` | Static to the generated turn unless exported by user |

## 2. Weighted 16-Criterion Commerce Scorecard

Evaluating all four patterns across `16` weighted security, portability, UX, and operational criteria (`SEC-01`–`SEC-04`, `PRT-01`–`PRT-04`, `UX-01`–`UX-04`, `OPS-01`–`OPS-04`) in `ucp-mcp-apps-vs-a2ui-architecture-matrix-2026-12-01.xlsx` separates production checkout candidates (`>= 80.0%` weighted fit and `>= 3/4` security gates `>= 8/10`) from exploratory demos:

| Architecture Pattern | Weighted Score | Max Score | Fit (%) | Security Gates `>= 8/10` | Gate Verdict |
| :--- | :--- | :--- | :--- | :--- | :--- |
| A2UI 1.0 Declarative Catalog | 600 | 660 | 90.9% | 3 / 4 | `PRODUCTION_READY` |
| Hybrid (A2UI Inside `ui://` Bundle) | 588 | 660 | 89.1% | 4 / 4 | `PRODUCTION_READY` |
| MCP Apps (`SEP-1865` + Antigravity) | 483 | 660 | 73.2% | 3 / 4 | `CONDITIONAL` |
| Ephemeral Generative UI | 213 | 660 | 32.3% | 0 / 4 | `EXPLORATORY_ONLY` |

## 3. Antigravity v2.34.0+, Four Official Patterns & Hybrid Guidance

1. **Antigravity Surface Entrypoints (`com.google.antigravity/ui`):** Antigravity `v2.34.0+` extends `io.modelcontextprotocol/ui` with `aux_pane` side tabs, `global` full-page sidebars, and `file` editors, while omitting `ui/resource-teardown` — meaning checkout drafts must persist eagerly via `visibility: ['app']` tools on every state transition.
2. **Four Official A2UI + MCP Patterns:** `a2ui.org` documents four standard integration patterns: (1) A2UI payload returned inside standard MCP tool responses, (2) A2UI streamed over A2A `AgentCapabilities` negotiation (`v1.0`), (3) declarative `catalog.json` capability negotiation between agent and merchant renderer, and (4) embedding an A2UI surface directly inside a `SEP-1865` `ui://` iframe bundle.
3. **Hybrid Defense-in-Depth (`89.1%` Fit, `4/4` Security Gates):** Embedding A2UI inside a `SEP-1865` `ui://` container delivers both `default-src 'none'` iframe origin isolation and `catalog.json` / `RFC 6901` schema validation when a host lacks native Flutter or SwiftUI A2UI renderers.
4. **WebMCP Form Alignment:** Pair browser-facing storefront forms with explicit `inputSchema` and `outputSchema` contracts ([WebMCP Contact Form Spec](/webmcp-inputschema-outputschema-contact-form/)) and `RFC 8615` `/.well-known/ucp` discovery while reserving `SEP-1865` and A2UI for authenticated multi-turn agent workspaces.

## 4. Primary Sources

- [MCP Apps Overview (`SEP-1865`)](https://modelcontextprotocol.io/extensions/apps/overview)
- [MCP `ext-apps` Reference Repository](https://github.com/modelcontextprotocol/ext-apps)
- [A2UI 1.0 MCP Integration Overview](https://a2ui.org/guides/mcp-overview/)
- [Antigravity MCP Apps Documentation](https://antigravity.google/docs/mcp-apps.md)
- [RFC 6901: JavaScript Object Notation (JSON) Pointer](https://www.rfc-editor.org/info/rfc6901/)
- [RFC 8615: Well-Known Uniform Resource Identifiers](https://www.rfc-editor.org/info/rfc8615/)
