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.The UI of an MCP App is an MCP Resource.The API of an MCP App is an MCP Tool.More on MCP here.
Overview
sunpeak is an npm package that helps you build MCP Apps — interactive UIs that run inside AI chat hosts like ChatGPT and Claude. sunpeak consists of:The sunpeak Library
- Runtime APIs: Strongly typed APIs for the MCP Apps runtime, architected for multi-platform support (ChatGPT, Claude, and more).
- Simulator: React component replicating the host runtime to test Apps locally and automatically.
- MCP Server: Serve Resources with mock data to real hosts with HMR (no more cache issues or 5-click manual refreshes).
The sunpeak Framework
Next.js for MCP Apps. Using a Review page as an example, sunpeak projects look like:- Project Scaffold: Complete development setup with the sunpeak library.
- UI Components: Production-ready components following MCP App design guidelines.
- Convention over configuration:
The sunpeak CLI
Commands for managing MCP Apps:sunpeak new- Create a new projectsunpeak dev- Start dev server with MCP endpoint and live simulatorsunpeak build- Build resources for productionsunpeak upgrade- Upgrade sunpeak to latest version
Examples
Example sunpeak resource & simulation files for an MCP App called “Review”.Resource
Each resource.tsx file exports both a ResourceConfig metadata object and the React component: