UNPKG

@tosin2013/mcp-shrimp-task-manager

Version:

Enhanced MCP Shrimp Task Manager with comprehensive LLM integration. A task management tool built for AI Agents, emphasizing chain-of-thought, reflection, and style consistency. Features real GPT-4 ↔ MCP tools communication, comprehensive testing pipeline

94 lines (93 loc) 2.86 kB
/** * Task Memory Connector for the Idea Honing Tool * * This component integrates with the task memory system to store specifications, * create tasks, track task status, and query task memory. */ import { SpecificationDocument } from '../models/specification.js'; /** * Task structure */ interface Task { /** Task identifier */ id: string; /** Task title */ title: string; /** Task description */ description: string; /** Task status */ status: 'pending' | 'in_progress' | 'completed' | 'verified'; /** Task dependencies */ dependencies: string[]; /** Task creation timestamp */ createdAt: string; /** Task update timestamp */ updatedAt: string; /** Associated specification ID */ specificationId?: string; /** Task metadata */ metadata: Record<string, any>; } /** * Task creation options */ interface TaskCreationOptions { /** Task title */ title: string; /** Task description */ description: string; /** Task dependencies */ dependencies?: string[]; /** Task metadata */ metadata?: Record<string, any>; } /** * Stores a specification in task memory * * @param specification - Specification document to store * @returns Promise that resolves with the stored specification ID */ export declare function storeSpecificationInTaskMemory(specification: SpecificationDocument): Promise<string>; /** * Creates a task from a specification * * @param specificationId - Specification identifier * @param options - Task creation options * @returns Promise that resolves with the created task ID */ export declare function createTaskFromSpecification(specificationId: string, options: TaskCreationOptions): Promise<string>; /** * Updates a task's status * * @param taskId - Task identifier * @param status - New task status * @returns Promise that resolves when the task is updated */ export declare function updateTaskStatus(taskId: string, status: 'pending' | 'in_progress' | 'completed' | 'verified'): Promise<void>; /** * Gets tasks for a specification * * @param specificationId - Specification identifier * @returns Promise that resolves with an array of tasks */ export declare function getTasksForSpecification(specificationId: string): Promise<Task[]>; /** * Gets a task by ID * * @param taskId - Task identifier * @returns Promise that resolves with the task */ export declare function getTask(taskId: string): Promise<Task>; /** * Queries task memory for tasks matching criteria * * @param criteria - Query criteria * @returns Promise that resolves with an array of matching tasks */ export declare function queryTaskMemory(criteria: { status?: 'pending' | 'in_progress' | 'completed' | 'verified'; specificationId?: string; title?: string; description?: string; }): Promise<Task[]>; export {};