技能潮 SkillTide 提交收录
官方说明7 个来源MCP 服务8 天前
pzalutski-pixel/javalens-mcp

pzalutski-pixel/javalens-mcp

☕ 🏠 - Semantic Java analysis via Eclipse JDT: compiler-accurate navigation, refactoring, find references,…
在 GitHub 查看 ↗直链 · 无中转页
官方说明☕ 🏠 - Semantic Java analysis via Eclipse JDT: compiler-accurate navigation, refactoring, find references, call hierarchy and code metrics.
配置模板(请按你的客户端调整)
claude mcp add javalens-mcp -- npx -y javalens-mcp
这是根据仓库名生成的可粘贴骨架,命令行参数与包名请以该项目 README 为准。
★ 数取值
43 ★ · pzalutski-pixel/javalens-mcp · 取自该仓库的 GitHub 页面 · (2026-10-16 20:00:20 核对)
来源明细
收录自 punkpeye/awesome-mcp-servers 榜单(我们从中收集的条目之一) · 条目类型:MCP 服务
收录与活跃
收录于 2026-10-09 · 最近见到 2026-10-16 · 共见到 32 次 · 被 7 个来源列出
评分构成
综合分 703 · 43 ★ · 7 个来源 · mcp
常见问题(答案都来自我们的记录)
怎么安装?
我们【没有】从该仓库取到安装命令(我们的 install 覆盖率只有约 4%)。请看它的 README 或 releases 页。
它适合谁 / 用来做什么?
我们把它归在这些标签下: MCP 服务。标签来自条目自身,不是我们强加的分类。
谁维护它、还在更新吗?
仓库 pzalutski-pixel/javalens-mcp;我们收录于 2026-10-09;最近见到 2026-10-16。这里没有"官方认证"或"质量评级"——我们只记录来源与时间。
第三方质量标记

JavaLens: AI-First Code Analysis for Java

以下摘录自该仓库的 README(片段) · 在 GitHub 读完整 README →

An MCP server providing 75 semantic analysis tools for Java, built directly on Eclipse JDT for compiler-accurate code understanding.
Built for AI Agents
JavaLens exists because **AI systems need compiler-accurate insights that reading source files cannot provide**. When an AI uses grep or Read to find usages of a method, it cannot distinguish:
- A method call from a method with the same name in an unrelated class
- A field read from a field write
- An interface implementation from an unrelated class
- A cast to a type from other references to that type
This leads to incorrect refactorings, missed usages, and incomplete understanding of code behavior.
Compiler-Accurate Analysis
JavaLens provides **compiler-accurate code analysis** through Eclipse JDT—the same engine that powers Eclipse IDE. Unlike text search, JDT understands:
- Type resolution across inheritance hierarchies
- Method overloading and overriding
- Generic type arguments
- Import resolution and classpath dependencies
- Java source from version 1.1 through **Java 25** (markdown Javadoc, module imports, compact source files, flexible constructor bodies)
- **Lombok**-generated members — a bundled agent makes @Data accessors and the like resolve, so code using them is not flagged as undefined
**Example:** Finding all places where UserService.save() is called:
| Approach | Result |
|----------|--------|
| grep "save(" | Returns 47 matches including orderService.save(), saveButton, comments |
| find_references | Returns exactly 12 calls to UserService.save() |
AI Training Bias Warning
> ⚠️ **Important for AI developers and users**
AI models may exhibit **trained bias toward native tools** (Grep, Read, LSP) over MCP server tools, even when semantic analysis provides better results. This happens because:
1. Training data contains extensive grep/text-search patterns
2. Native tools are "always available" in the model's experience
3. The model may not recognize when semantic analysis is superior
**To get the best results:**
Add guidance to your project instructions or system prompt (e.g., CLAUDE.md for Claude Code):
What is JavaLens?
JavaLens is an MCP server that gives AI assistants deep understanding of Java codebases. It provides semantic analysis, navigation, refactoring, and code intelligence tools that go beyond simple text search.
Why Not LSP?
Language Server Protocol was designed for IDE autocomplete and basic navigation—not for AI agent workflows that require deep semantic analysis.
| Capability | Native LSP | JavaLens |
|------------|------------|----------|
| Find all @Annotation usages | ❌ | ✅ |
| Find all new Type() instantiations | ❌ | ✅ |
| Find all casts to a type | ❌ | ✅ |
| Distinguish field reads from writes | ❌ | ✅ |
| Detect circular package dependencies | ❌ | ✅ |
| Calculate cyclomatic complexity | ❌ | ✅ |
| Find unused private methods | ❌ | ✅ |
| Detect possible null pointer bugs | ❌ | ✅ |
| Project-wide dead-code reachability from entry points | ❌ | ✅ |
| Find the tests that exercise a symbol, transitively | ❌ | ✅ |
JavaLens wraps **Eclipse JDT Core** directly via OSGi, providing:
- **Fine-grained reference types**: Find specifically casts, annotations, throws clauses, catch blocks, instanceof checks, method references, type arguments
来源
awesome · https://github.com/pzalutski-pixel/javalens-mcp
按领域浏览
MCP 服务
Traction
43 ★
收录于
昨天

更多MCP 服务

查看MCP 服务全部 5,525 条 →

所属领域与标签

每个标签都能点进去看同类的全部条目。数字是当前库里的真实条数。

浏览全部领域 →

← 返回索引