@pimzino/agentic-tools-mcp
Version:
A comprehensive MCP server for task management and agent memories with JSON file storage
37 lines (36 loc) • 962 B
TypeScript
import { z } from 'zod';
import { MemoryStorage } from '../../storage/storage.js';
/**
* Search memories by semantic similarity
*
* @param storage - Memory storage instance
* @returns MCP tool handler for searching memories
*/
export declare function createSearchMemoriesTool(storage: MemoryStorage): {
name: string;
description: string;
inputSchema: {
query: z.ZodString;
limit: z.ZodOptional<z.ZodNumber>;
threshold: z.ZodOptional<z.ZodNumber>;
category: z.ZodOptional<z.ZodString>;
};
handler: ({ query, limit, threshold, category }: {
query: string;
limit?: number;
threshold?: number;
category?: string;
}) => Promise<{
content: {
type: "text";
text: string;
}[];
isError: boolean;
} | {
content: {
type: "text";
text: string;
}[];
isError?: undefined;
}>;
};