ChatGPT App Framework for Building, Testing, and Shipping ChatGPT Apps
Sunpeak is an open-source ChatGPT App framework that layers ChatGPT-specific tooling, a ChatGPT runtime simulator, and OpenAI design components on top of a portable MCP App base, so you can build ChatGPT Apps that take full advantage of the OpenAI ecosystem.
Definition
A ChatGPT App framework is a development framework that provides structure, tooling, and workflows for building MCP Apps running inside ChatGPT via the Model Context Protocol (MCP) and MCP Apps protocol extension (ext-apps).
What is a ChatGPT App Framework?
ChatGPT Apps are MCP Apps — interactive applications that run inside ChatGPT via the Model Context Protocol (MCP). These apps display rich UI components, handle user interactions, and integrate with external services through MCP servers.
A ChatGPT App framework provides the development infrastructure needed to build MCP Apps for ChatGPT: project scaffolding, local development servers, testing utilities, component libraries, and deployment tooling.
Sunpeak is that framework. It handles the complexity of MCP App development, MCP server configuration, and ChatGPT runtime simulation so developers can focus on building their application logic.
Built for the OpenAI Ecosystem
Sunpeak's core MCP App APIs work on every host. On top of that portable base, sunpeak layers in optional ChatGPT-specific functionality so your apps feel native inside ChatGPT.
ChatGPT Runtime Simulator
A local simulator that replicates the ChatGPT rendering environment — display modes, themes, safe areas, and conversation context — so you can develop without deploying.
OpenAI Design Components
Pre-built UI components that follow OpenAI's design guidelines. Your ChatGPT App looks and feels like a native part of the ChatGPT interface.
Display Mode APIs
ChatGPT-specific display modes (inline, picture-in-picture, full) via
sunpeak/chatgpt imports.
Adapt your layout to how ChatGPT presents your app.
Output Templates
Use ChatGPT output templates to control how the model presents your app's data in conversation, giving you control over the full user experience.
CSP & Security
Built-in Content Security Policy configuration for ChatGPT's sandboxed iframe environment. Declare resource domains and permissions in your resource config.
Portable Foundation
All ChatGPT-specific features are opt-in imports. Your core app logic stays portable across ChatGPT, Claude, and other MCP hosts.
How sunpeak works
Scaffold a Project
Run sunpeak new to create a new project with TypeScript, React, Vite, and all necessary configuration
pre-configured.
Develop Locally
Use the built-in ChatGPT App simulator to develop and test your ChatGPT App without deploying. Hot Module Replacement (HMR) keeps your development loop fast.
Test in ChatGPT
Connect your local MCP server to the real ChatGPT for integration testing. Mock data and HMR let you iterate without manual refreshes or cache issues.
Build and Ship
Run sunpeak build to generate production bundles. Deploy the built files with your production MCP server.
Core Framework Features
- Local ChatGPT Runtime Simulator
A React-based simulator that replicates the ChatGPT and MCP App environment for local development and automated testing.
- MCP App Component Library
Pre-built UI components for ChatGPT Apps, following OpenAI design guidelines.
- Built-in MCP Server
A development MCP server that serves your resources with mock data and hot module replacement.
- TypeScript-First APIs
Strongly typed hooks and utilities for interacting with the MCP App runtime, host APIs, and state management.
- Testing Infrastructure
Vitest and Playwright integration for unit and end-to-end testing of your MCP Apps and ChatGPT Apps.
- Deployment
Build production bundles and deploy with your production MCP server to serve MCP App resources.
Test ChatGPT Apps Locally
Use the sunpeak simulator for ChatGPT App testing locally and in CI/CD. The simulator replicates the ChatGPT runtime for deterministic and automatic UI testing.
Who sunpeak is for
Coding Agents
Agents like Claude Code, Codex, and Cursor can scaffold, build, and test ChatGPT Apps with sunpeak's CLI and structured project conventions. No manual setup required.
React Developers
If you know React, you can build MCP Apps. Sunpeak uses familiar patterns: functional components, hooks, and JSX.
MCP Server Authors
Decouple your MCP App resources from your MCP server. Develop and version them independently with Sunpeak.
Teams Building ChatGPT Integrations
Frontend and backend teams can work independently. Ship UI updates without redeploying your MCP server.
Getting Started
Install sunpeak globally and create a new project:
pnpm add -g sunpeak && sunpeak new
This scaffolds a complete MCP App project with TypeScript, React, Vite, and the sunpeak
runtime pre-configured. Run sunpeak dev to start the development server with the ChatGPT App simulator.
Open Source & MIT Licensed
Sunpeak is free to use, modify, and distribute.
Building for multiple hosts? See the MCP App Framework page.