IFClite TypeScript API
    Preparing search index...

    Interface SessionFactory

    interface SessionFactory {
        build(
            scope: AuthScope,
            sessionId: string,
        ): MCPServer | Promise<MCPServer>;
    }
    Index
    • Build a fresh MCPServer for this session. Called on initialize.

      The server MUST be constructed with sessionId (i.e. createMCPServer({ ..., sessionId })): it keys per-session state — the layer workspace in particular (#1030) — and its disposal on session end. The transport rejects servers built without it rather than letting every HTTP session silently share the local workspace.

      Parameters

      Returns MCPServer | Promise<MCPServer>