Skip to main content

mcp_kit/server/
mod.rs

1pub mod builder;
2pub mod cancellation;
3pub mod core;
4pub mod elicitation;
5pub mod extract;
6pub mod handler;
7pub mod notification;
8pub mod progress;
9pub mod roots;
10pub mod router;
11pub mod sampling;
12pub mod session;
13pub mod subscription;
14
15#[cfg(feature = "auth")]
16pub mod auth_context;
17
18pub use builder::{McpServerBuilder, ToolDef};
19pub use cancellation::{CancellationManager, RequestGuard};
20pub use core::McpServer;
21pub use elicitation::{
22    ChannelElicitationClient, ElicitationClient, ElicitationClientExt, ElicitationError,
23    ElicitationRequestBuilder, ElicitationRequestMessage,
24};
25pub use extract::{Extension, Json, State};
26pub use handler::{
27    BoxFuture, CompletionHandler, HandlerFn, IntoToolResult, ToolHandler, TypedMarker,
28};
29pub use notification::{
30    NotificationReceiver, NotificationSender, SendError, SharedNotificationSender,
31};
32pub use progress::{ProgressTokenExt, ProgressTracker};
33pub use roots::RootsManager;
34pub use router::Router;
35pub use sampling::{
36    ChannelSamplingClient, NoOpSamplingClient, SamplingClient, SamplingRequestBuilder,
37};
38pub use session::Session;
39pub use subscription::SubscriptionManager;
40
41#[cfg(feature = "auth")]
42pub use extract::Auth;
43
44#[cfg(feature = "auth")]
45pub use handler::AuthenticatedMarker;