UNPKG

postgres-mcp-tools

Version:

PostgreSQL-based memory system with vector search capabilities for AI applications, including MCP integration for Claude

61 lines (60 loc) 1.78 kB
import { Tool } from '../typescript-sdk-wrapper.js'; /** * Tool for managing memories in the system */ export declare class MemoryManagementTool implements Tool { readonly name = "memory_management"; readonly description = "Manage memory operations like archiving old memories, optimizing indexes, or deleting specific memories"; readonly parameters: { type: string; properties: { operation: { type: string; enum: string[]; description: string; }; days_to_keep: { type: string; description: string; }; conversation_id: { type: string; description: string; }; memory_id: { type: string; description: string; }; }; required: string[]; }; /** * Execute the tool with provided parameters * @param params The parameters for the tool * @returns The result of the operation */ execute(params: any): Promise<any>; /** * Archive old memories * @param params The parameters for archiving * @returns Result of the archive operation */ private archiveMemories; /** * Optimize the vector index * @returns Result of the optimization operation */ private optimizeIndex; /** * List memories for a conversation * @param params The parameters for listing memories * @returns List of memories */ private listMemories; /** * Delete a specific memory * @param params The parameters for deleting a memory * @returns Result of the delete operation */ private deleteMemory; }