rust_mcp_transport/lib.rs
1// Copyright (c) 2025 mcp-rust-stack
2// Licensed under the MIT License. See LICENSE file for details.
3// Modifications to this file must be documented with a description of the changes made.
4#[cfg(feature = "sse")]
5mod client_sse;
6pub mod error;
7mod mcp_stream;
8mod message_dispatcher;
9#[cfg(feature = "sse")]
10mod sse;
11mod stdio;
12mod transport;
13mod utils;
14
15#[cfg(feature = "sse")]
16pub use client_sse::*;
17pub use message_dispatcher::*;
18#[cfg(feature = "sse")]
19pub use sse::*;
20pub use stdio::*;
21pub use transport::*;
22
23// Type alias for session identifier, represented as a String
24pub type SessionId = String;