๐ค AI code quality gate for AI-generated code. Detects hallucinated packages, phantom dependencies, stale APIs, and more. MCP Server + CLI + CI/CD Action.
Open Code Review is an MCP server that acts as a quality gate for AI-generated code. It scans codebases for hallucinated imports, stale APIs, over-eng...
434 const diffText = execSync(`git diff ${baseRef}...${headRef}`, {
435 cwd: projectRoot,
436 encoding: 'utf-8',
437 maxBuffer: 50 * 1024 * 1024, // 50MB
438 });// Local-only MCP, requires compromised LLM to exploit
1095 if (parsed.output && parsed.output !== 'prompts') {
1096 writeFileSync(parsed.output, reportMarkdown, 'utf-8');
1097 console.error(` Report written to: ${parsed.output}`);
1098 }// Local-only MCP, requires compromised LLM to exploit
499 if (parsed.output) {
500 writeFileSync(parsed.output, outputStr, 'utf-8');
501 console.error(`Report written to: ${parsed.output}`);
502 }// Local-only MCP, requires compromised LLM to exploit
736 if (output) {
737 writeFileSync(output, report, 'utf-8');
738 console.error(`Report written to: ${output}`);
739 }// Local-only MCP, requires compromised LLM to exploit
1103 const sarifDir = parsed.output ? resolve(parsed.output, '..') : projectRoot;
1104 const sarifPath = resolve(sarifDir, 'ocr-heal-report.sarif.json');
1105 try {
1106 writeFileSync(sarifPath, reporter.generateSARIF(healReport, aggregate), 'utf-8');
1107 console.error(` SARIF report: ${sarifPath}`);
1108 } catch {
1109 // Ignore SARIF write errors
1110 }// Local-only MCP, requires compromised LLM to exploit
745 const healPath = output ? output.replace(/\.\w+$/, '.heal.md') : 'ai-heal-prompt.md';
746 writeFileSync(healPath, prompt, 'utf-8');
747 console.error(`AI heal prompt written to: ${healPath}`);// Local-only MCP, requires compromised LLM to exploit
343 const scanPath = parsed.paths[0] ?? '.';
344 const projectRoot = resolve(scanPath);685 for (const p of paths) {
686 try {
687 if (existsSync(p) && statSync(p).isDirectory()) {
688 expandedPaths.push(
689 `${p}/**/*.ts`, `${p}/**/*.js`,
690 `${p}/**/*.tsx`, `${p}/**/*.jsx`,
691 );
692 } else {
693 expandedPaths.push(p);
694 }
695 } catch {
696 expandedPaths.push(p);
697 }
698 }// Local-only MCP, requires compromised LLM to exploit
1013 for (const p of parsed.paths) {
1014 expandedPaths.push(`${p}/**/*.ts`, `${p}/**/*.js`, `${p}/**/*.tsx`, `${p}/**/*.jsx`,
1015 `${p}/**/*.py`, `${p}/**/*.java`, `${p}/**/*.go`, `${p}/**/*.kt`);
1016 }// Local-only MCP, requires compromised LLM to exploit
968 const configManager = new ConfigManager();
969 configManager.set('apiKey', value);
970 console.log('โ API key saved');// Local-only MCP, requires compromised LLM to exploit
843 LicenseValidator.saveLicenseKey(trimmedKey);// Local-only MCP, requires compromised LLM to exploit