UNPKG

@toolprint/hypertool-mcp

Version:

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

36 lines • 992 B
/** * TypeScript interfaces for connection management */ /** * Connection state enumeration */ export var ConnectionState; (function (ConnectionState) { ConnectionState["DISCONNECTED"] = "disconnected"; ConnectionState["CONNECTING"] = "connecting"; ConnectionState["CONNECTED"] = "connected"; ConnectionState["RECONNECTING"] = "reconnecting"; ConnectionState["FAILED"] = "failed"; })(ConnectionState || (ConnectionState = {})); /** * Default connection options */ export const DEFAULT_CONNECTION_OPTIONS = { maxRetries: 3, retryDelay: 1000, backoffMultiplier: 2, maxRetryDelay: 30000, pingInterval: 30000, connectionTimeout: 10000, debug: false, }; /** * Default connection pool configuration */ export const DEFAULT_POOL_CONFIG = { maxConcurrentConnections: 20, idleTimeout: 300000, // 5 minutes healthCheckInterval: 60000, // 1 minute connectionOptions: DEFAULT_CONNECTION_OPTIONS, }; //# sourceMappingURL=types.js.map