/mcp-apps-studio:protocol-selectionfrom mcp-apps-studio
Helps choose between MCP Apps, mcp-ui, OpenAI Apps SDK, A2UI, and AG-UI for agent UI rendering. Includes a decision tree, discriminating axes, and migration path guidance.
Ships in mcp-apps-studio. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Five options, three genuinely different problems. Most bad choices come from answering the wrong question.
If the answer is more than one, you need more than one. They compose cleanly.
Do you own the frontend that renders the UI?
├─ NO — a chat host renders it (Claude, ChatGPT, M365 Copilot, Goose)
│ └─ Start with MCP Apps. Then:
│ ├─ Need externalUrl or remoteDom delivery, or a pre-MCP-Apps host?
│ │ └─ mcp-ui (it implements MCP Apps and keeps its own action protocol)
│ └─ Need ChatGPT-only capability — checkout, uploadFile, requestModal?
│ └─ MCP Apps + the OpenAI Apps SDK extensions on top
│
└─ YES — you own the client
├─ The client must render with its OWN native widgets
│ (Flutter/SwiftUI/design-system React), or executing model-authored
│ markup is unacceptable
│ └─ A2UI
└─ The agent is long-running and the UI must show progress, shared state,
thinking steps, and support interrupts
└─ AG-UI (and render individual results with A2UI or your own components)
| Axis | MCP Apps | mcp-ui | Apps SDK | A2UI | AG-UI |
|---|---|---|---|---|---|
| Who renders | Chat host, sandboxed iframe | Chat host, sandboxed iframe | ChatGPT, sandboxed iframe | Your client, native widgets | Your frontend |
| UI is | HTML/JS you author | HTML/JS/URL/DOM script | HTML/JS you author | JSON data | Events → your components |
| Portability | High — any compliant host | High + legacy hosts | ChatGPT-first | Very high — any renderer | You own it |
| Design control | Total | Total | Total, within ChatGPT rules | The client's, not yours | Total |
| Injection surface | Sandboxed script | Sandboxed script | Sandboxed script | None — data only | None |
| Non-web surfaces | No | No | No | Yes | Depends on frontend |
| Streaming granularity | Tool input → result | Tool input → result | Tool input → result | Per component/data path | Per token/event |
| Long-running agents | Poor fit | Poor fit | Poor fit | Partial | Purpose-built |
| Human-in-the-loop | Via tool calls | Via actions | Via tool calls | Via actions | First-class interrupts |
Reaching for window.openai first. It ties you to one host for capability
that MCP Apps already covers. Use the standard field; layer extensions only for
checkout, files, and modals.
A2UI for a ChatGPT widget. ChatGPT renders MCP Apps resources, not A2UI surfaces. You would be writing a renderer nobody asked for.
AG-UI to render a single tool result. The event machinery buys you nothing if the interaction is one request and one card. Use MCP Apps.
MCP Apps for a 20-minute research agent. You get one tool-result and no
vocabulary for progress, reasoning steps, or interrupts. Use AG-UI, or split:
AG-UI for the run, MCP Apps for the final artifact.
externalUrl as the default. It costs an origin in CSP, a network hop, and
an independent deploy to keep in sync. Take it when you genuinely have an
existing app; not to avoid learning the bundler.
Attaching a UI resource to every tool. See the decoupled data/render pattern
in openai-apps-sdk. This is the most common performance defect in shipped apps.
Whatever you choose, these keep the exit cheap:
content and
structuredContent. This is what lets the same server serve a text-only
host, a different protocol, or an API consumer.app.* / window.openai.*
/ postMessage) should be behind a thin adapter, not sprayed through
components. Porting then means rewriting one file.ui://x/v1.html → ui://x/v2.html makes a
protocol change a deploy, not a migration./ui:port automates the mechanical part of moving between protocols once these
hold.
| Requirement | Choice |
|---|---|
| "Show a chart when my MCP tool returns data" | MCP Apps |
| "Ship an app in the ChatGPT directory" | MCP Apps + Apps SDK |
| "Add a widget to a Microsoft 365 Copilot declarative agent" | MCP Apps (check the Copilot matrix) |
| "Render agent UI in our Flutter app" | A2UI |
| "Our design system must own every pixel" | A2UI |
| "Show the agent's progress and let users approve steps" | AG-UI |
| "We already host the dashboard as a web app" | mcp-ui externalUrl |
| "The host should render it with its own components" | mcp-ui remoteDom or A2UI |
| "Model output must never become executable markup" | A2UI |
mcp-apps-protocol, mcp-ui-sdk, openai-apps-sdk, a2ui-protocol,
ag-ui-protocol — the specs behind each column.host-capability-matrix — what the target host actually implements.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
protocol-selection, agent-ui, decision-tree, mcp-apps, a2ui, ag-ui
16 skills in this plugin
/a2ui-protocolThis skill should be used when building A2UI (Agent to UI) interfaces — the six streamed message types, surfaces, the flat adjacency-list component model, component catalogs, JSON Pointer data binding and two-way input binding, actions vs functionCalls, CheckRule validation, and progressive streaming./ag-ui-protocolThis skill should be used when integrating AG-UI — the full event taxonomy (lifecycle, text message, tool call, state, activity, reasoning, custom), RunAgentInput, SSE and binary transports, AbstractAgent/HttpAgent, STATE_DELTA JSON Patch, generative UI, human-in-the-loop interrupts, and CopilotKit frontends./host-capability-matrixThis skill should be used when deciding which MCP Apps or window.openai APIs are safe to depend on for a given host — the verified M365 Copilot support matrix for the component bridge, tool descriptor _meta, annotations, resource _meta, CSP properties, and client _meta, plus the feature-detection patterns that keep a widget portable./m365-copilot-packagingThis skill should be used when shipping an MCP app into Microsoft 365 Copilot as a declarative agent — prerequisites, the widget host CORS URL, OAuth 2.1 and Entra SSO redirect URIs, Agents Toolkit sideloading, dynamic tool discovery, and the Copilot-specific capability gaps to design around./mcp-apps-protocolThis skill should be used when implementing or debugging the MCP Apps extension — ui:// resource URIs, the text/html;profile=mcp-app mimeType, every _meta.ui field, the full ui/* JSON-RPC bridge over postMessage, tool visibility, host context, display modes, and the five lifecycle phases./mcp-apps-sdkThis skill should be used when writing code against @modelcontextprotocol/ext-apps — registerAppTool, registerAppResource, RESOURCE_MIME_TYPE, the App class and its handlers, the React useApp hook, the app-bridge entry point, and the Vite single-file build that MCP Apps expect.npx claudepluginhub thelobbi/claude --plugin mcp-apps-studioOther plugins' skills for the same job