MCP Shipyard
← Rules catalog

MCP app widget template URI must start with ui://

The MCP Apps spec says UI resource URIs must start with ui://. Rename https:// or file:// template URIs in _meta.ui.resourceUri.

majorapps.template-uri-schemeChatGPT, Claude

Use a ui:// URI for the widget template resource. The rule apps.template-uri-scheme is a major finding for ChatGPT and Claude. The MCP Apps specification says the URI "MUST start with ui:// scheme".

What you see

  • A scan reports apps.template-uri-scheme with the offending URI: URI "https://cdn.acme.example/orders.html" does not start with ui://.
  • The scan still tries to read that URI, so you may see apps.template-missing as well.

Why it happens

  1. The tool's _meta.ui.resourceUri points at a hosted page, not a registered MCP resource.
  2. A file:// or relative path from local development was never changed.
  3. The older openai/outputTemplate key carries a URL from an earlier design.

The spec requires the scheme so UI resources can be told apart from other resource types. The widget is delivered by resources/read, which the host calls on the URI from the tool metadata; it is not fetched from the web. The OpenAI UI guide's examples use URIs like ui://widget/dice.html.

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 -r '.result.tools[] | select(._meta != null) | "\(.name)\t\(._meta.ui.resourceUri // ._meta["ui/resourceUri"] // ._meta["openai/outputTemplate"])"'

Any value not starting with ui:// is flagged.

Fix

  1. Register the HTML as an MCP resource at a ui:// URI, for example ui://acme-orders/orders.html.
  2. Set _meta.ui.resourceUri on the tool to the same string, character for character.
  3. Serve it with text/html;profile=mcp-app (apps.mime-type).
  4. If you version the template, publish a new ui:// URI and update every tool that references it. OpenAI's guide says to treat the URI as a cache key.

Associate the resource with only the tools that should render it.

Verify

The tools/list output shows ui:// values, resources/read returns HTML for each, and a re-scan passes.

Which clients care

ChatGPT and Claude, per the rule.

Source

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

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

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