Module transport

Source
Expand description

Transport layer for the MCP protocol handles the serialization and deserialization of message handles send and receive of messages defines transport layer types

Structs§

ClientInMemoryTransport
Client-side transport that communicates with a spawned server task
ClientSseTransport
Client-side SSE transport that sends messages via HTTP POST and receives responses via SSE
ClientSseTransportBuilder
ClientStdioTransport
ClientStdioTransport launches a child process and communicates with it via stdio
ClientWsTransport
ClientWsTransportBuilder
JsonRpcError
JsonRpcNotification
JsonRpcRequest
JsonRpcResponse
JsonRpcVersion
JSON RPC version type
ServerInMemoryTransport
Server-side transport that receives messages from a channel
ServerSseTransport
ServerStdioTransport
Stdio transport for server with json serialization TODO: support for other binary serialzation formats
ServerWsTransport

Enums§

ClientHttpTransport
JsonRpcMessage
ServerHttpTransport
SseEvent

Traits§

Transport

Functions§

handle_ws_connection

Type Aliases§

Message
only JsonRpcMessage is supported for now https://spec.modelcontextprotocol.io/specification/basic/messages/
RequestId
Request ID type