The AI Quality Gate MCP server automates AI code quality checks by utilizing ESLint and Prettier for initial fixes and optionally integrates with SonarQube for deeper analysis.
From the registry: 🚀 Kill the Junior AI Era. 🤖 Level up AI code to automatically Principal standards. 🛡️ Quality Gate ✨
Please install the `ai-quality-gate` MCP server into my current AI client (that's you).
Required prerequisites (do these first if not already done):
- **Node.js 18+** — Required to run the server.
Canonical MCP server config (stdio transport):
- command: `npx`
- args: ["-y","ai-quality-gate"]
- optional environment variables:
- `QUALITY_GATE_CONFIG`: Absolute path to a .quality-gate.yaml or .quality-gate.json file. (example: `/app/ci/quality-gate.yaml`)
- `PROJECT_ROOT`: Override detected project root. (example: `/Users/me/my-repo`)
- `SONAR_HOST_URL`: SonarQube server URL (Phase 2). (example: `http://localhost:9000`)
- `SONAR_TOKEN`: SonarQube token (Phase 2). (example: `<sonar_token>`)
- `SONAR_PROJECT_KEY`: SonarQube project key (Phase 2). (example: `my-project`)
- `SONAR_SCANNER_PATH`: Path to sonar-scanner executable if not on PATH. (example: `/opt/sonar-scanner/bin/sonar-scanner`)
- `PHASE1_TIMEOUT`: Phase 1 timeout in ms. (example: `30000`)
- `PHASE2_TIMEOUT`: Phase 2 (Sonar) timeout in ms. (example: `300000`)
- `ENABLE_I18N_RULES`: Enable stricter JSX literal checks for i18n projects. (example: `false`)
Note: Phase 1 (ESLint + Prettier) runs always; Phase 2 (SonarQube) optional, requires all three SONAR_* env vars together.
Add this MCP server to my current client's config in the correct format for you. If you need secrets or credentials I haven't provided, ASK me — do not invent values or leave raw placeholders. After adding it, tell me how to verify the server is connected.SONAR_HOST_URLrequiredURL of the SonarQube server.SONAR_TOKENrequiredAuthentication token for SonarQube.SONAR_PROJECT_KEYrequiredUnique key for the SonarQube project.Real-time Kubernetes network traffic visibility and API analysis for HTTP, gRPC, Redis, Kafka, DNS.