You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
spec: decouple rendering requirements from the double-sandboxed iframe architecture #716
Description:
Currently, the MCP Apps specification is highly opinionated about how Hosts must embed Views - specifically, it mandates a "double sandboxed iframe" architecture (along with specialized sandbox-proxy-ready coordination messages).
This needlessly prevents Hosts from adopting alternative, equally secure framing architectures. For instance:
A single sandboxed iframe served with the same CSP headers as the double iframe, but that navigates itself to a blob: URL representing the MCP App bytes, instead of injecting them into an "innermost" iframe
A single sandboxed iframe served with the same CSP headers as above, but whose body actually streams the MCP App HTML contents directly into the iframe's parser.
Because the choice of container architecture is completely opaque to the View itself (and has zero observable compatibility impact on the messaging between the Host and View), the specification should be unopinionated on this.
We should loosen the specification to be container-agnostic. Rather than prescribing how a Host must embed an MCP App, the spec should define the core security requirements that must apply to any framing mechanism the Host might use. This includes requirements on CSP headers, sandboxing flags, allow attribute, etc.
Activity