ndlovu-code-reviewer is an MCP server that provides AI-powered static analysis and code review for local, uncommitted changes. Built using the Model Context Protocol TypeScript SDK, it connects directly to MCP clients over standard I/O and bridges your local Git workspace with the Google Gemini CLI. Software developers working in JavaScript, TypeScript, and Vue projects use this server to automate the pre-commit review process without relying on expensive SaaS tools. The server gathers diffs from modified or staged files using git diff and runs available linters such as ESLint, JSHint, or the TypeScript compiler. It bundles these static analysis findings with the Git context and forwards them safely to the Gemini CLI. The output is parsed and returned to the MCP client as a structured JSON object containing an executive summary, overall assessment, and line-specific findings with severity levels, explanations, and actionable code suggestions.
Category: Developer Tools & Code Intelligence
Tags: code-review, javascript, linting, static analysis, typescript
bash git clone https://github.com/shaunie2fly/ndlovu-code-reviewer.git cd ndlovu-code-reviewer npm install npm run build 2. Ensure Node.js 18+, Git, and an authenticated Google Gemini CLI (gemini) are installed. 3. Open your MCP client configuration (e.g., Claude Code configuration via Claude: Edit Config File in VS Code). 4. Add ndlovu-code-reviewer under mcpServers: json { "mcpServers": { "ndlovu-code-reviewer": { "command": "node", "args": ["/absolute/path/to/ndlovu-code-reviewer/dist/index.js"], "cwd": "/absolute/path/to/ndlovu-code-reviewer" } } } 5. Restart your client and invoke the review-local-changes tool.Part of MCP Servers
Clone the repository from GitHub, run npm install, and run npm run build. Ensure you have Node.js 18 or later, Git, and an authenticated Gemini CLI installed. Then register the compiled dist/index.js path under your MCP client's configuration file.
It provides a tool called review-local-changes that scans uncommitted changes in JS, TS, and Vue files. It executes local linters including ESLint, JSHint, or TypeScript, passes the diffs and linter reports to the Gemini CLI, and outputs structured review assessments.
It connects over standard I/O and works with Claude Code, Gemini CLI, Roo Code, Codex CLI, and any other desktop or terminal client supporting the Model Context Protocol specification.
The server currently targets JavaScript, TypeScript, and Vue applications using file extensions such as .js, .ts, .tsx, and .vue. Linting falls back across ESLint, JSHint, and the TypeScript compiler depending on what is installed.
Yes, ndlovu-code-reviewer is an open-source project distributed under the ISC License. Source code, documentation, and contribution guidelines are publicly available on GitHub.