/** * MCP Configuration Loader * * Discovers, loads, validates, and merges MCP server configuration files * from global and project-specific locations. */ import type { McpConfig, MergedConfig } from '../types/mcp.js'; /** * Configuration Loader Interface */ export interface IMcpConfigLoader { discoverConfigs(): Promise<{ global: McpConfig | null; project: McpConfig | null; }>; mergeConfigs(global: McpConfig | null, project: McpConfig | null): MergedConfig; validateConfig(config: McpConfig): { valid: boolean; errors: string[]; }; } /** * Discover and load MCP configurations from standard locations */ export declare function discoverConfigs(workingDir?: string): Promise<{ global: McpConfig | null; project: McpConfig | null; }>; /** * Merge global and project configurations * * Project configuration takes precedence for duplicate server names */ export declare function mergeConfigs(global: McpConfig | null, project: McpConfig | null): MergedConfig; /** * Validate configuration against JSON schema */ export declare function validateConfig(config: McpConfig): { valid: boolean; errors: string[]; }; /** * MCP Configuration Loader implementation */ export declare class McpConfigLoader implements IMcpConfigLoader { private readonly workingDir?; constructor(workingDir?: string | undefined); discoverConfigs(): Promise<{ global: McpConfig | null; project: McpConfig | null; }>; mergeConfigs(global: McpConfig | null, project: McpConfig | null): MergedConfig; validateConfig(config: McpConfig): { valid: boolean; errors: string[]; }; } //# sourceMappingURL=mcp-config.d.ts.map