Skip to main content
sunpeak API

Overview

Returns information about the host application, including its name, version, and supported capabilities.

Wraps getHostVersion ยท getHostCapabilities

MCP Apps SDK reference

Import

Signature

Returns

HostVersion | undefined
Host application name and version.
HostCapabilities | undefined
Host-supported capabilities.

HostVersion

string
Host application name.
string
Host application version.

HostCapabilities

boolean
Whether the host supports calling server tools.
Whether the host supports opening external links.
boolean
Whether the host supports structured logging.
boolean
Whether the host supports sending messages.
boolean
Whether the host supports display mode changes.

Usage

See McpUiHostCapabilities for the full protocol-level capabilities type.