McpUiHostContext
Rich context about the host environment, provided during initialization and updated viaonhostcontextchanged.
McpUiHostCapabilities
Capabilities supported by the host, received during initialization.| Field | Description |
|---|---|
openLinks | Host supports openLink() |
downloadFile | Host supports downloadFile() |
serverTools | Host can proxy callServerTool() to the MCP server |
serverResources | Host can proxy resources/read to the MCP server |
logging | Host accepts sendLog() messages |
sandbox | Permissions and CSP applied by the host |
updateModelContext | Host accepts updateModelContext() |
message | Host accepts sendMessage() |
McpUiAppCapabilities
Capabilities provided by the View, sent during initialization.| Field | Description |
|---|---|
tools | App exposes tools that the host can call via oncalltool |
availableDisplayModes | Display modes the app supports |
McpUiClientCapabilities
Advertised by hosts to servers via the MCPextensions field. Used with getUiCapability().
McpUiTheme
McpUiDisplayMode
McpUiHostStyles
McpUiHostCss
McpUiStyles
A record mapping CSS variable names to string values. All keys are optional.McpUiToolMeta
UI metadata for tools, set in_meta.ui of tool configuration.
McpUiToolVisibility
McpUiResourceMeta
UI metadata for resources, set in_meta.ui of resource content items.
McpUiResourceCsp
Content Security Policy configuration.McpUiResourcePermissions
Browser capabilities requested by the resource.McpUiSupportedContentBlockModalities
Content block types supported by the host forsendMessage and updateModelContext.