Skip to main content
The MCP App HTML endpoint serves the same built single-file widgets that are exposed through MCP resources/read, but over authenticated REST for hosts that do not have a live MCP client.

Endpoint

Use this endpoint when an Interchange-hosted UI needs to render a ui://agentic-api/.../mcp-app.html widget in a sandboxed iframe. The response body is HTML text and should be passed to the iframe as srcdoc; hosts provide widget data over the MCP Apps bridge after the iframe initializes.

Path parameters

Supported views:

Response

Successful responses return the built HTML as text:
The response is intentionally cacheable only by the authenticated caller. Hosts should still apply their own iframe sandbox and bridge-level allowlists before sending data or actions into the widget.

Errors

Example