@pimzino/agentic-tools-mcp
Version:
A comprehensive MCP server for task management and agent memories with JSON file storage
37 lines (36 loc) • 963 B
TypeScript
import { z } from 'zod';
import { MemoryStorage } from '../../storage/storage.js';
/**
* Create a new memory
*
* @param storage - Memory storage instance
* @returns MCP tool handler for creating memories
*/
export declare function createCreateMemoryTool(storage: MemoryStorage): {
name: string;
description: string;
inputSchema: {
title: z.ZodString;
content: z.ZodString;
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
category: z.ZodOptional<z.ZodString>;
};
handler: ({ title, content, metadata, category }: {
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;
}>;
};