Package-level declarations
Types
An MCP client on top of a pluggable transport.
Options for configuring the MCP client.
Client transport for SSE: this will connect to a server using Server-Sent Events for receiving messages and make separate POST requests for sending messages.
A transport implementation for JSON-RPC communication that leverages standard input and output streams.
Client transport for Streamable HTTP: this implements the MCP Streamable HTTP transport specification. It will connect to a server using HTTP POST for sending messages and HTTP GET with Server-Sent Events for receiving messages.
Error class for Streamable HTTP transport errors.
Client transport for WebSocket: this will connect to a server over the WebSocket protocol.
Functions
Creates and connects an MCP client over SSE using the provided HttpClient.
Returns a new SSE transport for the Model Context Protocol using the provided HttpClient.
Creates and connects an MCP client over Streamable HTTP using the provided HttpClient.
Returns a new Streamable HTTP transport for the Model Context Protocol using the provided HttpClient.
Creates and connects an MCP client over WebSocket using the provided HttpClient.
Returns a new WebSocket transport for the Model Context Protocol using the provided HttpClient.