@pimzino/agentic-tools-mcp
Version:
A comprehensive MCP server for task management and agent memories with JSON file storage
38 lines (37 loc) • 1.11 kB
TypeScript
import { z } from 'zod';
import { Storage } from '../../storage/storage.js';
/**
* List tasks with hierarchical display, optionally filtered by project and parent
* Version 2.0: Updated for unified task model supporting unlimited hierarchy
*
* @param storage - Storage instance
* @returns MCP tool handler for listing tasks
*/
export declare function createListTasksTool(storage: Storage): {
name: string;
description: string;
inputSchema: {
projectId: z.ZodString;
parentId: z.ZodOptional<z.ZodString>;
showHierarchy: z.ZodOptional<z.ZodBoolean>;
includeCompleted: z.ZodOptional<z.ZodBoolean>;
};
handler: ({ projectId, parentId, showHierarchy, includeCompleted }: {
projectId: string;
parentId?: string;
showHierarchy?: boolean;
includeCompleted?: boolean;
}) => Promise<{
content: {
type: "text";
text: string;
}[];
isError: boolean;
} | {
content: {
type: "text";
text: string;
}[];
isError?: undefined;
}>;
};