Connects the MCP client to the server.
This function is exposed to allow consumers to connect manually, but will be called lazily before any operations that require a connection.
A promise that resolves when the connection is established.
Disconnects the MCP client from the server and cleans up resources.
A promise that resolves when the disconnection is complete.
Lists the tools available on the server and returns them as executable McpTool instances.
A promise that resolves with an array of McpTool instances.
MCP Client for interacting with Model Context Protocol servers.