Repository navigation
Open
Description
Tracking issue for the remaining gaps between the CopilotKit MCP Apps host and the MCP Apps spec (@modelcontextprotocol/ext-apps, protocol 2026-01-26).
#6707 migrated the React host onto the ext-apps AppBridge, which wires the core protocol. The bridge already supports the full host surface; the items below are host behaviors CopilotKit has not wired yet. Status is for react-core (Vue/Angular are separately hand-rolled — see #6823 for the shared-package plan that would let all three inherit these at once).
Implemented (react-core, via #6707)
-
ui/initialize+ capability / protocol-version negotiation (2026-01-26) - Sandbox handshake (
sandbox-proxy-ready→sandbox-resource-ready) -
ui/message(with CopilotKitrole/followUpextensions via_meta.copilotkit, thread-capture 🐛 Bug: MCP app ui/message follow-up work can lose its enqueue-time thread context #5819) -
ui/open-link(with scheme denylist) -
tools/callproxy (runAgent queue) -
ui/notifications/size-changed -
ui/notifications/initialized -
ui/notifications/logging-message - Host → app
tool-input/tool-result
Gaps to close
High priority
-
ui/request-display-mode(inline / fullscreen, close button, host-context-changed,containerDimensions) — originally feat(react-core): implement MCP Apps ui/request-display-mode host handler #6689, to be re-based onto the ext-apps base -
ui/request-update-model-context— feed widget-provided context back to the agent - Propagate theme changes to the widget — sync the host's light/dark theme into the host context and emit
ui/notifications/host-context-changedwhenever it changes (todaythemeis hardcoded to"light"and never updated, so a widget can never follow the app switching to dark mode) - Richer host context — beyond theme, today only
{ theme, platform }is seeded. Missing:styles,displayMode/availableDisplayModes(comes with display-mode),containerDimensions,locale,timeZone,deviceCapabilities,safeAreaInsets— and emittinghost-context-changedwhen any of these change, not just at initialize
Medium
-
ui/download-file -
ui/request-teardown/teardownResourcelifecycle - Host → app
tool-input-partialandtool-cancelled - CSP conformance — confirm the full
McpUiResourceCspshape (connect/resource/frame domains) is read from resource_metaand applied to the sandbox, not justresourceDomains
Lower / to confirm
- MCP passthrough requests the bridge exposes but CopilotKit does not proxy yet (
read-resource,list-resources,list-prompts,create-sampling-message) — confirm which are in scope for a host -
list-changednotifications (tools/resources/prompts) if/when applicable
Notes
- Each item should land with e2e coverage that asserts the protocol contract (the compile-time tie to the spec that motivated feat(react-core): migrate MCP Apps host to @modelcontextprotocol/ext-apps (AppBridge) #6707).
- The natural home for most of these is the shared
mcp-apps-supportpackage proposed in Extract a shared MCP Apps host package to remove per-framework duplication #6823, so they are implemented once and shared across React/Vue/Angular.
Metadata
Metadata
Assignees
Labels
No labels
Activity
copilotkit-outpost-bot commentedon Sep 1, 2026
Thanks for the detailed tracking issue! This is a well-structured gap analysis against the
@modelcontextprotocol/ext-appsspec (2026-01-26).To set expectations clearly: I'm an AI support assistant — I don't have visibility into the internal implementation state beyond what's in the public docs, and I can't confirm, reproduce, or assess the status of any of these gaps myself. The engineering team will need to triage and verify each item.
A few things I can offer that might be useful context:
What the public docs currently describe
The docs at https://docs.copilotkit.ai/integrations/deepagents/generative-ui/mcp-apps and related pages describe the
MCPAppsMiddlewareintegration surface, but don't document the host-side protocol contracts you're tracking here (display modes, host context, teardown lifecycle, etc.). So there's no public reference I can point you to for those gaps — this issue is the reference.Observations on the structure of this issue
#6823(sharedmcp-apps-supportpackage for React/Vue/Angular) is an important dependency — one possibility is that some of the medium/lower items are intentionally deferred until that shared package lands, to avoid implementing them three timesWhat happens next
Since this is a GitHub tracking issue, the CopilotKit maintainers will see it directly. If you want faster triage or want to discuss implementation approach, the CopilotKit Discord is where the core team is most active for that kind of back-and-forth.
Is there a specific gap on this list you'd like help thinking through from a consumer/integration perspective, or is this purely a maintainer-facing tracking issue?
🤖 Generated by CopilotKit AI Support · Documentation
Was this helpful? React with 👍 or 👎
clean99 commentedon Oct 24, 2026
I'd like to take the dynamic host-context updates item from this checklist. #7467 already covers the initial dark theme, so this would only handle changes after initialization. I have a working branch ready if you're OK with it.
In
packages/mcp-apps-renderer/src/session.tsthe session would watch the existing.darkancestors (an explicit host theme still wins), and a newupdateHostContext(...)method would take later locale, style and other host context changes. Both go throughAppBridge.setHostContextto sendui/notifications/host-context-changed, buffered until the app is initialized and stopped on teardown. Tests extend the shared protocol tests with real AppBridge/postMessage traffic.Display mode, model-context updates and inferring new context fields stay out of scope. Should I line this up with yannj-fr's open #7760 and #7811 first, since they touch the same session code?
yannj-fr commentedon Oct 24, 2026
Really happy to get help, we can sync in private if you want
clean99 commentedon Oct 25, 2026
Thanks! GitHub works for me, so I'll keep the discussion here. I'll stick to the host-context updates only, clear of #7760 and #7811, and open it as a draft PR once my other CopilotKit PR (#7979) is through, so you can see how it touches
session.tsbefore a maintainer weighs in.feat(mcp-apps): support ui/update-model-context in React, Vue and Ang…
feat(mcp-apps): fullscreen display mode through ui/request-display-mo…
yannj-fr commentedon Nov 23, 2026
Status update: the two high-priority protocol items are merged, in the shared
@copilotkit/mcp-apps-rendererpackage, so React, Vue and Angular all get them.ui/request-display-mode(#7760, merged 2026-11-23)pipis refused and the response carries the mode still applied. A mode the app did not declare inappCapabilities.availableDisplayModesis refused too.<dialog>opened withshowModal(), so it covers the viewport from the top layer even inside the chat'scontainer-typepanel. Close button and Escape exit; the iframe is never reparented, so the widget keeps its state.ui/notifications/host-context-changed; the host context now carriesdisplayMode,availableDisplayModesandcontainerDimensions.hostContext.availableDisplayModes: ["inline"](mcpAppsin React and Vue,provideMCPApps()in Angular).ui/update-model-context(#7811, merged 2026-11-16)modelContext: true. While off, the capability is not announced and the request gets-32601. The docs carry a security note, since an enabled widget writes into what the model reads.structuredContentonly, up to 32,768 characters of serialized JSON.RunAgentInput.context, and is removed when the conversation is deleted.In React and Vue,
mcpAppsis now a single option shape carryinghostContext,allowSameOriginFallbackandmodelContext.I also compared
mainagainst the2026-01-26spec. Remaining gaps, beyond the ones already listed above:connect-src *and similar) and onlyresourceDomainsis read; the spec requires the restrictive default and mappingconnectDomains,frameDomainsandbaseUriDomains.tools/callis forwarded even for tools whosevisibilitylacks"app", in@ag-ui/mcp-apps-middlewareand in the Python, Ruby and .NET runtimes.ui/resource-teardown(MUST): the session closes the bridge without notifying the widget first.resources/readis not handled,serverToolsis not announced in React and Vue, and the host context still lacksstyles,locale,timeZone,toolInfoand the device fields.I can update the checklist in the issue body to reflect all of this.