# Class MCPSessionManager

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.

- Defined in tools/mcp/mcp_session_manager.ts:73

## Constructors

### constructor

- new MCPSessionManager(connectionParams: MCPConnectionParams): MCPSessionManager

  #### Parameters

  - connectionParams: MCPConnectionParams

  #### Returns MCPSessionManager

  - Defined in tools/mcp/mcp_session_manager.ts:76

## Methods

### createSession

- createSession(): Promise<Client<{}, {}, { [key: string]: unknown }>>

  #### Returns Promise<Client<{}, {}, { [key: string]: unknown }>>

  - Defined in tools/mcp/mcp_session_manager.ts:80