Context7
ส่งคู่มือการใช้ไลบรารีและเฟรมเวิร์กรุ่นล่าสุดให้ AI อ่านก่อนตอบ ช่วยให้โค้ดที่ AI เขียนไม่ใช้คำสั่งเก่าที่เลิกใช้แล้ว
คำอธิบายจากผู้ทำ (ภาษาอังกฤษตามต้นฉบับ)
Java decompiler MCP server. Explore, search, and decompile JAR, WAR, EAR, and AAR bytecode.
สามเรื่องนี้ไม่รวมเป็นคะแนนเดียว เพราะความเห็น การวัด และความนิยม เป็นคนละเรื่องกัน
ตัวนี้ยังไม่ได้เรียบเรียงเป็นภาษาไทย ด้านล่างคือข้อเท็จจริงที่เราอ่านจาก registry
เลือกโปรแกรม AI ที่คุณใช้ แล้วคัดลอกค่าตั้งไปวาง
ต้องเตรียมก่อน
คุณใช้แอปไหน
เลือกแอปด้านบน เราจำไว้ให้ ครั้งหน้าปุ่มจะขึ้นว่า “ติดตั้งลง …”
เปิด Claude Desktop → Settings → Developer → Edit Config แล้ววางค่านี้ในไฟล์ claude_desktop_config.json
{
"mcpServers": {
"dejared": {
"command": "npx",
"args": [
"-y",
"dejared-mcp"
]
}
}
}พิมพ์คำสั่งนี้ใน Terminal
claude mcp add dejared -- npx -y dejared-mcpวางในไฟล์ .cursor/mcp.json ของโปรเจกต์ หรือ ~/.cursor/mcp.json
{
"mcpServers": {
"dejared": {
"command": "npx",
"args": [
"-y",
"dejared-mcp"
]
}
}
}เบราว์เซอร์จะถามก่อนเปิดแอป จากนั้นแอปแสดงค่าตั้งให้ตรวจแล้วกดยืนยัน ช่อง key เว้นว่างไว้ให้คุณใส่เอง
วางในไฟล์ .vscode/mcp.json ของโปรเจกต์
{
"servers": {
"dejared": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"dejared-mcp"
]
}
}
}เบราว์เซอร์จะถามก่อนเปิดแอป จากนั้นแอปแสดงค่าตั้งให้ตรวจแล้วกดยืนยัน ช่อง key เว้นว่างไว้ให้คุณใส่เอง
ตัวนี้รันในเครื่องคุณ แต่ ChatGPT ต่อได้เฉพาะ server บนอินเทอร์เน็ต ลองเลือกแอปอื่น
ตัวเลือกเก็บในคุกกี้บนเครื่องนี้ ไม่ต้องมีบัญชี
ค่าตั้งนี้สร้างจากข้อมูลใน registry ของผู้ทำ ถ้าไม่ตรงกับ README ให้เชื่อ README
รันในเครื่องคุณ รายการเครื่องมือจะขึ้นในแอป AI หลังติดตั้ง
เราตรวจจากข้อมูลที่ใครก็เปิดดูได้ ยังไม่ได้อ่านโค้ด ข้อที่ไม่เกี่ยวกับตัวนี้ไม่นับในตัวหาร · ตรวจเมื่อ 7 พ.ย. 2569
ชื่อใน registry ยืนยันด้วยบัญชี GitHub hqkh4nh ซึ่งเป็นเจ้าของ repo
ยังไม่ได้อ่านข้อมูล repo จาก GitHub
ยังไม่ได้อ่านข้อมูล repo จาก GitHub
ตัวนี้รันบนเครื่องคุณ ไม่มี endpoint บนอินเทอร์เน็ต
ตัวนี้รันบนเครื่อง ใช้ค่าที่ตั้งในเครื่องแทน
รันในเครื่องคุณ เราอ่านรายการเครื่องมือได้เฉพาะตัวที่มี endpoint บนอินเทอร์เน็ต
เทียบกับทุก server ที่ยังใช้งานในหมวดนี้ทั้งทะเบียน ดาวนับเฉพาะเมื่อผู้ลงทะเบียนเป็นเจ้าของ repo
จากการตรวจเบื้องต้นของเรา ผ่าน 1 จาก 1 ข้อที่ตรวจได้ เรายังไม่ได้อ่านโค้ด ก่อนใส่กุญแจหรือ token ให้ดูว่า server ขอสิทธิ์อะไร และเลือกกุญแจที่ทำได้เท่าที่จำเป็น
registry ไม่ได้ระบุว่าต้องใช้กุญแจ แต่บางตัวจะขอให้ล็อกอินตอนใช้ครั้งแรก
รันบนเครื่องของคุณ โปรแกรม AI จะเปิด server ขึ้นมาเองเมื่อใช้ ข้อมูลไม่ต้องผ่านเซิร์ฟเวอร์ของผู้ทำ (ยกเว้นตัวที่ไปเรียกบริการออนไลน์ต่อ)
repo บน GitHub มีการแก้โค้ดล่าสุด – และส่งรุ่นล่าสุด (1.2.1) เข้า registry 3 เดือนที่ผ่านมา
โปรแกรมที่รองรับ MCP เช่น Claude Desktop, Claude Code, Cursor และ VS Code ตัวนี้ต้องมี Node.js ในเครื่องด้วย
ในหมวดเดียวกันมี Context7, Codebase Memory, Exa
server หมวดเดียวกันจากผู้ทำคนอื่น เรียงตามดาว
อ่านการ์ด:★ ดาว GitHubiสามเสา: รีวิว · ผลตรวจ · การใช้งานiอัปเดต = วันที่ส่งรุ่นล่าสุดเข้า registryi
ส่งคู่มือการใช้ไลบรารีและเฟรมเวิร์กรุ่นล่าสุดให้ AI อ่านก่อนตอบ ช่วยให้โค้ดที่ AI เขียนไม่ใช้คำสั่งเก่าที่เลิกใช้แล้ว
Codebase knowledge graph for AI agents — 162 languages, sub-ms queries, 99% fewer tokens.
Connect AI agents to Exa for web search, content fetching, and multi-step research.
ส่วนนี้คัดจาก repo ของผู้ทำตามต้นฉบับ PopNx MCP ไม่ได้ตรวจหรือรับรองเนื้อหา ตัด HTML รูปภาพ และสคริปต์ออกแล้ว ลิงก์จะพาออกนอกเว็บ
dejared-mcp is a Java decompiler and JAR analyzer that speaks the Model Context Protocol. It lets an AI coding agent (Claude Code, Codex, Cursor, VS Code) open a .jar, .war, .ear, or .aar, list what is inside, search its bytecode, and decompile any class back to Java source using CFR, Vineflower, or Procyon.
dejared-mcp is a Java-based MCP server distributed as an npm package. It provides nine tools organized into three categories: discovery, hunting, and deep analysis. AI assistants use these tools to navigate JAR file structures, search for classes and string literals in bytecode, and decompile .class files back to readable Java source code.
Reach for it whenever a dependency ships without sources: reading what a third-party library actually does, recovering an application.yml or MANIFEST.MF embedded in a JAR, following a stack trace into a library you have no source for, or inspecting an obfuscated plugin or mod. It replaces hand-running jar tf, unzip, javap, or a desktop decompiler.
Any ZIP-based Java archive works: .jar, .war, .ear, .aar, and Spring Boot fat-jars.
The npm package acts as a thin wrapper that downloads and caches the server JAR on first run, then spawns it via java -jar using stdio transport.
The best install is the plugin. One command pair gives your agent both halves: the nine MCP tools, and the `jar-analysis` skill that tells it when to reach for them instead of shelling out to jar tf, unzip, or javap.
claude plugin marketplace add hqkh4nh/dejared-mcp
claude plugin install dejared@dejared-mcp-marketplace
Codex carries the same bundle. See Install as a plugin. Every other client takes the plain MCP config.
The MCP server on its own gives an agent nine tools. It does not tell the agent *when* to use them, so most agents keep reaching for jar tf, unzip -p, and javap -p out of habit and never touch the tools you installed.
A plugin ships both parts together:
| Part | What it does |
|---|---|
| MCP server | The nine tools listed under Features |
jar-analysis skill | Routes JAR questions to those tools, picks the cheap tool before the expensive one, and knows which decompiler to retry with |
Two tools support that bundle today. Everything else is MCP-only.
claude plugin marketplace add hqkh4nh/dejared-mcp
claude plugin install dejared@dejared-mcp-marketplace
Inside a session, the same commands work as /plugin marketplace add ... and /plugin install .... If the install summary says Run /reload-plugins to activate, run it.
codex plugin marketplace add hqkh4nh/dejared-mcp
codex plugin add dejared@dejared-mcp-marketplace
Start a new session afterwards so the bundled skill and server load. Check with codex mcp list. dejared should be listed as enabled.
For clients without a plugin system. You get the tools, but not the skill that steers the agent toward them.
Most clients accept this standard config:
{
"mcpServers": { "dejared": { "command": "npx", "args": ["-y", "dejared-mcp"] } } }
If your tool has a CLI, one line is enough:
claude mcp add dejared -- npx -y dejared-mcp # Claude Code
codex mcp add dejared -- npx -y dejared-mcp # Codex amp mcp add dejared -- npx -y dejared-mcp # Amp gemini mcp add dejared npx -y dejared-mcp # Gemini CLI
Drop the standard config into the file for your tool:
| Tool | Location |
|---|---|
| Claude Desktop | %APPDATA%\Claude\claude_desktop_config.json (Windows) · ~/Library/Application Support/Claude/claude_desktop_config.json (macOS) |
| Claude Code | .mcp.json in the project root |
| Cursor | .cursor/mcp.json (project) · ~/.cursor/mcp.json (global) |
| Windsurf | MCP servers panel in settings, or mcpServers in your settings file |
| Cline | MCP settings file, via the extension's MCP Servers panel |
| Antigravity Editor | ~/.gemini/antigravity/mcp_config.json |
| Kiro | .kiro/settings/mcp.json |
| Copilot CLI | ~/.copilot/mcp-config.json, or run /mcp add |
| Gemini CLI | ~/.gemini/settings.json (global) · .gemini/settings.json (project) |
| Goose | Advanced settings → Extensions → Add custom extension, type STDIO |
| JetBrains IDEs | Settings → Tools → AI Assistant → Model Context Protocol (MCP) |
| Qodo Gen | Chat panel → Connect more tools → + Add new MCP |
A few setups need more than the standard config. Expand those below.
Codex : TOML instead of JSON
codex mcp add dejared -- npx -y dejared-mcp
codex mcp list
The -- matters: everything after it is the server's launch command.
Or edit ~/.codex/config.toml (global) or .codex/config.toml (project):
[mcp_servers.dejared]
command = "npx" args = ["-y", "dejared-mcp"]
[mcp_servers.dejared.env] DEJARED_JAVA_PATH = "/path/to/java"
VS Code (GitHub Copilot) : uses servers , not mcpServers
Create or edit .vscode/mcp.json:
{
"servers": { "dejared": { "command": "npx", "args": ["-y", "dejared-mcp"] } } }
After saving, click Start above the server entry, then use Agent mode in Copilot Chat.
opencode : command is an array
Edit ~/.config/opencode/opencode.json:
{
"$schema": "https://opencode.ai/config.json", "mcp": { "dejared": { "type": "local", "command": ["npx", "-y", "dejared-mcp"], "enabled": true } } }
Pure Java (no Node.js required)
If you prefer to run the server JAR directly without Node.js:
java -jar dejared-mcp-<version>.jar
npx: {
"mcpServers": { "dejared": { "command": "java", "args": ["-jar", "/path/to/dejared-mcp- .jar"] } } }
Browse and read JAR contents.
| Tool | Description |
|---|---|
dejared_list_packages | List all packages with class counts |
dejared_list_classes | List classes in a specific package |
dejared_list_resources | List non-class resource files |
dejared_read_resource | Read text resources (YAML, XML, properties, JSON, and others) |
Search inside JAR files.
| Tool | Description |
|---|---|
dejared_search_class | Search classes by name |
dejared_search_string | Search string literals in bytecode (URLs, SQL, error messages) |
Inspect metadata and decompile classes.
| Tool | Description |
|---|---|
dejared_get_metadata | Extract class metadata via ASM (fast, no decompilation) |
dejared_dump_package_metadata | Batch metadata extraction for entire packages |
dejared_decompile_class | Decompile .class files to Java source code |
dejared-mcp supports three decompiler engines. The engine can be specified per request via the dejared_decompile_class tool.
| Engine | Description |
|---|---|
| CFR (default) | Reliable general-purpose decompiler |
| Vineflower | Modern fork of FernFlower, handles newer Java features well |
| Procyon | Alternative engine, can handle some edge cases better |
If Java is not in your system PATH, set the DEJARED_JAVA_PATH environment variable in your MCP config. This applies to all npx-based configurations:
{
"mcpServers": { "dejared": { "command": "npx", "args": ["-y", "dejared-mcp"], "env": { "DEJARED_JAVA_PATH": "/path/to/java" } } } }
| Property | Default | Description |
|---|---|---|
dejared.cache.max-size | 500 | Max entries in the decompilation LRU cache |
dejared.security.max-resource-size | 5242880 | Max resource file size (bytes) |
dejared.security.decompile-timeout-seconds | 30 | Timeout per decompilation |
The npm package is a thin Node.js wrapper. On first run it:
$XDG_CACHE_HOME/dejared-mcp (defaults to ~/.cache/dejared-mcp)~/Library/Caches/dejared-mcp%LOCALAPPDATA%\dejared-mcpjava -jar with stdio inherited for MCP transport.The server communicates over stdio using the Model Context Protocol.
Q: Java is installed but the server cannot find it.
Set the DEJARED_JAVA_PATH environment variable in your MCP configuration. See Custom Java Path.
Q: The server fails to start with a permission error.
Ensure that the cached JAR file is readable. The cache location depends on your platform. See How It Works for the cache directory paths.
Q: Decompilation times out or returns an error.
Some classes are difficult to decompile. Try a different engine by specifying vineflower or procyon in the dejared_decompile_class tool. The default timeout is 30 seconds and can be adjusted via `dejared.security
ตัดมาแค่ช่วงต้น อ่านต่อใน repo