fix: fixed mcp server project root input

This commit is contained in:
Shrey Paharia
2025-05-07 23:00:42 +05:30
parent 126abb9631
commit d7ebfe30fc
4 changed files with 4 additions and 4 deletions

View File

@@ -36,7 +36,7 @@ export async function listTasksDirect(args, log) {
// Use the explicit tasksJsonPath for cache key
const statusFilter = status || 'all';
const withSubtasksFilter = withSubtasks || false;
const cacheKey = `listTasks:${tasksJsonPath}:${statusFilter}:${withSubtasksFilter}`;
const cacheKey = `listTasks:${tasksJsonPath}:${reportPath}:${statusFilter}:${withSubtasksFilter}`;
// Define the action function to be executed on cache miss
const coreListTasksAction = async () => {

View File

@@ -94,7 +94,7 @@ export function registerShowTaskTool(server) {
let complexityReportPath;
try {
complexityReportPath = findComplexityReportPath(
rootFolder,
projectRoot,
args.complexityReport,
log
);

View File

@@ -73,7 +73,7 @@ export function registerListTasksTool(server) {
let complexityReportPath;
try {
complexityReportPath = findComplexityReportPath(
rootFolder,
args.projectRoot,
args.complexityReport,
log
);

View File

@@ -58,7 +58,7 @@ export function registerNextTaskTool(server) {
let complexityReportPath;
try {
complexityReportPath = findComplexityReportPath(
rootFolder,
args.projectRoot,
args.complexityReport,
log
);