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;
9mod schema;
10#[cfg(feature = "sse")]
11mod sse;
12mod stdio;
13mod transport;
14mod utils;
15
16#[cfg(feature = "sse")]
17pub use client_sse::*;
18pub use message_dispatcher::*;
19#[cfg(feature = "sse")]
20pub use sse::*;
21pub use stdio::*;
22pub use transport::*;
23
24// Type alias for session identifier, represented as a String
25pub type SessionId = String;