ConnectionConfig
Defined in: packages/mcp-query/src/core/connection.ts:32
Properties
Section titled “Properties”idleMs?
Section titled “idleMs?”
optionalidleMs?:number
Defined in: packages/mcp-query/src/core/connection.ts:42
With lazy, disconnect after this many ms idle; reconnect on next use.
optionallazy?:boolean
Defined in: packages/mcp-query/src/core/connection.ts:40
Connect on first use instead of eagerly at client.connect() (server-side).
maxRetries?
Section titled “maxRetries?”
optionalmaxRetries?:number
Defined in: packages/mcp-query/src/core/connection.ts:36
Cap reconnection attempts; backoff is exponential.
retryDelay?
Section titled “retryDelay?”
optionalretryDelay?: (attempt) =>number
Defined in: packages/mcp-query/src/core/connection.ts:38
ms before reconnect attempt N (0-based). Default: exponential capped at 30s.
Parameters
Section titled “Parameters”attempt
Section titled “attempt”number
Returns
Section titled “Returns”number
transport
Section titled “transport”transport: () =>
Transport
Defined in: packages/mcp-query/src/core/connection.ts:34
A transport factory so we can rebuild it on reconnect (stdio/StreamableHTTP/SSE).
Returns
Section titled “Returns”Transport