# dejared

dejared lets an agent inspect Java archives, search bytecode, and decompile classes. Use it to investigate dependencies that ship without source code.

- MCP server · `type=mcp` · Claude Code, Codex, Cursor, GitHub Copilot, Windsurf (Devin Desktop), Cline, Zed, Gemini CLI · ★ 7
- Author: hqkh4nh
- License: MIT · policy=link-only · description only; the file stays with the author
- Source: https://github.com/hqkh4nh/dejared-mcp
- Updated: 2026-08-21
- HTML: https://affpapa.org/en/nevibecode/mcp/hqkh4nh-dejared

## What it does

Connect dejared to an MCP client to browse JAR, WAR, EAR, and AAR files. An agent can look up classes or string literals in bytecode, then turn a selected class into Java source with CFR, Vineflower, or Procyon. Spring Boot fat-jars are supported too.

The server exposes nine tools for archive discovery and deeper inspection. Its npm package fetches and caches the server JAR on first launch, then runs it with `java -jar` over stdio. You need Node.js 20+ and Java 17+; a JRE is enough. Without those versions, the server will not start.

You can connect the MCP server by itself, or install the plugin bundle for Claude Code or Codex. The bundle also includes the `jar-analysis` skill, which guides the agent to use the archive tools. Other clients use an MCP configuration instead.

## Requirements
- Needs: Node.js (commands run via npx)

## Install

### Claude Code (native platform)

**Platform CLI**
```bash
claude mcp add dejared -- npx -y dejared-mcp
```

### Codex

**Platform CLI**
```bash
codex mcp add hqkh4nh-dejared -- npx -y dejared-mcp
```

### Cursor

**Config file**
File `.cursor/mcp.json`:
```json
{
    "mcpServers": {
        "hqkh4nh-dejared": {
            "command": "npx",
            "args": [
                "-y",
                "dejared-mcp"
            ]
        }
    }
}
```

### GitHub Copilot

**Config file**
File `.vscode/mcp.json`:
```json
{
    "servers": {
        "hqkh4nh-dejared": {
            "type": "stdio",
            "command": "npx",
            "args": [
                "-y",
                "dejared-mcp"
            ]
        }
    }
}
```

### Gemini CLI

**Platform CLI**
```bash
gemini mcp add hqkh4nh-dejared npx -y dejared-mcp
```

## When to use it
- inspect the contents of a Java archive
- search bytecode for a class or string
- decompile a class into Java source
- recover `application.yml` or `MANIFEST.MF` from a JAR
- trace a stack frame into a dependency without source code

## Example prompts
- Inspect `library.jar` and find the class related to this error; show me its Java code.
- Search `app.war` for the string `jdbc:` and identify the class that contains it.
- List the contents of `plugin.jar` and decompile the `Main` class.

## Similar
- [MCP Toolbox for Databases](https://affpapa.org/en/nevibecode/mcp/googleapis-mcp-toolbox-for-databases.md) — MCP server · ★ 16730
- [PostHog MCP Server](https://affpapa.org/en/nevibecode/mcp/posthog-mcp-server.md) — MCP server · ★ 40459
- [OpenWork MCP Gateway](https://affpapa.org/en/nevibecode/mcp/openwork-mcp-gateway.md) — MCP server · ★ 24271
- [Keploy](https://affpapa.org/en/nevibecode/mcp/keploy.md) — MCP server · ★ 18779
- [Nhost](https://affpapa.org/en/nevibecode/mcp/nhost.md) — MCP server · ★ 9369
- [basebalance.cloud — x402 RPC & MCP gateway](https://affpapa.org/en/nevibecode/mcp/basebalancecloud-x402-rpc-mcp-gateway.md) — MCP server · ★ 7548

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
