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
| Id | Severity | Triggers |
|---|---|---|
apps.template-missing | blocker | The tool points at a resource that resources/read cannot return |
apps.template-uri-scheme | major | The template URI is not ui:// |
apps.mime-type | major | MIME type is not text/html;profile=mcp-app (text/html+skybridge is the older Apps SDK value) |
apps.csp-missing | major | The HTML loads external origins but declares no CSP |
apps.csp-undeclared-domain | major | The HTML uses an origin that is missing from connectDomains or resourceDomains |
apps.csp-wildcard | major | The allowlist uses wildcards |
apps.csp-insecure-scheme | major | The allowlist has plain http: or ws: origins |
apps.inline-csp-unsafe | major | An inline CSP meta tag allows unsafe-eval or unsafe-inline |
apps.domain-missing | major | _meta.ui.domain (alias openai/widgetDomain) is not set |
apps.no-structured-output | major | The widget tool has no outputSchema |
apps.hardcoded-widget-origin | major | Widget code references web-sandbox.oaiusercontent.com |
apps.origin-migration | major | The widget origin change below applies to your server |
apps.legacy-keys-only | minor | Metadata uses only openai/* keys, so other MCP Apps hosts cannot render it |
apps.csp-frame-domains | minor | The widget declares frameDomains, which needs a justification at submission |
apps.external-script-unpinned | minor | A third-party script has no integrity hash or pinned version |
apps.template-size | minor | The template is over 1,000,000 bytes (our heuristic, not a documented limit) |
apps.invocation-strings-missing | minor | No openai/toolInvocation/invoking and invoked status strings |
apps.visibility-app-only | minor | The render tool is visible only to the app, so a prompt never opens the widget |
apps.csp-unused-domain | info | The 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:
- 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")). - Search your code, backend and third-party settings for
web-sandbox.oaiusercontent.com. - 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.
- Make the
frame-ancestorsheader 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.frameDomainsand CORS settings do not change it. - Remove hardcoded origin checks. Do not replace
_meta.ui.domain. Keep it for Open in app and link handling. - Make the widget start with empty browser storage. The new origin has none of the old origin's
localStorageor IndexedDB data. - Test: confirm the iframe uses the new hostname, check that widget requests send the new
Originand succeed, open each embedded page, and test with empty storage.
Full walkthrough: ChatGPT widget origin change, December 2026.