/mcp-apps-studio:host-capability-matrixfrom mcp-apps-studio
Cross-references OpenAI Apps SDK and MCP Apps APIs with per-host support in M365 Copilot, ChatGPT, and Claude. Documents feature-detection patterns for portable widgets.
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.
Every host implements a subset. An API that exists in ChatGPT may be undefined
in M365 Copilot and absent in a custom host. Unsupported APIs are undefined,
not throwing — so a missing guard produces a silent dead button, not an error
you will notice in testing.
The tables below are the published Microsoft 365 Copilot support matrix, which
is the most complete public statement of any host's coverage. Treat ChatGPT as
full support for the window.openai column (it defines it) and Claude as full
support for the MCP Apps column. Verify at runtime regardless.
| OpenAI Apps SDK | MCP Apps equivalent | M365 Copilot |
|---|---|---|
window.openai.toolInput | app.ontoolinput | ✅ |
window.openai.toolOutput | app.ontoolresult | ✅ |
window.openai.toolResponseMetadata | app.ontoolresult → params._meta | ✅ |
window.openai.widgetState | — | ✅ |
window.openai.setWidgetState(state) | no direct equivalent; use app.updateModelContext() | ✅ |
window.openai.callTool(name, args) | app.callServerTool({ name, arguments }) | ✅ |
window.openai.sendFollowUpMessage({ prompt }) | app.sendMessage({ … }) | ✅ |
window.openai.uploadFile(file) | — | ❌ |
window.openai.getFileDownloadUrl({ fileId }) | — | ❌ |
window.openai.requestDisplayMode(…) | app.requestDisplayMode({ mode }) | ✅ fullscreen only |
window.openai.requestModal(…) | — | ❌ |
window.openai.notifyIntrinsicHeight(…) | app.sendSizeChanged({ width, height }) | ✅ |
window.openai.openExternal({ href }) | app.openLink({ url }) | ✅ |
window.openai.setOpenInAppUrl({ href }) | — | ✅ |
window.openai.theme | app.getHostContext()?.theme | ✅ |
window.openai.displayMode | app.getHostContext()?.displayMode | ✅ |
window.openai.maxHeight | app.getHostContext()?.viewport?.maxHeight | ✅ |
window.openai.safeArea | app.getHostContext()?.safeAreaInsets | ✅ |
window.openai.view | — | ✅ |
window.openai.userAgent | app.getHostContext()?.userAgent | ✅ |
window.openai.locale | app.getHostContext()?.locale | ✅ |
| — | app.ontoolinputpartial | ❌ |
| — | app.ontoolcancelled | ❌ |
| — | app.getHostContext()?.availableDisplayModes | ❌ |
| — | app.getHostContext()?.toolInfo | ❌ |
| — | app.onhostcontextchanged | ❌ |
| — | app.onteardown | ❌ |
| — | app.sendLog({ level, data }) | ❌ |
| — | app.getHostVersion() | ❌ |
| — | app.getHostCapabilities() | ✅ |
The four ❌ rows that hurt most in practice:
onteardown unsupported → you get no flush signal. Persist on every
meaningful change rather than at unmount.onhostcontextchanged unsupported → theme changes mid-session will not
reach you. Read theme once at init and accept the staleness, or use CSS
prefers-color-scheme as a backstop.ontoolinputpartial unsupported → no streaming skeleton. Design the
loading state around ontoolinput only.sendLog unsupported → fall back to console plus a visible debug pane
behind a query flag._meta| OpenAI Apps SDK | MCP Apps equivalent | M365 Copilot |
|---|---|---|
_meta["openai/outputTemplate"] | _meta.ui.resourceUri | ✅ |
_meta["openai/widgetAccessible"] | _meta.ui.visibility (string[]) | ❌ |
_meta["openai/visibility"] | _meta.ui.visibility (string[]) | ✅ |
_meta["openai/toolInvocation/invoking"] | — | ❌ |
_meta["openai/toolInvocation/invoked"] | — | ❌ |
_meta["openai/fileParams"] | — | ❌ |
_meta["securitySchemes"] | — | ❌ |
| Annotation | M365 Copilot |
|---|---|
readOnlyHint | ✅ |
destructiveHint | ❌ |
openWorldHint | ❌ |
idempotentHint | ❌ |
Only readOnlyHint is honored. Do not rely on destructiveHint to produce a
confirmation prompt — build the confirmation into your own UI.
_meta| OpenAI Apps SDK | MCP Apps equivalent | M365 Copilot |
|---|---|---|
_meta["openai/widgetDescription"] | — | ❌ |
_meta["openai/widgetPrefersBorder"] | _meta.ui.prefersBorder | ❌ |
_meta["openai/widgetCSP"] | _meta.ui.csp | ✅ |
_meta["openai/widgetDomain"] | _meta.ui.domain | ❌ |
| — | _meta.ui.permissions | ❌ |
| OpenAI Apps SDK | MCP Apps equivalent | M365 Copilot |
|---|---|---|
connect_domains | connectDomains | ✅ |
resource_domains | resourceDomains | ✅ |
frame_domains | frameDomains | ❌ |
redirect_domains | — | ❌ |
| — | baseUriDomains | ❌ |
Nested iframes are not available in Copilot at all. If your design embeds a third-party frame (a map, a video player), it will not render there — inline the capability or degrade to a link.
_meta| Field | M365 Copilot |
|---|---|
_meta["openai/widgetSessionId"] | ❌ |
_meta| Field | M365 Copilot |
|---|---|
_meta["openai/locale"] | ✅ |
_meta["openai/userAgent"] | ✅ |
_meta["openai/userLocation"] | ✅ |
_meta["openai/subject"] | ❌ |
Minimal guard:
if (window.openai?.callTool) {
const result = await window.openai.callTool({ name: "myTool", params: {} });
} else {
// fallback UI
}
Conditional affordance — never render a control the host cannot honor:
function FullScreenButton() {
if (!window.openai?.requestDisplayMode) return null;
return (
<button onClick={() => window.openai.requestDisplayMode({ mode: "fullscreen" })}>
Enter Fullscreen
</button>
);
}
Startup capability probe — the pattern to prefer for anything non-trivial:
interface PlatformCapabilities {
canCallTools: boolean;
canChangeDisplayMode: boolean;
canSendMessages: boolean;
canPersistState: boolean;
}
function detectCapabilities(): PlatformCapabilities {
const o = typeof window !== "undefined" ? window.openai : undefined;
return {
canCallTools: !!o?.callTool,
canChangeDisplayMode: !!o?.requestDisplayMode,
canSendMessages: !!o?.sendMessage,
canPersistState: !!o?.setWidgetState,
};
}
const caps = detectCapabilities();
if (!caps.canCallTools) renderReducedFunctionality();
On the MCP Apps side, ask the host directly:
const caps = await app.getHostCapabilities();
const modes = app.getHostContext()?.availableDisplayModes ?? ["inline"];
availableDisplayModes is itself unsupported in Copilot, so the ?? ["inline"]
default is doing real work.
try/catch that
swallows.openai-apps-sdk — what each window.openai API does.mcp-apps-protocol — the standard equivalents.m365-copilot-packaging — Copilot's other requirements (CORS, redirect URIs).What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub thelobbi/claude --plugin mcp-apps-studio16 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./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./mcp-ui-sdkThis skill should be used when working with mcp-ui — createUIResource and its rawHtml/externalUrl/remoteDom content types, the five UI action types (tool, prompt, link, intent, notify), the messageId async response flow, iframe lifecycle events, and the client-side UIResourceRenderer/AppRenderer components.Other plugins' skills for the same job