Skip to main content
MCP Apps SDK

Overview

The App class provides accessor methods for reading host state received during the initialization handshake. These methods return undefined before connect() completes.

Quick Example

The sunpeak framework provides React hooks that wrap these accessors reactively: useHostContext, useHostInfo, useTheme, useLocale, and useDeviceCapabilities.