fix MCP - remove yes flag

This commit is contained in:
Joe Danziger
2025-05-09 14:57:43 -04:00
parent d48a3d3edc
commit 143bf8e38e
2 changed files with 20 additions and 3 deletions

View File

@@ -39,9 +39,7 @@ export async function rulesDirect(args, log, context = {}) {
};
}
const rulesList = rules.join(',');
const yesFlag = yes !== false ? '--yes' : '';
const cmd =
`npx task-master rules ${action} ${rulesList} ${yesFlag}`.trim();
const cmd = `npx task-master rules ${action} ${rulesList}`.trim();
log.info(`[rulesDirect] Running: ${cmd} in ${projectRoot}`);
const output = execSync(cmd, { cwd: projectRoot, encoding: 'utf8' });
log.info(`[rulesDirect] Output: ${output}`);