@pimzino/agentic-tools-mcp
Version:
A comprehensive MCP server for task management and agent memories with JSON file storage
51 lines (50 loc) • 1.64 kB
TypeScript
import { z } from 'zod';
import { Storage } from '../../storage/storage.js';
/**
* Update an existing task
*
* @param storage - Storage instance
* @returns MCP tool handler for updating tasks
*/
export declare function createUpdateTaskTool(storage: Storage): {
name: string;
description: string;
inputSchema: {
id: z.ZodString;
name: z.ZodOptional<z.ZodString>;
details: z.ZodOptional<z.ZodString>;
completed: z.ZodOptional<z.ZodBoolean>;
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>;
actualHours: z.ZodOptional<z.ZodNumber>;
};
handler: ({ id, name, details, completed, dependsOn, priority, complexity, status, tags, estimatedHours, actualHours }: {
id: string;
name?: string;
details?: string;
completed?: boolean;
dependsOn?: string[];
priority?: number;
complexity?: number;
status?: "pending" | "in-progress" | "blocked" | "done";
tags?: string[];
estimatedHours?: number;
actualHours?: number;
}) => Promise<{
content: {
type: "text";
text: string;
}[];
isError: boolean;
} | {
content: {
type: "text";
text: string;
}[];
isError?: undefined;
}>;
};