mcp-preview 0.2.2

MCP Apps Preview Server - Browser-based UI testing for MCP widgets
Documentation
//! 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
//!
//! ```bash
//! cargo pmcp preview --url http://localhost:3000 --open
//! ```
//!
//! # Features
//!
//! - Widget rendering in isolated iframe
//! - Full `window.mcpBridge` / `window.openai` simulation
//! - Environment controls (theme, locale, display mode)
//! - DevTools panel (state, console, network, events)
//! - Live proxy to MCP server via HTTP

mod assets;
mod handlers;
mod proxy;
mod server;
pub mod wasm_builder;

pub use server::{PreviewConfig, PreviewMode, PreviewServer};