Skip to main content
MCP App in ChatGPT

Overview

The MCP (Model Context Protocol) server lets you serve your apps to AI hosts like ChatGPT and Claude. Once running, the host can discover and render your MCP Apps. During development, sunpeak dev runs an MCP server that serves simulation fixture data. For production, use sunpeak build followed by sunpeak start to run your real tool handlers — see the Deployment Guide.

What is MCP?

MCP is the protocol AI hosts use to communicate with your servers. It handles tool and resource registration, discovery, and invocation. For details on how MCP Apps extends the protocol with interactive UIs, see the MCP Apps documentation.

Quick Start

Start the development server:
sunpeak dev
This starts both the inspector and an MCP server with Hot Module Reload. The MCP server runs on port 8000 and serves simulation fixture data.
Then connect to a host using a tunnel. See runMCPServer API Reference for the full connection flow.

Dive Deeper

runMCPServer API Reference

Complete configuration options and host connection guide.

Deployment Guide

Build, start, and deploy your app to production.

Simulation API Reference

Complete simulation documentation.