An AI-powered task-management system you can drop into Cursor, Lovable, Windsurf, Roo, and others.
JavaScript aicursorcursor-aicursorailovablelovable-devroocodetask-managertaskstasks-listwindsurfwindsurf-ai
fix: update MCP tool
Ralph Khreishee0be04302cc
diff --git a/.changeset/eleven-news-check.md b/.changeset/eleven-news-check.mdnew file mode 100644index 00000000..ab21763b--- /dev/null+++ b/.changeset/eleven-news-check.md@@ -0,0 +1,5 @@+---+"task-master-ai": patch+---++Fix update tool on MCP giving `No valid tasks found`diff --git a/mcp-server/src/core/direct-functions/update-tasks.js b/mcp-server/src/core/direct-functions/update-tasks.jsindex f4cd6d8d..cb719f43 100644--- a/mcp-server/src/core/direct-functions/update-tasks.js+++ b/mcp-server/src/core/direct-functions/update-tasks.js@@ -21,7 +21,7 @@ import {*/export async function updateTasksDirect(args, log, context = {}) {const { session } = context;- const { from, prompt, research, file: fileArg, projectRoot } = args;+ const { from, prompt, research, tasksJsonPath, projectRoot } = args;// Create the standard logger wrapperconst logWrapper = createLogWrapper(log);@@ -60,20 +60,15 @@ export async function updateTasksDirect(args, log, context = {}) {};}- // Resolve tasks file path- const tasksFile = fileArg- ? path.resolve(projectRoot, fileArg)- : path.resolve(projectRoot, 'tasks', 'tasks.json');-logWrapper.info(- `Updating tasks via direct function. From: ${from}, Research: ${research}, File: ${tasksFile}, ProjectRoot: ${projectRoot}`+ `Updating tasks via direct function. From: ${from}, Research: ${research}, File: ${tasksJsonPath}, ProjectRoot: ${projectRoot}`);enableSilentMode(); // Enable silent modetry {// Call the core updateTasks functionconst result = await updateTasks(- tasksFile,+ tasksJsonPath,from,prompt,research,@@ -93,7 +88,7 @@ export async function updateTasksDirect(args, log, context = {}) {success: true,data: {message: `Successfully updated ${result.updatedTasks.length} tasks.`,- tasksFile,+ tasksPath: tasksJsonPath,updatedCount: result.updatedTasks.length,telemetryData: result.telemetryData}