Skip to content

Commit 5f12d41

Browse files
feat: add MCP Apps (SEP-1865) support
Adds opt-in 'enableMcpApps' session capability that advertises the 'extensions.io.modelcontextprotocol/ui' extension to MCP servers and exposes 'session.rpc.mcp.apps.*' JSON-RPC methods. Node SDK gains two pure helpers for hosts rendering 'ui://' MCP App bundles in iframes: - buildMcpAppsCspHeader — constructs the Content-Security-Policy header per SEP-1865 §UI Resource Format + §Security Implications, including the restrictive default ('connect-src none') when '_meta.ui.csp' is absent and constructed defaults ('connect-src self', etc.) when it is declared. - buildMcpAppsAllowAttribute — maps '_meta.ui.permissions' to the iframe 'allow' attribute (Permission Policy). Generated RPC/session-event types regenerated across all language SDKs to pick up the new schema. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent b0d1c8e commit 5f12d41

17 files changed

Lines changed: 4246 additions & 347 deletions

File tree

dotnet/src/Generated/Rpc.cs

Lines changed: 865 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dotnet/src/Generated/SessionEvents.cs

Lines changed: 336 additions & 47 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

go/generated_session_events.go

Lines changed: 136 additions & 11 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)