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 over standard I/O 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
Initializes and connects an MCP client using the provided clientInfo Implementation, client options, and transport mechanism.
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.