Skip to main content

mcp_kit/server/
mod.rs

1pub mod builder;
2pub mod core;
3pub mod extract;
4pub mod handler;
5pub mod router;
6pub mod session;
7
8#[cfg(feature = "auth")]
9pub mod auth_context;
10
11pub use builder::{McpServerBuilder, ToolDef};
12pub use core::McpServer;
13pub use extract::{Extension, Json, State};
14pub use handler::{BoxFuture, HandlerFn, IntoToolResult, ToolHandler, TypedMarker};
15pub use router::Router;
16pub use session::Session;
17
18#[cfg(feature = "auth")]
19pub use extract::Auth;
20
21#[cfg(feature = "auth")]
22pub use handler::AuthenticatedMarker;