Skip to main content
Version: 1.1.0

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โ€‹

  1. Client connects โ†’ session created with a unique SessionId
  2. Client initializes โ†’ session stores client info and capabilities
  3. Client disconnects โ†’ session is preserved (if event store is configured)
  4. 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.