/** * Project Mind MCP - Session Context Tools * * Hybrid automation approach: * - Automated: Smart mega-tool that returns everything * - Mandatory: Instructions require calling this first * - Communicated: Explicit messaging about state */ import type { Tool } from '@modelcontextprotocol/sdk/types.js'; import type { ProjectDatabase } from '../storage/database.js'; import type { ToolResult } from '../types/index.js'; export declare const sessionContextTools: Tool[]; interface SessionMeta { sessionId: string; startTime: Date; toolCallCount: number; lastCheckpoint: Date; lastActivity: Date; } /** * Record a tool call for tracking * Call this from the server for every tool invocation */ export declare function recordToolCall(projectId: string, toolName: string): void; /** * Get current session metadata */ export declare function getSessionMeta(projectId: string): SessionMeta | null; /** * Clear session metadata (on mark_complete) */ export declare function clearSessionMeta(projectId: string): void; export declare function createSessionContextHandlers(db: ProjectDatabase): { get_session_context: (input: { project: string; messageCount?: number; }) => Promise; }>>; }; export {}; //# sourceMappingURL=session-context.d.ts.map