feat(mcp): Implement update-task MCP command for updating single tasks by ID with proper direct function wrapper, MCP tool implementation, and registration

This commit is contained in:
Eyal Toledano
2025-03-31 02:02:01 -04:00
parent 74dcf3b5f4
commit a186cb43e3
7 changed files with 164 additions and 3 deletions

View File

@@ -9,6 +9,7 @@ import { listTasksDirect } from './direct-functions/list-tasks.js';
import { getCacheStatsDirect } from './direct-functions/cache-stats.js';
import { parsePRDDirect } from './direct-functions/parse-prd.js';
import { updateTasksDirect } from './direct-functions/update-tasks.js';
import { updateTaskByIdDirect } from './direct-functions/update-task-by-id.js';
// Re-export utility functions
export { findTasksJsonPath } from './utils/path-utils.js';
@@ -19,6 +20,7 @@ export {
getCacheStatsDirect,
parsePRDDirect,
updateTasksDirect,
updateTaskByIdDirect,
};
/**
@@ -30,5 +32,6 @@ export const directFunctions = {
cacheStats: getCacheStatsDirect,
parsePRD: parsePRDDirect,
update: updateTasksDirect,
updateTask: updateTaskByIdDirect,
// Add more functions as we implement them
};