feat: MCP app support — interactive iframe UIs in chat#28
Open
gabe-lyons wants to merge 3 commits intomainfrom
Open
feat: MCP app support — interactive iframe UIs in chat#28gabe-lyons wants to merge 3 commits intomainfrom
gabe-lyons wants to merge 3 commits intomainfrom
Conversation
Promotes MCP_APP from WORK_TYPES to INTERACTIVE_TYPES so app frames render alongside proposal cards instead of collapsing with tool calls. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
5 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds end-to-end support for MCP apps — interactive iframe-based UIs that the agent can spawn inline in chat (e.g. for context curation, proposal flows). Built on top of the existing MCP context-platform integration; cherry-picked from
talksterand tidied up.MCP_APPSSE event,mcp_app_toolwrapper that emitsMCP_APP_READY:<app_id>markers,/api/mcp_apps/*endpoints (resolve UI + tool-call proxy), proposals/results tool pair, MCP UI + resources context modules.MCPAppFrameiframe host with postMessage bridge (useMcpAppBridge+protocol.ts),MCPAppMessageadapter for SSE payloads,ProposalsMessage/ProposalResultsMessage/SelectionChipcomponents.MCP_APPout of the collapsibleAgentWorkBlockintoINTERACTIVE_TYPES, so app frames render as siblings of proposal cards and stay visible instead of collapsing with tool calls.Test plan
just test— unit tests includingtests/unit/test_business_context_suppression.pyget_context-style tool, confirm the iframe renders inline and stays visible across turn collapsemcp_app-sourced user message routes back through SSEcd frontend && pnpm tsc --noEmit🤖 Generated with Claude Code