Overview
TheuseTheme hook returns the host’s current theme. It is a convenience wrapper around useHostContext.
Wraps onhostcontextchanged
MCP Apps SDK reference
Import
Signature
McpUiTheme.
Get the current color theme.
useTheme hook returns the host’s current theme. It is a convenience wrapper around useHostContext.
McpUiTheme.