@moikas/code-audit-mcp
Version:
AI-powered code auditing via MCP using local Ollama models for security, performance, and quality analysis
28 lines (22 loc) • 600 B
JavaScript
/* eslint-env node */
/**
* Code Audit MCP CLI Entry Point
* Global command: code-audit
*/
import { fileURLToPath } from 'url';
import { dirname, join } from 'path';
const __filename = fileURLToPath(import.meta.url);
const __dirname = dirname(__filename);
// Import and run the compiled CLI
async function main() {
try {
const cliPath = join(__dirname, '../dist/src/cli/index.js');
const { cli } = await import(cliPath);
await cli();
} catch (error) {
console.error('Failed to start Code Audit CLI:', error.message);
process.exit(1);
}
}
main();