Skip to main content
Definitions: An MCP App is an interactive UI embedded in an agent conversation.A ChatGPT App is an MCP App with optional ChatGPT-specific features.ChatGPT apps are now submitted and published as plugins. An app can be the MCP-backed part of an app-only plugin or an app-plus-skills plugin. This packaging does not change the MCP Apps protocol or the app you build with sunpeak.The UI of an MCP App is an MCP Resource.The API of an MCP App is an MCP Tool.More on MCP and the MCP Apps protocol.
This documentation is available via MCP at https://sunpeak.ai/docs/mcp, use it in your coding agent!
Install the sunpeak coding agent skills for built-in knowledge of patterns, hooks, simulations, and testing:

sunpeak is three things

1. MCP App Framework

A convention-over-configuration framework for building MCP Apps with the inspector and testing built in. Like Next.js for AI chat apps.
Tools, resources, and simulations are auto-discovered from the file system. Multi-platform React hooks let you write your app logic once and deploy across ChatGPT, Claude, and future hosts.
  • Runtime APIs: useToolData, useAppState, useTheme, useDisplayMode, and more
  • Project Scaffold: Complete dev setup with pre-configured tooling
  • Convention over configuration: resources, tools, and simulations are auto-discovered from src/ and tests/

App framework documentation

Project structure, runtime APIs, deployment, and CLI reference.

2. MCP Testing Framework

Automated tests for any MCP server, no sunpeak project required. Run against replicated ChatGPT and Claude runtimes. Works with Python, Go, TypeScript, Rust, or any language.
Playwright fixtures handle inspector startup, MCP connection, iframe traversal, and host switching. Four levels of testing: E2E, visual regression, live host tests, and multi-model evals.

Testing documentation

Getting started, E2E, visual regression, live tests, and evals.

3. Inspector

See how your MCP server looks and behaves inside ChatGPT and Claude, without deploying to either. Works with any MCP server in any language.
The inspector replicates the ChatGPT and Claude app runtimes locally. Toggle between hosts, themes, display modes, and device types from the sidebar. Call real tool handlers or load simulation fixtures for deterministic mock data. Changes reflect instantly via HMR. No tunnel, no host account, no deployment. Just instant local feedback.

Inspector documentation

Full inspector guide, simulations, and sidebar controls.

The sunpeak CLI

Examples

Example sunpeak resource, tool, & simulation files for an MCP App called “Review”.

Resource

Each resource .tsx file exports both a ResourceConfig metadata object and the React component:

Tool

Each tool .ts file exports metadata (with a resource name), a Zod schema, and a handler:

Simulation

Simulation files provide fixture data for testing. Each references a tool by filename and contains the mock input/output: