UNPKG

bc-code-intelligence-mcp

Version:

BC Code Intelligence MCP Server - Complete Specialist Bundle with AI-driven expert consultation, seamless handoffs, and context-preserving workflows

31 lines 1.33 kB
/** * In-Memory Session Storage Implementation * * Default session storage that keeps all sessions in memory. * Sessions are lost when the MCP server restarts. * Zero configuration required - works out of the box. */ import { SpecialistSession, SessionSummary, SessionStorage, SessionStorageConfig } from '../../types/session-types.js'; export declare class InMemorySessionStorage implements SessionStorage { private sessions; private config; constructor(config?: SessionStorageConfig); createSession(session: SpecialistSession): Promise<void>; getSession(sessionId: string): Promise<SpecialistSession | null>; updateSession(session: SpecialistSession): Promise<void>; deleteSession(sessionId: string): Promise<void>; getUserSessions(userId: string): Promise<SessionSummary[]>; getActiveSessions(userId: string): Promise<SessionSummary[]>; getSpecialistSessions(specialistId: string): Promise<SessionSummary[]>; cleanupExpiredSessions(): Promise<number>; getUserSessionCount(userId: string): Promise<number>; private cleanupIfNeeded; private toSessionSummary; private extractPrimaryTopics; getMemoryStats(): { sessionCount: number; totalMessages: number; memoryUsageKB: number; }; } //# sourceMappingURL=in-memory-storage.d.ts.map