mcpr_core/lib.rs
1//! Core types, traits, and shared foundations for mcpr crates.
2//!
3//! `mcpr-core` is the foundation of the mcpr workspace. Every other mcpr crate
4//! depends on it for shared abstractions, protocol types, and proxy logic.
5//!
6//! ## Modules
7//!
8//! - [`config`]: Module configuration trait and validation types.
9//! - [`event`]: Proxy event types (`ProxyEvent` enum) and sink trait (`EventSink`).
10//! - [`protocol`]: JSON-RPC 2.0 parsing, MCP method classification, session
11//! management, and schema capture/diffing.
12//! - [`proxy`]: Request routing, upstream forwarding, SSE streaming, CSP
13//! rewriting, and proxy runtime state.
14//! - [`time`]: Shared time formatting utilities.
15
16pub mod config;
17pub mod event;
18pub mod protocol;
19pub mod proxy;
20pub mod time;