UNPKG

@toolprint/hypertool-mcp

Version:

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

31 lines • 1.19 kB
/** * Server settings configuration loader * Handles loading server-related settings from multiple sources with priority: * 1. Environment variables (highest priority) * 2. Config file (config.json) * 3. Defaults (lowest priority) */ export interface ServerSettings { /** Maximum number of concurrent server connections */ maxConcurrentConnections: number; } /** * Load server settings from all sources with proper priority * Priority: Environment variables > Config file > Defaults */ export declare function loadServerSettings(): Promise<ServerSettings>; /** * Get the current max concurrent connections setting * This is a convenience function that loads settings and returns just the connection limit */ export declare function getMaxConcurrentConnections(): Promise<number>; /** * Update server settings in the config file * Note: This does not affect environment variable overrides */ export declare function updateServerSettings(updates: Partial<ServerSettings>): Promise<void>; /** * Log current server settings configuration for debugging */ export declare function logServerSettingsSource(): Promise<void>; //# sourceMappingURL=serverSettings.d.ts.map