Skip to main content

Module session

Module session 

Source
Expand description

Session management for MCP Streamable HTTP transport.

Each MCP session is identified by a Mcp-Session-Id header. The proxy tracks per-session state including known tool annotations, protocol version, and request counts.

Status: Production — fully wired into the HTTP proxy.

Structs§

DiscoveredToolSession
Per-session tracking of a discovered tool (Phase 34.3).
GlobalFlaggedToolEntry
Entry in the global flagged-tools registry. Records when a tool was flagged so it can be expired after TTL.
SessionState
Per-session state tracked by the HTTP proxy.
SessionStore
Thread-safe session store with automatic expiry cleanup.
StatefulContext
Adapter that implements RequestContext for SessionState.

Type Aliases§

ToolAnnotationsCompact
Type alias for backward compatibility with existing code.