Overview
Not all MCP hosts support Apps yet. Servers should check whether the connecting host supports MCP Apps before registering UI-enabled tools — if it doesn’t, register text-only fallback tools instead. This keeps your server compatible with every host while delivering rich UIs where available.getUiCapability
Extracts the MCP Apps capability from the client’sextensions field.
Signature
Returns
The capability object if the host supports MCP Apps, or
undefined if not.Supported MIME types. Must include
"text/html;profile=mcp-app" for MCP Apps support.Usage
Useserver.server.oninitialized to check capabilities after the MCP handshake:
EXTENSION_ID
The extension identifier used in the MCPextensions field for capability negotiation.
extensions capabilities during the MCP initialization handshake. getUiCapability reads from this key internally.