ReadonlyauthAuthentication context (immutable after creation)
Client information (populated after initialize)
ReadonlyidUnique session identifier (from transport or generated)
ReadonlymcpMCP session — SDK server wrapper with per-client request manager
ReadonlymetadataSession timing and lifecycle metadata
Current lifecycle state
ReadonlytransportTransport-layer context
A unified session representing a single connected MCP client.
The Session is the source of truth for everything related to a client connection. It directly owns the MCP session (SDK bridge), transport context, and auth context.
Composition