Fix: MCP log errors (#648)

This commit is contained in:
Ralph Khreish
2025-06-03 01:09:29 +02:00
committed by GitHub
parent ad612763ff
commit 9b4168bb4e
24 changed files with 226 additions and 218 deletions

View File

@@ -253,8 +253,7 @@ describe('MCP Server Direct Functions', () => {
error: {
code: 'FILE_NOT_FOUND_ERROR',
message: 'Tasks file not found'
},
fromCache: false
}
};
}
@@ -288,8 +287,7 @@ describe('MCP Server Direct Functions', () => {
.length,
pending: tasksData.filter((t) => t.status === 'pending').length
}
},
fromCache: false
}
};
}
@@ -305,8 +303,7 @@ describe('MCP Server Direct Functions', () => {
total: tasksData.length,
filtered: filteredTasks.length
}
},
fromCache: false
}
};
}
@@ -320,8 +317,7 @@ describe('MCP Server Direct Functions', () => {
stats: {
total: tasksData.length
}
},
fromCache: false
}
};
}
@@ -441,8 +437,7 @@ describe('MCP Server Direct Functions', () => {
error: {
code: 'INPUT_VALIDATION_ERROR',
message: 'Task ID is required'
},
fromCache: false
}
};
}
@@ -454,8 +449,7 @@ describe('MCP Server Direct Functions', () => {
error: {
code: 'TASK_NOT_FOUND',
message: `Task with ID ${args.id} not found`
},
fromCache: false
}
};
}
@@ -469,8 +463,7 @@ describe('MCP Server Direct Functions', () => {
error: {
code: 'TASK_COMPLETED',
message: `Task ${args.id} is already marked as done and cannot be expanded`
},
fromCache: false
}
};
}
@@ -495,8 +488,7 @@ describe('MCP Server Direct Functions', () => {
task: expandedTask,
subtasksAdded: expandedTask.subtasks.length,
hasExistingSubtasks: false
},
fromCache: false
}
};
}