Compare commits

..

3 Commits

Author SHA1 Message Date
Ralph Khreish
4f4b91900e chore: implement coderabbit suggestions 2025-07-17 22:28:45 +03:00
Ralph Khreish
2718c7ad5f chore: run format 2025-07-17 21:21:05 +03:00
Ralph Khreish
5713bb17cf fix(ai-validation): comprehensive fixes for AI response validation issues
- Fix update command validation when AI omits subtasks/status/dependencies
  - Fix add-task command when AI returns non-string details field
  - Fix update-task command when AI subtasks miss required fields
  - Add preprocessing to ensure proper field types before validation
  - Prevent split() errors on non-string fields
  - Set proper defaults for missing required fields
2025-07-17 21:11:56 +03:00
2 changed files with 4 additions and 5 deletions

View File

@@ -1,5 +0,0 @@
---
"task-master-ai": patch
---
Fix MCP server error when retrieving tools and resources

View File

@@ -32,6 +32,10 @@ class TaskMasterMCPServer {
this.server = new FastMCP(this.options);
this.initialized = false;
this.server.addResource({});
this.server.addResourceTemplate({});
// Bind methods
this.init = this.init.bind(this);
this.start = this.start.bind(this);