Commit 5f12d41
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
- go
- rpc
- nodejs
- src
- generated
- test
- python/copilot/generated
- rust/src
- generated
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
0 commit comments