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. Includes a client for the sunpeak Resource Repository. The repository helps you & your CI/CD decouple your App from your client-agnostic MCP server while also providing a hosted runtime to collaborate, demo, and share your MCP Apps. Think Docker Hub for MCP Apps:- Tag your app builds with version numbers and environment names (like
v1.0.0andprod) pushbuilt Apps to a central locationpullbuilt Apps to be run in different environments, like your production MCP server.- Share your fully-functional demo Apps with teammates, prospects, and strangers!
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: