Transport Sessions
Each client connection is assigned a session ID (SessionId). Sessions are managed automatically:
- Stdio: Single session for the lifetime of the process
- Streamable HTTP: One session per client connection, identified by cookie or header
- SSE: One session per SSE connection
Session Lifecycleโ
- Client connects โ session created with a unique
SessionId - Client initializes โ session stores client info and capabilities
- Client disconnects โ session is preserved (if event store is configured)
- Client reconnects with same session ID โ session is resumed
Session Configโ
Configure session behavior via server options (timeout, max sessions, etc.) in the HTTP backend's options struct.