Load MCP tools from configuration file with stateful sessions.
Supports multiple server types:
For stdio servers, this creates persistent sessions that remain active
across tool calls, avoiding server restarts. Sessions are managed by
MCPSessionManager and should be cleaned up with
session_manager.cleanup() when done.
get_mcp_tools(
config_path: str
) -> tuple[list[BaseTool], MCPSessionManager, list[MCPServerInfo]]| Name | Type | Description |
|---|---|---|
config_path* | str | Path to MCP JSON configuration file. |