MCP Shipyard
Docs menu
Docs

ChatGPT widget checks

The checks Shipyard runs on ChatGPT and MCP Apps widgets, plus the widget origin change announced November 30, 2026 and the December 15 deadline.

If a tool renders a widget (an HTML template in a ui:// resource), Scan checks the widget setup. It reads tools/list, resources/list and resources/read only and never calls a tool. Servers with no widgets skip these checks. Sources: OpenAI's ChatGPT UI guide and the MCP Apps specification.

Checks

IdSeverityTriggers
apps.template-missingblockerThe tool points at a resource that resources/read cannot return
apps.template-uri-schememajorThe template URI is not ui://
apps.mime-typemajorMIME type is not text/html;profile=mcp-app (text/html+skybridge is the older Apps SDK value)
apps.csp-missingmajorThe HTML loads external origins but declares no CSP
apps.csp-undeclared-domainmajorThe HTML uses an origin that is missing from connectDomains or resourceDomains
apps.csp-wildcardmajorThe allowlist uses wildcards
apps.csp-insecure-schememajorThe allowlist has plain http: or ws: origins
apps.inline-csp-unsafemajorAn inline CSP meta tag allows unsafe-eval or unsafe-inline
apps.domain-missingmajor_meta.ui.domain (alias openai/widgetDomain) is not set
apps.no-structured-outputmajorThe widget tool has no outputSchema
apps.hardcoded-widget-originmajorWidget code references web-sandbox.oaiusercontent.com
apps.origin-migrationmajorThe widget origin change below applies to your server
apps.legacy-keys-onlyminorMetadata uses only openai/* keys, so other MCP Apps hosts cannot render it
apps.csp-frame-domainsminorThe widget declares frameDomains, which needs a justification at submission
apps.external-script-unpinnedminorA third-party script has no integrity hash or pinned version
apps.template-sizeminorThe template is over 1,000,000 bytes (our heuristic, not a documented limit)
apps.invocation-strings-missingminorNo openai/toolInvocation/invoking and invoked status strings
apps.visibility-app-onlyminorThe render tool is visible only to the app, so a prompt never opens the widget
apps.csp-unused-domaininfoThe CSP declares origins the HTML never uses

Each finding names the widget tool and the fix. Declare exact origins, keep them narrow, and drop frameDomains if you can.

The widget origin change (deadline December 15)

On November 30, 2026 OpenAI announced that ChatGPT is moving remote MCP apps to widget origins derived from the MCP server URL. Per the migration guide, you should add the new origin to your allowlists and policies before December 15. The pages do not state what happens to apps that miss the date, so do not wait to find out.

New origin: https://mcp-endpoint-<first 32 hex characters of the SHA-256 of your MCP server URL>.web-sandbox.oaiusercontent.com. There is no normalization. A trailing slash, port or query string changes the hash. Scan prints your exact origin in the apps.origin-migration finding.

Steps:

  1. Find the new origin. Use the finding, or in ChatGPT on the web run this in the console of the top-level page: Array.from(document.querySelectorAll("[data-mcp-app-origin-generated]"), el => el.getAttribute("data-mcp-app-origin-generated")).
  2. Search your code, backend and third-party settings for web-sandbox.oaiusercontent.com.
  3. Add the new origin, keeping the old one, to your API CORS allowlist and to any third-party service that accepts only your widget hostname or referrer.
  4. Make the frame-ancestors header on every page your widget embeds allow the new origin and the top-level ChatGPT origin. Set it in the HTTP header, not a meta tag. frameDomains and CORS settings do not change it.
  5. Remove hardcoded origin checks. Do not replace _meta.ui.domain. Keep it for Open in app and link handling.
  6. Make the widget start with empty browser storage. The new origin has none of the old origin's localStorage or IndexedDB data.
  7. Test: confirm the iframe uses the new hostname, check that widget requests send the new Origin and succeed, open each embedded page, and test with empty storage.

Full walkthrough: ChatGPT widget origin change, December 2026.