Expand description
MCP Preview Server
A browser-based development environment for testing MCP Apps widgets.
Defaults to standard MCP Apps mode with full AppBridge support.
Use --mode chatgpt to activate ChatGPT strict protocol emulation.
§Usage
cargo pmcp preview --url http://localhost:3000 --open§Features
- Widget rendering in isolated iframe
- Full
window.mcpBridge/window.openaisimulation - Environment controls (theme, locale, display mode)
- DevTools panel (state, console, network, events)
- Live proxy to MCP server via HTTP
Modules§
- wasm_
builder - WASM build orchestration and artifact caching
Structs§
- OAuth
Preview Config - OAuth configuration for browser-based PKCE flow.
- Preview
Config - Configuration for the preview server
- Preview
Server - MCP Preview Server
Enums§
- Preview
Mode - Preview mode controlling protocol validation strictness