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

    Type Alias CloseSessionCallback

    CloseSessionCallback: (
        sessionId: string,
        reason: SessionCloseReason,
    ) => void | Promise<void>

    Callback for the Housekeeper to request session closure. Implemented by SessionManager which owns the full teardown lifecycle. Returns void or Promise to support async teardown.

    Type Declaration