/** * MCP configuration utilities for loading tools from a config file */ import { McpTool } from "../tools/mcpTool.js"; /** * Configuration for an MCP server */ export interface McpServerConfig { command?: string; args?: string[]; cwd?: string; url?: string; type?: "http" | "sse"; env?: Record; timeout?: number; auth?: { method: "bearer" | "basic" | "oauth"; token?: string; username?: string; password?: string; clientId?: string; clientSecret?: string; redirectUri?: string; callbackPort?: number; authTimeout?: number; }; } /** * Configuration for multiple MCP servers */ export interface McpServersConfig { mcpServers: Record; } /** * Helper class for loading MCP tools from configuration */ export declare class McpConfigurator { private static runtime; /** * Creates MCP clients from the configuration and returns all individual tools * @param configPath Path to the mcp_config.json file (or explicit path if provided) * @returns Promise that resolves to an array of McpTool instances for all tools from all servers */ static loadTools(configPath?: string): Promise; }