j0hanz avatar

Code Lens

j0hanz/code-lens

Connects Claude to Google Gemini's code analysis capabilities over stdio, exposing 13 tools for PR review, code smell detection, and documentation generation. You get diff assessment with breaking change detection, file-level refactoring suggestions, and logic verification using Gemini's execution sandbox. All responses return structured JSON validated through Zod schemas. Task lifecycle support lets you poll, cancel, and track progress on long-running operations. Includes web search with Google Search Grounding for pulling in current documentation. Requires a Gemini API key and runs via npx or Docker. Good fit when you want Gemini's code understanding inside your MCP workflow without leaving your editor.

tools
13
transport
STDIO
last updated
Mar 9, 2026

Tools

13 tools

Public tool metadata for what this MCP can expose to an agent.

generate_diffCapture git diff (unstaged/staged) and cache server-side

Capture git diff (unstaged/staged) and cache server-side

No parameter schema in public metadata yet.

analyze_pr_impactAssess severity, categories, breaking changes, rollback complexity

Assess severity, categories, breaking changes, rollback complexity

No parameter schema in public metadata yet.

generate_review_summaryPR summary, risk rating, merge recommendation

PR summary, risk rating, merge recommendation

No parameter schema in public metadata yet.

generate_test_planPrioritized test cases and coverage guidance

Prioritized test cases and coverage guidance

No parameter schema in public metadata yet.

analyze_time_space_complexityBig-O complexity analysis and degradation detection

Big-O complexity analysis and degradation detection

No parameter schema in public metadata yet.

detect_api_breaking_changesDetect breaking API/interface changes

Detect breaking API/interface changes

No parameter schema in public metadata yet.

load_fileCache a source file for analysis tools

Cache a source file for analysis tools

No parameter schema in public metadata yet.

refactor_codeComplexity, duplication, naming, grouping suggestions

Complexity, duplication, naming, grouping suggestions

No parameter schema in public metadata yet.

detect_code_smellsStructural code smells (Fowler taxonomy)

Structural code smells (Fowler taxonomy)

No parameter schema in public metadata yet.

generate_documentationJSDoc/TSDoc/docstring stubs for public exports

JSDoc/TSDoc/docstring stubs for public exports

No parameter schema in public metadata yet.

ask_about_codeNatural-language Q&A about a cached file

Natural-language Q&A about a cached file

No parameter schema in public metadata yet.

verify_logicVerify algorithms via Gemini code execution sandbox

Verify algorithms via Gemini code execution sandbox

No parameter schema in public metadata yet.

web_searchGoogle Search with Grounding

Google Search with Grounding

No parameter schema in public metadata yet.

Sponsors

Readme

Code Lens MCP Server

npm version License: MIT


View the full README on GitHub

Details

Repository
github.com/j0hanz/code-lens
Website
github.com/j0hanz/code-lens#readme
Category
AI & LLM Tools
Package
@j0hanz/code-lens-mcp
Transport
STDIO
Registry
MCP registry, active

More from j0hanz

Related AI & LLM Tools MCP servers

View all
1jdkabattles avatarForgingStack Quorumjdkabattles/forgingstack-quorumBefore an agent acts alone, get the quorum. One proposal, N approvals, one receipt.0stars
2jdkabattles avatarForgingStack Watchtowerjdkabattles/forgingstack-watchtowerAn agent that stops checking in is an agent you hear about.0stars
3jessepetersondev avatarConsentgate Mcpjessepetersondev/consentgate-mcpGate AI agent actions behind a consent policy with human approval via Telegram. Fail-closed.0stars
4jlmoreno00 avatarCodex Imagesjlmoreno00/codex-images-mcpGenerate and edit images with gpt-image-2, including masks and transparency.0stars
5juanjaragavi avatarDevSpeakio.github.juanjaragavi/devspeakImprove or correct developer writing, or turn rough notes into technical specs, from your agent.0stars
6just-fix avatarJustFix Estimatorjust-fix/justfix-skillQuote UK trades jobs from any AI agent. Price breakdown + tappable booking link.0stars