UNPKG

@pimzino/agentic-tools-mcp

Version:

A comprehensive MCP server for task management and agent memories with JSON file storage

33 lines (32 loc) 813 B
import { z } from 'zod'; import { MemoryStorage } from '../../storage/storage.js'; /** * List memories with optional filtering * * @param storage - Memory storage instance * @returns MCP tool handler for listing memories */ export declare function createListMemoriesTool(storage: MemoryStorage): { name: string; description: string; inputSchema: { category: z.ZodOptional<z.ZodString>; limit: z.ZodOptional<z.ZodNumber>; }; handler: ({ category, limit }: { category?: string; limit?: number; }) => Promise<{ content: { type: "text"; text: string; }[]; isError: boolean; } | { content: { type: "text"; text: string; }[]; isError?: undefined; }>; };