Documentation Index
Fetch the complete documentation index at: https://sunpeak.ai/docs/llms.txt
Use this file to discover all available pages before exploring further.
Quickstart
No installation required. Point the inspector at any running MCP server:http://localhost:3000. See sunpeak inspect CLI Reference for all options.
In sunpeak framework projects, the inspector is built into
sunpeak dev automatically.
What it does
The inspector replicates the ChatGPT and Claude MCP App runtimes on your machine. Your MCP server’s tools and resources render in the same iframe sandbox that production hosts use, with the same PostMessage protocol, the same CSS variables, and the same host context values.- Instant feedback — HMR means changes appear immediately. No cache issues, no reloading the host.
- Every host, theme, and device — toggle ChatGPT/Claude, light/dark, mobile/tablet/desktop, inline/PiP/fullscreen from the sidebar.
- No deployment needed — no tunnel, no host account, no API credits.
- Test runtime — the inspector powers E2E tests. Load simulations via URL, assert with Playwright.
Simulations
Simulations are JSON fixtures that define reproducible tool states for the inspector — tool input, tool result, and server tool mocks.tests/simulations/ automatically. Select a simulation from the sidebar dropdown to render your resource with that mock data. Select “None (call server)” to call the real tool handler instead.
See Simulations API Reference for the complete JSON schema and conventions.
Sidebar Controls
The inspector sidebar lets you configure:- MCP Server — URL to connect to (with connection status indicator)
- Tool — which tool to inspect
- Simulation — which fixture to load (or “None” for real server calls)
- Host — ChatGPT or Claude runtime
- Width — mobile, tablet, or full-width viewport
- Host Context — theme, locale, display mode, platform, device capabilities, time zone, container dimensions, safe area insets
- App Context — model context JSON shared with the model via
useUpdateModelContext() - Tool Input/Result — editable JSON for the tool arguments and structured content
createInspectorUrl.
Using the Inspector in Tests
The inspector doubles as the test runtime for automated E2E tests. See MCP Testing Framework for the full testing story.Dive Deeper
sunpeak inspect
Inspect any MCP server (standalone, no project needed).
Simulations API Reference
JSON schema, conventions, and auto-discovery.
Inspector API Reference
Full component documentation and configuration options.