Builds per-request options for MCP client operations.
For a stdio connection with a configured timeout, the timeout is
converted from seconds to milliseconds. Otherwise the MCP SDK applies its
own default request timeout.
Optionalsignal: AbortSignal
Optional abort signal to attach to the request.
The request options for the MCP SDK client.
Manages Model Context Protocol (MCP) client sessions.
This class is responsible for establishing and managing connections to MCP servers. It supports different transport protocols like Standard I/O (Stdio) and Server-Sent Events (SSE) over HTTP, determined by the provided connection parameters.
The primary purpose of this manager is to abstract away the details of session creation and connection handling, providing a simple interface for creating new MCP client instances that can be used to interact with remote tools.