UNPKG

@pimzino/agentic-tools-mcp

Version:

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

50 lines (49 loc) 1.65 kB
import { z } from 'zod'; import { Storage } from '../../storage/storage.js'; /** * Create a new task within a project with unlimited nesting depth * Version 2.0: Updated for unified task model supporting unlimited hierarchy * * @param storage - Storage instance * @returns MCP tool handler for creating tasks */ export declare function createCreateTaskTool(storage: Storage): { name: string; description: string; inputSchema: { name: z.ZodString; details: z.ZodString; projectId: z.ZodString; parentId: z.ZodOptional<z.ZodString>; dependsOn: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; priority: z.ZodOptional<z.ZodNumber>; complexity: z.ZodOptional<z.ZodNumber>; status: z.ZodOptional<z.ZodEnum<["pending", "in-progress", "blocked", "done"]>>; tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; estimatedHours: z.ZodOptional<z.ZodNumber>; }; handler: ({ name, details, projectId, parentId, dependsOn, priority, complexity, status, tags, estimatedHours }: { name: string; details: string; projectId: string; parentId?: string; dependsOn?: string[]; priority?: number; complexity?: number; status?: "pending" | "in-progress" | "blocked" | "done"; tags?: string[]; estimatedHours?: number; }) => Promise<{ content: { type: "text"; text: string; }[]; isError: boolean; } | { content: { type: "text"; text: string; }[]; isError?: undefined; }>; };