1. Create a project
npx moonpeak newnew asks three things:
- Project name, for example
moon-app. - Resources: which starter Views to include. Pick any of
moon,calendarandreview, or press Enter for all of them. - Install dependencies? Press Enter to install with the package manager you ran it with (npm, pnpm, yarn or bun).
You can skip the questions:
npx moonpeak new moon-app calendar,review --install2. Start the inspector
cd moon-app
npm run devOpen http://localhost:3000. The inspector lists your tools, runs the selected one and renders its View in a ChatGPT-style host. Switch to the Claude host, dark theme, a phone width or fullscreen from the sidebar. Your MCP server is live at http://localhost:3000/mcp.
3. Change something
Edit src/resources/moon/moon.tsx and save: the View updates in place and keeps its state. Edit src/tools/show-moon.ts and the next call uses the new code. No restart.
4. Test it
npm test # schemas, Views and simulations, in seconds
npx playwright install chromium
npx moonpeak test --e2e # Playwright against the inspector5. Run it in Claude or ChatGPT
npm run build && npm start # http://localhost:8000/mcpPut that behind HTTPS (see Deployment), then:
- Claude: Settings → Connectors → Add custom connector →
https://your-domain/mcp - ChatGPT: Settings → Apps → enable Developer mode → Create app →
https://your-domain/mcp
Ask "what does the moon look like on Nov 24?" and the moon View renders in the chat.
Next
- Project scaffold: what every folder does
- Tools and Views
- Simulations