@pimzino/agentic-tools-mcp
Version:
A comprehensive MCP server for task management and agent memories with JSON file storage
37 lines (36 loc) • 916 B
TypeScript
import { z } from 'zod';
import { Storage } from '../../storage/storage.js';
/**
* Update an existing subtask
*
* @param storage - Storage instance
* @returns MCP tool handler for updating subtasks
*/
export declare function createUpdateSubtaskTool(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>;
};
handler: ({ id, name, details, completed }: {
id: string;
name?: string;
details?: string;
completed?: boolean;
}) => Promise<{
content: {
type: "text";
text: string;
}[];
isError: boolean;
} | {
content: {
type: "text";
text: string;
}[];
isError?: undefined;
}>;
};