UNPKG

procedure-memory-mcp-server

Version:

Procedure memory management system with MCP integration using Zep

39 lines 1.7 kB
import { findMostRelevantEpisodes } from "./procedureSearch.js"; // Tool Definitions export const toolDefinitions = [ { name: "search_procedures", description: "Search for procedures, documentation, and operational knowledge stored in memory. This tool searches across all procedure episodes, finding relevant documentation based on your query. It automatically searches through procedures, tools, tasks, workflows, and their relationships to find the most relevant information.", inputSchema: { type: "object", properties: { query: { type: "string", description: "What you're looking for - can be a procedure name, task description, tool usage, or any operational query. Examples: 'database connection setup', 'deploy to production', 'authentication workflow'" }, numResults: { type: "number", description: "Number of most relevant episodes to return (default: 3)", default: 3, minimum: 1, maximum: 10 } }, required: ["query"] }, handler: async (args) => { try { const numResults = args.numResults || 3; return await findMostRelevantEpisodes(args.query, { n: numResults }); } catch (error) { throw new Error(`Error searching procedures: ${error}`); } } } ]; // Add handler property to tools toolDefinitions.forEach(tool => { tool.handler = tool.handler; }); //# sourceMappingURL=index.js.map