fix: addTask mcp tool (#50)

This commit is contained in:
Ralph Khreish
2025-03-29 17:16:41 +01:00
committed by GitHub
parent b8b1faf1f0
commit abab50d2ee
2 changed files with 7 additions and 0 deletions

View File

@@ -0,0 +1,5 @@
---
"task-master-ai": patch
---
Fix addTask tool `projectRoot not defined`

View File

@@ -45,6 +45,8 @@ export function registerAddTaskTool(server) {
if (args.priority) cmdArgs.push(`--priority=${args.priority}`);
if (args.file) cmdArgs.push(`--file=${args.file}`);
const projectRoot = args.projectRoot;
const result = executeTaskMasterCommand(
"add-task",
log,