mcp_preview/lib.rs
1//! MCP Preview Server
2//!
3//! A browser-based development environment for testing MCP Apps widgets.
4//! Simulates the ChatGPT Apps runtime environment with full bridge support.
5//!
6//! # Usage
7//!
8//! ```bash
9//! cargo pmcp preview --url http://localhost:3000 --open
10//! ```
11//!
12//! # Features
13//!
14//! - Widget rendering in isolated iframe
15//! - Full `window.mcpBridge` / `window.openai` simulation
16//! - Environment controls (theme, locale, display mode)
17//! - DevTools panel (state, console, network, events)
18//! - Live proxy to MCP server via HTTP
19
20mod assets;
21mod handlers;
22mod proxy;
23mod server;
24pub mod wasm_builder;
25
26pub use server::{PreviewConfig, PreviewMode, PreviewServer};