basalt / mcp/src / McpSessionOptions
Interface: McpSessionOptions
Defined in: mcp-core/src/sessions.ts:12
Properties
maxSessions?
> optional maxSessions?: number
Defined in: mcp-core/src/sessions.ts:26
Most live sessions kept at once. At the cap, expired sessions are purged first, then the least recently used one is evicted — its client gets a 404 on its next request and re-initializes, rather than a flood of initialize calls locking every new client out. Default DEFAULT_MAX_SESSIONS.
ttlMs?
> optional ttlMs?: number
Defined in: mcp-core/src/sessions.ts:18
Idle lifetime: a session unused for this long is gone, and a request naming it is answered 404 (the client re-initializes). Default DEFAULT_SESSION_TTL_MS.