Skip to main content
MCP Apps SDK

McpUiHostContext

Rich context about the host environment, provided during initialization and updated via onhostcontextchanged.

McpUiHostCapabilities

Capabilities supported by the host, received during initialization.

McpUiAppCapabilities

Capabilities provided by the View, sent during initialization.

McpUiClientCapabilities

Advertised by hosts to servers via the MCP extensions field. Used with getUiCapability().

McpUiTheme

The sunpeak framework also exports a short alias: Theme (equivalent to McpUiTheme).

McpUiDisplayMode

The sunpeak framework also exports a short alias: DisplayMode (equivalent to McpUiDisplayMode).

McpUiHostStyles

McpUiHostCss

McpUiStyles

A record mapping CSS variable names to string values. All keys are optional.
See CSS Variables for the full list of variable keys.

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 for sendMessage and updateModelContext.
The sunpeak framework provides convenience hooks for accessing these types reactively: useHostContext, useHostInfo, and useTheme.