JavaLens

•
50
•

Provides compiler-accurate semantic Java code analysis, navigation, and refactoring capabilities specifically designed for AI agents.

JavaLens is an MCP server that empowers AI assistants with a deep, compiler-accurate understanding of Java codebases. Unlike traditional text-based searches, JavaLens leverages the Eclipse JDT engine to resolve complex language constructs, ensuring precise insights into type resolution, method overloading, generics, and dependencies. It offers a comprehensive suite of 56 tools for navigation, refactoring, search, and metrics, enabling AI agents to perform highly accurate modifications, discover code patterns, and understand code behavior with the same fidelity as a human developer using an advanced IDE. This precision helps AI agents avoid common pitfalls like incorrect refactorings or incomplete code understanding, which can arise from relying solely on text search or basic LSP capabilities.

主要功能

01Compiler-accurate semantic analysis built on Eclipse JDT Core.
02Offers 56 specialized tools for code navigation, refactoring, and metrics.
03Refactoring tools return text edits for precise, controlled code modifications.
04Distinguishes fine-grained reference types, including casts, annotations, and instantiations.
05Provides read vs. write access distinction for fields.
060 GitHub stars

使用案例

01Enabling AI agents to perform complex and accurate Java code refactorings.
02Assisting AI agents in precise code navigation, symbol lookup, and dependency analysis.
03Providing deep code intelligence for AI-driven code generation and understanding.