Skip to main content
ChatGPT production screenshot

Overview

The MCP (Model Context Protocol) server lets you serve your simulations to ChatGPT. Once running, ChatGPT can discover and render your widgets. sunpeak includes an MCP server implementation that serves your widgets out-of-the-box.

What is MCP?

MCP is the protocol ChatGPT uses to communicate with your servers. It handles:
  • Resource & Tool registration and discovery
  • Tool invocation and state synchronization

Quick Start

Start the MCP server:
sunpeak mcp
This serves your built resources from dist/ and watches src/ for changes.
Then connect to ChatGPT using a tunnel. See runMCPServer API Reference for the full connection flow.

Dive Deeper

runMCPServer API Reference

Complete configuration options and ChatGPT connection guide.

Simulation API Reference

Complete simulation documentation.