Skip to main content
getAppSupport(ctx) from @toolgrain/mcp returns: The extension key is io.modelcontextprotocol/ui; its mimeTypes must include text/html;profile=mcp-app. Modern MCP requests carry their own capabilities. Legacy stdio retains claims from initialization. Independent legacy HTTP does not retain initialization state, so later calls return unknown. Toolgrain adds no session or transport-wide capability cache. Registration stays static. Every UI-enabled tool must provide meaningful text/JSON fallback content even when UI support is advertised. Capabilities can guide optional presentation work, but they must not decide whether an operation is authorized. The React iframe handshake negotiates host capabilities separately. useToolCall rejects when the host does not advertise server tool calls. Host themes and optional fields should have application fallbacks.

React protocol support

The Toolgrain 0.3.0 API exposes the provider and four hooks. Start with AppProvider and useToolResult(), then add optional hooks as needed. An upstream advertisement describes what a host can accept; only implemented APIs can send the corresponding requests. useHostContext() reports the host’s current display mode and available modes. The new action hook requests changes separately and returns the actual selected mode; live context still follows host notifications. A tool that refreshes data uses useToolCall, independently of the initiating result. The dedicated protocol types describe host capability advertisements, including optional actions outside this React API. They preserve extension fields. The reviewed upstream type file includes newer advertisements such as file downloads that are absent from the pinned stable prose specification; their presence is not a Toolgrain implementation or live-host compatibility claim. Host actions currently have automated fixture coverage, with live-host acceptance pending. Missing advertisements reject locally, even for older hosts that implement unadvertised actions. Use the compatibility report for the exact tested host versions and transports.