Skip to main content
Version: 1.1.0

Transport Overview

rust-mcp-sdk supports three transport protocols:

TransportUse Case
StdioLocal subprocess - server runs as a child process
Streamable HTTPRemote HTTP - modern, streaming, SSE-free
SSEBackward-compatible legacy SSE transport

TransportOptionsโ€‹

pub struct TransportOptions {
/// Request timeout; how long to wait for a response before considering
/// the request timed out.
pub timeout: Duration,
/// Maximum size (in bytes) of a single newline-delimited incoming message.
/// Default: 16 MiB.
pub max_line_length: usize,
/// Capacity of the incoming-message channel buffer. Default: 36.
pub channel_capacity: usize,
}