enhanced-thinking-mcp
Version:
Enhanced sequential thinking MCP server for advanced reasoning and problem-solving with Cursor AI
40 lines • 1.34 kB
TypeScript
import { ThoughtData, ThoughtAnalytics } from './index.js';
export interface StoredSession {
id: string;
startTime: number;
endTime?: number;
totalThoughts: number;
averageQuality: number;
finalConfidence?: number;
llmEnhancementsUsed: number;
insights: string[];
status: 'active' | 'completed';
}
export interface DatabaseData {
sessions: StoredSession[];
thoughts: Record<string, ThoughtData[]>;
lastUpdated: number;
}
export declare class ThinkingDatabase {
private dbPath;
private dashboardUrl;
private data;
constructor(dbPath: string, dashboardUrl?: string);
private loadData;
private saveData;
private syncToDashboard;
createSession(sessionId: string): Promise<void>;
saveThought(sessionId: string, thought: ThoughtData): Promise<void>;
completeSession(sessionId: string, analytics: ThoughtAnalytics, insights: string[]): Promise<void>;
getRecentSessions(limit?: number): Promise<StoredSession[]>;
getSessionThoughts(sessionId: string): Promise<ThoughtData[]>;
getOverallStats(): Promise<{
totalSessions: number;
totalThoughts: number;
averageQuality: number;
totalLLMEnhancements: number;
averageSessionDuration: number;
}>;
close(): Promise<void>;
}
//# sourceMappingURL=database.d.ts.map