feat(desktop): host MCP Apps as channel tabs - #3275
Draft
tmarman wants to merge 1 commit into
Draft
Conversation
Add a reviewed Streamable HTTP MCP Apps connection flow, channel-scoped app tabs, an opaque-origin sandbox, and explicit approval before an app can publish to a Buzz channel. Buzz owns the MCP transport, capability policy, and host boundary. Signed-off-by: Tim Marman <tim@marman.org>
|
Nice, this is exactly the kind of surface a channel-feature registry would give a first-class home. I just opened #3280 (RFC: a desktop |
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.
Why
Channel conversation is the primary collaboration surface in Buzz, but some work benefits from a structured interface. MCP Apps provides an existing packaging and host protocol for sandboxed interactive HTML backed by MCP tools.
This draft lets a channel member connect a reviewed Streamable HTTP MCP server, install one of its advertised Apps, and use it as a tab beside Chat without giving the embedded App Buzz credentials or a general-purpose Tauri API.
I am opening this as a draft to validate the host security boundary and product fit before asking maintainers to accept the full implementation.
What
capabilities.extensions["io.modelcontextprotocol/ui"]._meta.ui.resourceUri, with the deprecated flat form accepted for compatibility.text/html;profile=mcp-appresources.@modelcontextprotocol/ext-appsAppBridge package.Security boundary
srcdocframe withsandbox="allow-scripts". The App receives an opaque origin and cannot share the proxy's storage principal.Risk assessment
High. This renders untrusted server-authored HTML inside the desktop client and lets that App call reviewed MCP tools. The opaque inner origin, closed browser permissions, exact transport validation, bounded content, and explicit channel-post approval are the primary controls.
This PR is independent from Remote Agency discovery and A2A invocation. It implements the authored UI host boundary only.
Deliberate limitations
pipis not implemented.Tests
Validated on the reviewed source tree before the clean current-main contribution commit:
pnpm testfromdesktop/: 3,731 passedpnpm typecheck,pnpm lint, andpnpm checkfromdesktop/cargo test mcp_appsfromdesktop/src-tauri/: 9 passedcargo testfromdesktop/src-tauri/: 1,819 passed, 14 ignored; 3 diagnostics passedcargo clippy --all-targets -- -D warningsfromdesktop/src-tauri/cargo fmt --all -- --checkThe personal-fork CI passed Rust lint, Desktop Core, all desktop smoke and integration shards, Windows Rust, web, and relay e2e. Fork Docker jobs compile and then fail when they try to write cache layers to
ghcr.io/block/.... The fork macOS packaging job fails in the existing cold-cachemesh-llmcheckout lookup.Review focus