Skip to content

Commit c60ee35

Browse files
authored
Change Host <> Sandbox communication protocol to "SHOULD" (modelcontextprotocol#435)
In ChatGPT, we have our own sandbox <> host communication protocol that doesn't match the names of the protocol enforced by the "MUST" in the spec. This changes that by marking the specific messages sent back and forth as a "SHOULD".
1 parent 10d1f9d commit c60ee35

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

specification/draft/apps.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -491,8 +491,8 @@ If the Host is a web page, it MUST wrap the View and communicate with it through
491491

492492
1. The Host and the Sandbox MUST have different origins.
493493
2. The Sandbox MUST have the following permissions: `allow-scripts`, `allow-same-origin`.
494-
3. The Sandbox MUST send a `ui/notifications/sandbox-proxy-ready` notification to the host when it's ready to process an `ui/notifications/sandbox-resource-ready` notification.
495-
4. Once the Sandbox is ready, the Host MUST send the raw HTML resource to load in a `ui/notifications/sandbox-resource-ready` notification.
494+
3. The Sandbox SHOULD send a `ui/notifications/sandbox-proxy-ready` notification to the host when it's ready to process an `ui/notifications/sandbox-resource-ready` notification.
495+
4. Once the Sandbox is ready, the Host SHOULD send the raw HTML resource to load in a `ui/notifications/sandbox-resource-ready` notification.
496496
5. The Sandbox MUST load the raw HTML of the View with CSP settings that:
497497
- Enforce the domains declared in `ui.csp` metadata
498498
- If `frameDomains` is provided, allow nested iframes from declared origins; otherwise use `frame-src 'none'`

0 commit comments

Comments
 (0)