概要
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.