MCP Shipyard
← Rules catalog

Widget metadata uses only openai/* keys: add the standard _meta.ui block

Add _meta.ui.resourceUri, csp and domain next to the openai/* aliases so other MCP Apps hosts, including Claude, can render your widget.

minorapps.legacy-keys-onlyClaude, ChatGPT

Add the standard _meta.ui keys beside your openai/* aliases. The rule apps.legacy-keys-only is a minor finding for Claude and ChatGPT. It warns when a template's metadata has openai/* keys but no ui object.

What you see

  • A scan reports Template metadata has openai/* keys but no _meta.ui block. as a warning.
  • The widget may render in ChatGPT and not in another MCP Apps host. Claude's behaviour for this case is not verified here.

Why it happens

The first Apps SDK examples used openai/outputTemplate, openai/widgetCSP and openai/widgetDomain. The shared MCP Apps format uses _meta.ui.resourceUri, _meta.ui.csp and _meta.ui.domain.

OpenAI's UI guide maps the keys: _meta.ui.resourceUri to openai/outputTemplate, _meta.ui.domain to openai/widgetDomain, and _meta.ui.csp.frameDomains to the legacy frame_domains. It says: "For broader MCP Apps compatibility, use _meta.ui.resourceUri", and that aliases "remain available for existing integrations. New UI should use the shared fields." The MCP Apps specification marks the flat _meta["ui/resourceUri"] form as deprecated in favour of _meta.ui.resourceUri.

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":"tools/list"}' \
 | jq '.result.tools[] | select(._meta) | {name, meta: ._meta}'

Do the same with resources/read for the template and look for a ui object.

Fix

_meta: {
  ui: { resourceUri: "ui://widget/orders.html" },
  "openai/outputTemplate": "ui://widget/orders.html", // alias, keep for older ChatGPT builds
}

Do the same on the template resource for csp and domain. Keep the openai/* aliases unless you have confirmed you no longer need them.

Verify

Both the tool and the template carry a ui block, and the re-scan passes. Check apps.mime-type and apps.domain-missing next.

Which clients care

Claude and ChatGPT, per the rule.

Source

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

MCP Apps specification: https://github.com/modelcontextprotocol/ext-apps/blob/main/specification/2026-01-26/apps.mdx

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