
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 toolsPublic 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
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