UNPKG

@toolprint/hypertool-mcp

Version:

HyperTool MCP proxy server for routing requests between clients and multiple underlying MCP servers

35 lines • 1.19 kB
/** * Environment variable configuration parser * * Parses dot-notation environment variables into nested configuration objects * Examples: * mcpServers.git.command=uvx → {mcpServers: {git: {command: "uvx"}}} * mcpServers.git.args.0=mcp-server-git → {mcpServers: {git: {args: ["mcp-server-git"]}}} */ export interface ParsedEnvConfig { mcpServers?: Record<string, any>; debug?: boolean; logLevel?: string; equipToolset?: string; [key: string]: any; } /** * Parse environment variables with dot notation into nested configuration */ export declare function parseEnvDotNotation(envVars?: Record<string, string>): ParsedEnvConfig; /** * Check if environment contains Smithery-style configuration */ export declare function hasSmitheryConfig(envVars?: Record<string, string>): boolean; /** * Get configuration source description for logging */ export declare function getConfigSourceDescription(config: ParsedEnvConfig): string; /** * Validate parsed configuration for common issues */ export declare function validateParsedConfig(config: ParsedEnvConfig): { valid: boolean; errors: string[]; }; //# sourceMappingURL=envConfigParser.d.ts.map