UNPKG

@pimzino/agentic-tools-mcp

Version:

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

33 lines (32 loc) 752 B
import { z } from 'zod'; import { Storage } from '../../storage/storage.js'; /** * Delete a task and all associated subtasks * * @param storage - Storage instance * @returns MCP tool handler for deleting tasks */ export declare function createDeleteTaskTool(storage: Storage): { name: string; description: string; inputSchema: { id: z.ZodString; confirm: z.ZodBoolean; }; handler: ({ id, confirm }: { id: string; confirm: boolean; }) => Promise<{ content: { type: "text"; text: string; }[]; isError: boolean; } | { content: { type: "text"; text: string; }[]; isError?: undefined; }>; };