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.
Returns
The current theme. Defaults to
'light' when unavailable.