Modules§
Structs§
- Client
SseTransport - Client-side Server-Sent Events (SSE) transport implementation
- Client
SseTransport Options - Configuration options for the Client SSE Transport
- Client
Streamable Transport - Message
Dispatcher - Provides a dispatcher for sending MCP messages and handling responses.
- Request
Options - SseEvent
- Represents a single Server-Sent Event (SSE) as defined in the SSE protocol.
- SseTransport
- Stdio
Transport - Implements a standard I/O transport for MCP communication.
- Streamable
Transport Options - Transport
Options - Configuration for the transport layer
Enums§
- IoStream
- Enum representing a stream that can either be readable or writable. This allows the reuse of the same traits for both MCP Server and MCP Client, where the data direction is reversed.
Constants§
- DEFAULT_
MAX_ LINE_ LENGTH - Maximum size (in bytes) of a single newline-delimited incoming message for all transports (stdio, SSE, streamable HTTP). Messages exceeding this limit are dropped silently; increase this value if you expect large tool results or responses.
- ID_
SEPARATOR - MCP_
LAST_ EVENT_ ID_ HEADER - MCP_
PROTOCOL_ VERSION_ HEADER - MCP_
SESSION_ ID_ HEADER
Traits§
- McpDispatch
- A trait for dispatching MCP (Message Communication Protocol) messages.
- Transport
- A trait representing the transport layer for the MCP (Message Communication Protocol).
- Transport
Dispatcher - A composite trait that combines both transport and dispatch capabilities for the MCP protocol.