@pimzino/agentic-tools-mcp
Version:
A comprehensive MCP server for task management and agent memories with JSON file storage
39 lines (38 loc) • 1.05 kB
TypeScript
import { z } from 'zod';
import { MemoryStorage } from '../../storage/storage.js';
/**
* Update an existing memory
*
* @param storage - Memory storage instance
* @returns MCP tool handler for updating memories
*/
export declare function createUpdateMemoryTool(storage: MemoryStorage): {
name: string;
description: string;
inputSchema: {
id: z.ZodString;
title: z.ZodOptional<z.ZodString>;
content: z.ZodOptional<z.ZodString>;
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
category: z.ZodOptional<z.ZodString>;
};
handler: ({ id, title, content, metadata, category }: {
id: string;
title?: string;
content?: string;
metadata?: Record<string, any>;
category?: string;
}) => Promise<{
content: {
type: "text";
text: string;
}[];
isError: boolean;
} | {
content: {
type: "text";
text: string;
}[];
isError?: undefined;
}>;
};