GitHub
server ทางการของ GitHub ให้ AI อ่านและจัดการโค้ด issue และ pull request ในบัญชีของคุณได้ ใช้ผ่านคลาวด์ของ GitHub หรือรันในเครื่องด้วย Docker ก็ได้
คำอธิบายจากผู้ทำ (ภาษาอังกฤษตามต้นฉบับ)
75 semantic Java analysis tools via Eclipse JDT: navigation, refactoring, code intelligence.
สามเรื่องนี้ไม่รวมเป็นคะแนนเดียว เพราะความเห็น การวัด และความนิยม เป็นคนละเรื่องกัน
ตัวนี้ยังไม่ได้เรียบเรียงเป็นภาษาไทย ด้านล่างคือข้อเท็จจริงที่เราอ่านจาก registry
เลือกโปรแกรม AI ที่คุณใช้ แล้วคัดลอกค่าตั้งไปวาง
JAVA_PROJECT_PATH, JAVALENS_TIMEOUT_SECONDS, JAVALENS_LOG_LEVELต้องเตรียมก่อน
คุณใช้แอปไหน
เลือกแอปด้านบน เราจำไว้ให้ ครั้งหน้าปุ่มจะขึ้นว่า “ติดตั้งลง …”
เปิด Claude Desktop → Settings → Developer → Edit Config แล้ววางค่านี้ในไฟล์ claude_desktop_config.json
{
"mcpServers": {
"javalens": {
"command": "npx",
"args": [
"-y",
"javalens-mcp"
],
"env": {
"JAVA_PROJECT_PATH": "ใส่ค่าของคุณ",
"JAVALENS_TIMEOUT_SECONDS": "ใส่ค่าของคุณ",
"JAVALENS_LOG_LEVEL": "ใส่ค่าของคุณ"
}
}
}
}พิมพ์คำสั่งนี้ใน Terminal
claude mcp add javalens --env JAVA_PROJECT_PATH='ใส่ค่าของคุณ' --env JAVALENS_TIMEOUT_SECONDS='ใส่ค่าของคุณ' --env JAVALENS_LOG_LEVEL='ใส่ค่าของคุณ' -- npx -y javalens-mcpเติมค่าที่เว้นว่างไว้ก่อนรัน
วางในไฟล์ .cursor/mcp.json ของโปรเจกต์ หรือ ~/.cursor/mcp.json
{
"mcpServers": {
"javalens": {
"command": "npx",
"args": [
"-y",
"javalens-mcp"
],
"env": {
"JAVA_PROJECT_PATH": "ใส่ค่าของคุณ",
"JAVALENS_TIMEOUT_SECONDS": "ใส่ค่าของคุณ",
"JAVALENS_LOG_LEVEL": "ใส่ค่าของคุณ"
}
}
}
}เบราว์เซอร์จะถามก่อนเปิดแอป จากนั้นแอปแสดงค่าตั้งให้ตรวจแล้วกดยืนยัน ช่อง key เว้นว่างไว้ให้คุณใส่เอง
วางในไฟล์ .vscode/mcp.json ของโปรเจกต์
{
"servers": {
"javalens": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"javalens-mcp"
],
"env": {
"JAVA_PROJECT_PATH": "ใส่ค่าของคุณ",
"JAVALENS_TIMEOUT_SECONDS": "ใส่ค่าของคุณ",
"JAVALENS_LOG_LEVEL": "ใส่ค่าของคุณ"
}
}
}
}เบราว์เซอร์จะถามก่อนเปิดแอป จากนั้นแอปแสดงค่าตั้งให้ตรวจแล้วกดยืนยัน ช่อง key เว้นว่างไว้ให้คุณใส่เอง
ตัวนี้รันในเครื่องคุณ แต่ ChatGPT ต่อได้เฉพาะ server บนอินเทอร์เน็ต ลองเลือกแอปอื่น
ตัวเลือกเก็บในคุกกี้บนเครื่องนี้ ไม่ต้องมีบัญชี
JAVA_PROJECT_PATH envJAVALENS_TIMEOUT_SECONDS envJAVALENS_LOG_LEVEL envค่าตั้งนี้สร้างจากข้อมูลใน registry ของผู้ทำ ถ้าไม่ตรงกับ README ให้เชื่อ README
รันในเครื่องคุณ รายการเครื่องมือจะขึ้นในแอป AI หลังติดตั้ง
เราตรวจจากข้อมูลที่ใครก็เปิดดูได้ ยังไม่ได้อ่านโค้ด ข้อที่ไม่เกี่ยวกับตัวนี้ไม่นับในตัวหาร · ตรวจเมื่อ 8 พ.ย. 2569
ชื่อใน registry ยืนยันด้วยบัญชี GitHub pzalutski-pixel ซึ่งเป็นเจ้าของ repo
ยังไม่ได้อ่านข้อมูล repo จาก GitHub
ยังไม่ได้อ่านข้อมูล repo จาก GitHub
ตัวนี้รันบนเครื่องคุณ ไม่มี endpoint บนอินเทอร์เน็ต
ตัวนี้รันบนเครื่อง ใช้ค่าที่ตั้งในเครื่องแทน
รันในเครื่องคุณ เราอ่านรายการเครื่องมือได้เฉพาะตัวที่มี endpoint บนอินเทอร์เน็ต
เทียบกับทุก server ที่ยังใช้งานในหมวดนี้ทั้งทะเบียน ดาวนับเฉพาะเมื่อผู้ลงทะเบียนเป็นเจ้าของ repo
จากการตรวจเบื้องต้นของเรา ผ่าน 1 จาก 1 ข้อที่ตรวจได้ เรายังไม่ได้อ่านโค้ด ก่อนใส่กุญแจหรือ token ให้ดูว่า server ขอสิทธิ์อะไร และเลือกกุญแจที่ทำได้เท่าที่จำเป็น
registry ไม่ได้ระบุว่าต้องใช้กุญแจ แต่บางตัวจะขอให้ล็อกอินตอนใช้ครั้งแรก
รันบนเครื่องของคุณ โปรแกรม AI จะเปิด server ขึ้นมาเองเมื่อใช้ ข้อมูลไม่ต้องผ่านเซิร์ฟเวอร์ของผู้ทำ (ยกเว้นตัวที่ไปเรียกบริการออนไลน์ต่อ)
repo บน GitHub มีการแก้โค้ดล่าสุด – และส่งรุ่นล่าสุด (1.5.3) เข้า registry 20 วันที่ผ่านมา
โปรแกรมที่รองรับ MCP เช่น Claude Desktop, Claude Code, Cursor และ VS Code ตัวนี้ต้องมี Node.js ในเครื่องด้วย
ในหมวดเดียวกันมี GitHub, Desktop Commander, Cloudflare MCP
server หมวดเดียวกันจากผู้ทำคนอื่น เรียงตามดาว
อ่านการ์ด:★ ดาว GitHubiสามเสา: รีวิว · ผลตรวจ · การใช้งานiอัปเดต = วันที่ส่งรุ่นล่าสุดเข้า registryi
server ทางการของ GitHub ให้ AI อ่านและจัดการโค้ด issue และ pull request ในบัญชีของคุณได้ ใช้ผ่านคลาวด์ของ GitHub หรือรันในเครื่องด้วย Docker ก็ได้
MCP server for terminal commands, file operations, and process management
Cloudflare MCP servers
ส่วนนี้คัดจาก repo ของผู้ทำตามต้นฉบับ PopNx MCP ไม่ได้ตรวจหรือรับรองเนื้อหา ตัด HTML รูปภาพ และสคริปต์ออกแล้ว ลิงก์จะพาออกนอกเว็บ
An MCP server providing 75 semantic analysis tools for Java, built directly on Eclipse JDT for compiler-accurate code understanding.
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:
This leads to incorrect refactorings, missed usages, and incomplete understanding of code behavior.
JavaLens provides compiler-accurate code analysis through Eclipse JDT—the same engine that powers Eclipse IDE. Unlike text search, JDT understands:
@Data accessors and the like resolve, so code using them is not flagged as undefinedExample: 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() |
⚠️ 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:
To get the best results:
Add guidance to your project instructions or system prompt (e.g., CLAUDE.md for Claude Code):
## Code Analysis Preferences
For Java code analysis, prefer JavaLens MCP tools over text search:
find_references instead of grep for finding usagesfind_implementations instead of text search for implementationsanalyze_type to understand a class before modifying itSemantic analysis from JDT is more accurate than text-based search, especially for overloaded methods, inheritance, and generic types.
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.
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:
JAVA_HOME) — required for both install paths.npx install path below. Skip if you use the direct-download path.JavaLens is an analytical server, not a compiler. It uses Eclipse JDT 2025-12 to parse and understand Java source code from version 1.1 through 25. Java 21 is required only as the server runtime.
This is the simplest path if you already have Java 21 and don't have Node.js. Download from Releases:
| Platform | File |
|---|---|
| All platforms | javalens.zip or javalens.tar.gz |
Extract to a location of your choice (e.g., /opt/javalens or C:\javalens). Then point your MCP client at the bundled jar — see Configure MCP Client below.
If you already have Node.js, npx will download and cache the JavaLens distribution (~23 MB) on first run:
{
"mcpServers": { "javalens": { "command": "npx", "args": ["-y", "javalens-mcp"], "env": { "JAVA_PROJECT_PATH": "/path/to/your/java/project" } } } }
Add to your MCP configuration (e.g., .mcp.json for Claude Code):
{
"mcpServers": { "javalens": { "command": "java", "args": ["-jar", "/path/to/javalens/javalens.jar", "-data", "/path/to/javalens-workspaces"] } } }
The -data argument specifies where JavaLens stores its workspace metadata. See How Workspaces Work below.
Set JAVA_PROJECT_PATH to auto-load a project when the server starts:
{
"mcpServers": { "javalens": { "command": "java", "args": ["-jar", "/path/to/javalens/javalens.jar", "-data", "/path/to/javalens-workspaces"], "env": { "JAVA_PROJECT_PATH": "/path/to/your/java/project" } } } }
Note: Project loading happens asynchronously in the background. The MCP server responds immediately while the project loads. Use
health_checkto monitor loading status—it will show"project.status": "loading"until complete, then"loaded"when ready.
Unlike in-memory code models, Eclipse JDT requires a workspace directory to store:
JavaLens creates its workspace outside your source project to keep your codebase clean:
Your Java Project (unchanged)
├── src/main/java/ ├── pom.xml └── (no Eclipse files added)
JavaLens Workspace (specified by -data) └── {session-uuid}/ ├── .metadata/ <- JDT indexes and state └── javalens-project/ <- Links to your source (not copies)
Why this matters:
.project or .classpath files{base}/{uuid}/load_project creates linked folders pointing to your source| Tool | Description |
|---|---|
search_symbols | Search types, methods, fields by glob pattern |
go_to_definition | Navigate to symbol definition |
find_references | Find all usages of a symbol |
find_implementations | Find interface/class implementations |
get_type_hierarchy | Get inheritance chain |
get_document_symbols | Get all symbols in a file |
get_symbol_info | Get detailed symbol information at position |
get_type_at_position | Get type details at cursor |
get_method_at_position | Get method details at cursor |
get_field_at_position | Get field details at cursor |
These use JDT's unique reference type constants—not available through LSP:
| Tool | Description |
|---|---|
find_annotation_usages | Find all @Annotation usages |
find_type_instantiations | Find all new Type() calls |
find_casts | Find all (Type) expr casts |
find_instanceof_checks | Find all x instanceof Type |
find_throws_declarations | Find all throws Exception in signatures |
find_catch_blocks | Find all catch(Exception e) blocks |
find_method_references | Find all Type::method expressions |
find_type_arguments | Find all List usages |
find_reflection_usage | Find Class.forName(), Method.invoke(), and other reflection calls |
| Tool | Description |
|---|---|
get_diagnostics | Get compilation errors and warnings |
validate_syntax | Fast syntax-only validation |
get_call_hierarchy_incoming | Find all callers of a method |
get_call_hierarchy_outgoing | Find all methods called by a method |
find_field_writes | Find where fields are mutated |
find_tests | Discover JUnit/TestNG test methods |
find_unused_code | Find unused private members |
find_unreachable_code | Project-wide dead code — members unreachable from any main method or test, over the whole-program call graph |
find_affected_tests | The tests that exercise a symbol, directly or transitively — the set to run after changing it |
find_possible_bugs | Detect null risks, empty catches, resource leaks |
get_hover_info | Get documentation/signature for symbol |
get_javadoc | Get parsed Javadoc |
get_signature_help | Get method signature at call site |
get_enclosing_element | Get containing method/class at position |
analyze_change_impact | Blast radius — direct call sites by depth, or the full transitive closure over the project graph (transitive=true) |
analyze_data_flow | Variable read/write/declaration tracking within a method; opt-in followCalls tracks null/taint facts across calls to sinks |
analyze_control_flow | Branching, loops, return/throw points, nesting depth |
get_di_registrations | Find Spring DI registrations (@Component, @Bean, @Autowired, @Inject) |
get_jpa_model | Assembled JPA entity model — tables, id fields, relationships with resolved targets and mappedBy sides |
get_http_endpoints | Assembled HTTP route table — Spring and JAX-RS paths composed from class prefixes, mapped to handler methods |
Combine multiple queries to reduce round-trips:
| Tool | Description |
|---|---|
analyze_file | Get imports, types, diagnostics in one call |
analyze_type | Get members, hierarchy, usages, diagnostics |
analyze_method | Get signature, callers, callees, overrides |
get_type_usage_summary | Get instantiations, casts, instanceof counts |
All refactoring tools return text edits (and new-file content where a refactoring creates one) rather than applying changes directly:
| Tool | Description |
|---|---|
rename_symbol | Rename across entire project |
organize_imports | Sort and clean imports |
| extract_variable | Extract expression to
ตัดมาแค่ช่วงต้น อ่านต่อใน repo