
Code Review Analyst
io.github.j0hanzPublished by GitHub account j0hanzv1.7.6Updated Oct 24, 2026
Gemini-powered MCP server for code review analysis.
The publisher's own server: Review Expert
Overview
A local MCP server that uses Google Gemini to review code diffs, analyze source files, and generate documentation.
- What you can do
- Capture git diffs and run PR impact, risk, test-plan, Big-O and breaking-change reviews on them. Load a source file and get refactoring, code-smell, documentation and Q&A analysis. Verify algorithm logic through Gemini's code execution sandbox. Search the web with Google Search grounding for current references. Read cached diffs and files plus server guides as MCP resources and prompts.
- When to use it
- Useful when you want an assistant to review pull requests or diffs, audit a single file for smells and refactoring, or draft documentation without leaving the chat client. Best for developers already using Gemini and a stdio-capable MCP client.
- Requirements
- Runs locally over stdio via npx or Docker. Needs Node.js 24 or newer and a Gemini API key supplied as GEMINI_API_KEY (or GOOGLE_API_KEY). Network access to Google Gemini and Google Search is required.
Installation
In SourceWeft
- Open Code Review Analyst in the dashboard and add it to a workspace.
- Enable the server for the chats that should use its tools.
Desktop only via STDIO. STDIO servers start a local process, so they need the SourceWeft desktop host.
Other MCP clients
Follow the launch instructions in the repository.
README
Code Lens MCP Server
[Install in VS Code] [Install in VS Code Insiders] [Install in Visual Studio]
[Add to LM Studio] [Install in Cursor] [Install in Goose]
Gemini-powered MCP server for automated code review, analysis, and documentation.
Overview
Code Lens is a Model Context Protocol server that uses Google Gemini to analyze diffs, review pull requests, detect code smells, generate documentation, and verify logic. It exposes 13 tools, 7 resources, and 5 prompts over stdio transport.
Key Features
- PR review pipeline — generate diffs, assess impact, detect breaking API changes, and produce review summaries with merge recommendations
- File analysis — load any source file for refactoring suggestions, code smell detection, documentation generation, and natural-language Q&A
- Logic verification — verify algorithms using Gemini's code execution sandbox
- Structured outputs — all tools return validated JSON via Zod v4 output schemas
- Web search — Google Search with Grounding for up-to-date information retrieval
- Task lifecycle support — every tool except
load_filecan run via MCP tasks with polling, cancellation, and progress updates
Requirements
- Node.js >= 24
- A Gemini API key (
GEMINI_API_KEYorGOOGLE_API_KEY)
Quick Start
Docker
Or with Docker Compose:
Client Configuration
Install in VS Code
Add to .vscode/mcp.json:
Or install via CLI:
For more info, see VS Code MCP docs.
Install in VS Code Insiders
Add to .vscode/mcp.json:
Or install via CLI:
For more info, see VS Code Insiders MCP docs.
Install in Claude Desktop
Add to claude_desktop_config.json:
For more info, see Claude Desktop MCP docs.
Install in Windsurf
Add to ~/.codeium/windsurf/mcp_config.json:
For more info, see Windsurf MCP docs.
Install in Warp
For more info, see Warp MCP docs.
Install in Augment
Add to your VS Code settings.json under augment.advanced:
For more info, see Augment MCP docs.
Install in Roo Code
For more info, see Roo Code MCP docs.
Install in Kilo Code
For more info, see Kilo Code MCP docs.
Use Cases
PR Review Pipeline
- Call
generate_diffto capture unstaged or staged changes - Run
analyze_pr_impactto assess severity and breaking changes - Run
generate_review_summaryfor a risk rating and merge recommendation - Run
detect_api_breaking_changesto check for public API breakage - Run
generate_test_planto produce prioritized test cases
Single-File Analysis
- Call
load_fileto cache a source file - Run
refactor_codefor structural improvement suggestions - Run
detect_code_smellsfor Fowler-taxonomy anti-patterns - Run
generate_documentationto generate JSDoc/TSDoc stubs - Use
ask_about_codefor natural-language Q&A about the file - Use
verify_logicto verify algorithms with code execution
Performance Audit
- Call
generate_diffon a performance-sensitive change - Run
analyze_time_space_complexityto detect Big-O degradation
Research
- Use
web_searchfor up-to-date documentation or API references via Google Search with Grounding
Architecture
Request Lifecycle
Task Lifecycle
generate_diffandload_fileare sync-only. All other tools advertisetaskSupport: optional.- Requestors may supply a task TTL. The server uses that value up to
MAX_TASK_TTL_MS, or falls back toTASK_TTL_MSwhen omitted. - Cancelled tasks remain terminal as
cancelled, andtasks/resultreturns a cancellation-shaped tool result.
MCP Surface
Tools
Resources
Prompts
MCP Capabilities
Tool Annotations
All tools expose MCP tool annotations:
Structured Output
All Gemini-powered tools return validated structuredContent alongside text content, using Zod v4 output schemas.
Configuration
CLI Flags
Security
Development
Build and Release
- CI:
.github/workflows/release.yml - Docker: Multi-stage build (
Dockerfile) withnode:24-alpine - Docker Compose:
docker-compose.yml - npm: Published as
@j0hanz/code-lens-mcp
Troubleshooting
- Missing API key: Set
GEMINI_API_KEYorGOOGLE_API_KEYin your environment or client configenvblock. - "E_NO_DIFF" errors: Call
generate_diffbefore running any diff-based review tool. - "E_NO_FILE" errors: Call
load_filebefore running any file analysis tool. - Large diffs truncated: Increase
MAX_DIFF_CHARS(default: 120,000 characters). - Stdout noise: Ensure no other processes write to stdout; the server uses stdio transport.
Credits
- Google Gemini — LLM backend (
@google/genai) - Model Context Protocol SDK — MCP framework (
@modelcontextprotocol/sdk) - Zod — Schema validation (
zodv4) - parse-diff — Diff parsing
Contributing and License
MIT License. See LICENSE for details.
Contributions welcome via pull requests.
Source: README.md at commit 576b329
Tools
0Version history
1- v1.7.6LatestSep 16, 2026
Score
40% of the applicable checks met
How complete this listing is, computed from the registry entry, the endpoint and public sources. Not a rating of the server and not a statement that it is safe or working today: reachability is a dated check, and no installs or reviews go into the score.
- Reached in the last 30 days25 pts
Keep the endpoint answering the MCP handshake; SourceWeft probes it every 30 days.
- Auth declared10 pts
Declare the credential headers in the registry entry, or keep the endpoint answering the probe so its auth can be classified.
- Tools listed15 pts
Answer tools/list without a credential, or ship a package that starts in a sandbox without one.
- DescriptionRequired15 pts
- Logo10 pts
- Documentation15 pts
- License10 pts
Declare a license in the repository or the registry entry.
Other Review integrations

Review Expert
expert.reviewOfficial publisher
Lets an assistant read, search, analyze and draft replies to App Store and Google Play reviews, with OAuth sign-in.

DECIDE: Migration Discovery Risk Review
Published by GitHub account stratus-consulting
A remote risk-review service that takes a migration's discovery findings and returns open risks, highest severity first, each with who to ask next.

Arch theological review
Published by GitHub account tnvolman
Cursor/Grok plugin giving an assistant a paid Arch theological review of faith text and a free offline King James verse lookup.

ReviewBot App Reviews
Published by GitHub account fahimk
Read collected App Store and Google Play reviews and bounded feedback statistics.

Khavion Architecture Review
com.khavion
Local MCP server that gives an assistant cited cloud best-practice quotes and a deterministic rules-based review of Terraform, CloudFormation and Kubernetes…