MCP Shipyard
← Rules catalog

ChatGPT app widget needs _meta.ui.domain: fix a missing widget domain

Set _meta.ui.domain (alias openai/widgetDomain) on the widget template. OpenAI says it is still required to submit a plugin with UI.

majorapps.domain-missingChatGPT

Set _meta.ui.domain on the widget template resource to your app's domain. The rule apps.domain-missing is a major finding for ChatGPT. It fails when neither _meta.ui.domain nor the alias openai/widgetDomain is present on a template.

What you see

  • A scan reports Neither _meta.ui.domain nor openai/widgetDomain is set. for each template.
  • A submission can be blocked on this field. The exact submission error text is not verified here.

Why it happens

Older Apps SDK examples set openai/widgetDomain and newer ones use the shared _meta.ui block. A server migrated from a tutorial that skipped the field, or one that put the domain on the tool instead of the resource, ends up without it.

OpenAI's UI guide says: "Keep _meta.ui.domain or its compatibility alias, _meta["openai/widgetDomain"], set to your app's domain." and "Domain metadata is still required when submitting a plugin with UI." The widget origin migration guide adds that the domain no longer selects the sandbox subdomain, and says not to replace it with the generated origin. The MCP Apps specification calls the field optional and host-dependent, which is why other hosts do not need it.

Check it yourself

curl -s -X POST https://mcp.acme.example/mcp \
  -H 'Content-Type: application/json' -H 'Accept: application/json, text/event-stream' \
  -H "Authorization: Bearer $TOKEN" \
  -d '{"jsonrpc":"2.0","id":1,"method":"resources/read","params":{"uri":"ui://widget/orders.html"}}' \
 | jq '.result.contents[0]._meta | {domain: .ui.domain, legacy: .["openai/widgetDomain"]}'

Fix

{ uri: "ui://widget/orders.html", mimeType: "text/html;profile=mcp-app",
  _meta: { ui: { domain: "https://acme.example" } } }

Put it on the resource contents (and the listing if you describe the resource there). Use your own app domain, not the generated sandbox origin. Check the exact value format against OpenAI's current guide before submitting.

Verify

The jq command prints your domain, then re-scan. Next check apps.origin-migration before December 15, 2026.

Which clients care

ChatGPT, per the rule.

Source

OpenAI UI guide: https://developers.openai.com/plugins/build/chatgpt-ui

Widget origin migration: https://developers.openai.com/plugins/guides/widget-origin-migration

Run a free scan at https://mcpshipyard.com/scan to check every rule at once.

Check every rule at once

A free scan runs this check and the other 152 against your live URL.

Scan a server