thoughtmcp
Version:
AI that thinks more like humans do - MCP server with human-like cognitive architecture for enhanced reasoning, memory, and self-monitoring
67 lines • 2.73 kB
TypeScript
/**
* Main MCP server implementation for cognitive architecture
*/
import { CognitiveOrchestrator } from "../cognitive/CognitiveOrchestrator.js";
import { MemorySystem } from "../cognitive/MemorySystem.js";
import { MetacognitionModule } from "../cognitive/MetacognitionModule.js";
import { IMCPServer, IToolHandler } from "../interfaces/mcp.js";
import type { ThoughtResult } from "../types/core.js";
import { AnalysisResult, AnalyzeReasoningArgs, MemoryResult, RecallArgs, RecallResult, RememberArgs, ThinkArgs } from "../types/mcp.js";
import { PerformanceThresholds } from "../utils/PerformanceMonitor.js";
export declare class CognitiveMCPServer implements IMCPServer, IToolHandler {
private server;
private initialized;
private cognitiveOrchestrator;
private memorySystem;
private performanceMonitor;
private metacognitionModule;
private configManager;
constructor(performanceThresholds?: Partial<PerformanceThresholds>);
initialize(testMode?: boolean): Promise<void>;
registerTools(): void;
private setupRequestHandlers;
handleRequest(_method: string, _params: Record<string, unknown>): Promise<unknown>;
private validateThinkArgs;
private validateRememberArgs;
private validateRecallArgs;
private validateAnalyzeReasoningArgs;
handleThink(args: ThinkArgs): Promise<ThoughtResult>;
handleRemember(args: RememberArgs): Promise<MemoryResult>;
handleRecall(args: RecallArgs): Promise<RecallResult>;
testMethod(): string;
handleAnalyzeReasoning(args: AnalyzeReasoningArgs): Promise<AnalysisResult>;
shutdown(): Promise<void>;
isInitialized(): boolean;
getServerInfo(): {
name: string;
version: string;
initialized: boolean;
};
private createContext;
private createCognitiveConfig;
getMemorySystem(): MemorySystem;
getCognitiveOrchestrator(): CognitiveOrchestrator;
getMetacognitionModule(): MetacognitionModule;
private generateRequestId;
/**
* Get performance statistics
*/
getPerformanceStatistics(timeWindow?: number): import("../utils/PerformanceMonitor.js").PerformanceStatistics;
/**
* Get recent performance alerts
*/
getPerformanceAlerts(limit?: number): import("../utils/PerformanceMonitor.js").PerformanceAlert[];
/**
* Export performance metrics
*/
exportPerformanceMetrics(): import("../utils/PerformanceMonitor.js").PerformanceMetrics[];
/**
* Clear performance metrics history
*/
clearPerformanceMetrics(): void;
/**
* Get current memory usage
*/
getCurrentMemoryUsage(): import("../utils/PerformanceMonitor.js").MemoryUsage;
}
//# sourceMappingURL=CognitiveMCPServer.d.ts.map