MCP Server Framework - v1.0.0
    Preparing search index...

    Interface Session

    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.

    Session
    ├── id (unique identifier)
    ├── state (lifecycle: createdactiveclosingclosed)
    ├── transportTransportContext (type, instance, heartbeat)
    ├── mcpSessionMcpSession (SDK server, request manager)
    ├── authAuthContext (SDK AuthInfo + framework permissions)
    ├── clientInfoClientInfo (name, version, remoteAddress)
    └── metadataSessionMetadata (createdAt, lastActivityAt)
    interface Session {
        auth: AuthContext;
        clientInfo: ClientInfo;
        id: string;
        mcpSession: McpSession;
        metadata: SessionMetadata;
        state: SessionState;
        transport: TransportContext;
    }
    Index

    Properties

    Authentication context (immutable after creation)

    clientInfo: ClientInfo

    Client information (populated after initialize)

    id: string

    Unique session identifier (from transport or generated)

    mcpSession: McpSession

    MCP session — SDK server wrapper with per-client request manager

    metadata: SessionMetadata

    Session timing and lifecycle metadata

    Current lifecycle state

    transport: TransportContext

    Transport-layer context