/** * MCP Client Foundation — server configuration (2.13.0). * * Parses/validates a configured stdio server into a normalized * `McpServerDefinition`. Secret hygiene is enforced here: environment values are * never echoed into diagnostics or evidence; only variable names are surfaced. */ import type { McpServerDefinition } from "./mcp-types.js"; export declare const DEFAULT_MCP_STARTUP_TIMEOUT_MS = 30000; export declare const DEFAULT_MCP_REQUEST_TIMEOUT_MS = 60000; export declare function isSafeMcpServerId(value: string): boolean; /** * Validate a raw JSON-decoded object into a normalized server definition. * Throws `McpClientError("MCP_INVALID_SERVER_CONFIG")` on any structural error. */ export declare function normalizeMcpServerDefinition(input: unknown): McpServerDefinition; /** Parse a server-config JSON document into a validated definition. */ export declare function parseMcpServerConfigJson(text: string): McpServerDefinition; /** * argv identity for diagnostics: `command` plus explicit args. Environment * contents are deliberately excluded. */ export declare function safeServerCommand(definition: McpServerDefinition): string; /** Sorted environment variable NAMES only — values are never surfaced. */ export declare function safeEnvNames(definition: McpServerDefinition): string[]; //# sourceMappingURL=server-config.d.ts.map