-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Description
Summary
The MCP server fails with "tasksJsonPath is required" error when only projectRoot is provided, even though the file parameter is documented as optional and should be automatically derived.
Version
- task-master-ai: 0.27.3
- Installation: Global via npm
Expected Behavior
When calling MCP tools without the file parameter, the server should automatically construct the path as ${projectRoot}/.taskmaster/tasks/tasks.json.
Actual Behavior
The server immediately returns an error before attempting to derive the path:
Error: tasksJsonPath is required
Version: 0.27.3
Name: task-master-ai
Current Tag: master
Reproduction
Failing call:
{
"projectRoot": "/Users/username/project",
"withSubtasks": true
}
// Error: tasksJsonPath is requiredWorkaround (works):
{
"projectRoot": "/Users/username/project",
"file": ".taskmaster/tasks/tasks.json",
"withSubtasks": true
}
// SuccessRoot Cause
In the compiled mcp-server.js, the direct functions validate tasksJsonPath before the tool layer calls the path resolution function.
Affected Tools
All MCP tools: get_tasks, get_task, next_task, set_task_status, expand_task, add_task, update_task, update_subtask, remove_task, and many more.
Suggested Fix
The tool execute functions should call the path resolution function BEFORE calling the direct functions.
Impact
- Severity: High - Breaks all MCP tool calls without explicit
fileparameter - Workaround: Always provide the
fileparameter explicitly
Environment
- OS: macOS (darwin)
- Installation:
npm install -g task-master-ai
Metadata
Metadata
Assignees
Labels
Projects
Status