Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx skills add FgForrest/mcp-jdwp-java --skill java-debuggit clone --depth 1 https://github.com/FgForrest/mcp-jdwp-javaWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/fgforrest/mcp-jdwp-java/java-debug)<a href="https://agentmods.dev/skills/fgforrest/mcp-jdwp-java/java-debug"><img src="https://agentmods.dev/badge/skills/fgforrest/mcp-jdwp-java/java-debug/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/fgforrest/mcp-jdwp-java/java-debug"><img src="https://agentmods.dev/badge/skills/fgforrest/mcp-jdwp-java/java-debug.svg" alt="Reviewed on agentmods" width="80" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00060 | $0.12408 |
| Opus 5.5 | $0.00024 | $0.04963 |
| Sonnet 5.5 | $0.00012 | $0.02482 |
| Haiku 4.5 | $0.00006 | $0.01241 |
Grade A, and why
java-debug scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 4d ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 396 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Java Debug
Live debugging of a running JVM via JDWP. Replaces "add a println, re-run, repeat" with: set breakpoint -> hit it -> inspect everything -> mutate state -> resume.
Use when:
- A test fails and the assertion message doesn't tell you why
- An exception is buried under several layers of wrapping
- A value is wrong but you can't tell where it changes
- A bug only happens under specific conditions (race, off-by-one, edge case)
- Stepping through code in your head doesn't match what the runtime does
Don't use when:
- The bug is clear from code review alone
- You already know the fix and just need to write it
- It's a build/compile failure (not a runtime bug)
Prerequisites
The jdwp_* tools come from the plugin's jdwp-inspector MCP server. If they are missing, the server is not connected — usually right after an install or update, while its JAR is still being prepared. Do not fall back to println debugging: follow references/troubleshooting.md to find out why, and ask the user to reconnect.
The target JVM must be running with the JDWP agent. The port is whatever the developer (or their deployment) chose — port 5005 is only the convention for build-system test shortcuts. Long-running services very often expose JDWP on a different port (8003, 8000, 9009, …).
-agentlib:jdwp=transport=dt_socket,server=y,suspend=y,address=*:<port>
suspend=y blocks the JVM at startup until you attach — use for tests and early-startup bugs. suspend=n lets the JVM run freely — use for long-running services where you attach on demand.
Two attach scenarios:
- Launch-and-debug (tests, reproducers): start a fresh JVM yourself, usually via one of the quick-launch shortcuts below.
- Attach-to-running (services already up): skip the launch step entirely — go straight to attach. The port follows the resolution priority in the next section.
Quick launch shortcuts (these all default to port 5005):
- Maven Surefire:
mvn test -Dtest=<TestClass> -Dmaven.surefire.debug - Gradle:
./gradlew test --tests "com.example.MyTest" --debug-jvm - Standalone:
java -agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=*:5005 -jar app.jar
What ships with it
2 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 4d ago Changed · +2 lines 93b5ada47f52
- 5d ago Changed · +1 lines 46209fc3ce0b
- 6d ago Changed · +2 lines b424bc2bc68d
- 7d ago Changed · +4 lines dc8527e265f1
- 8d ago Changed · +2 lines ac3a4d1097eb
- 15d ago Changed · -1 lines 228c8526cc71
- 29d ago Changed 0e425178cf2b
- 1mo ago Changed · +19 lines c841bb51b138
- 1mo ago Changed · +25 lines 380a3fda0b99
- 3mo ago First seen · 342 lines · 60 tokens per session scan A ca8b77aea530
java-debug is a skill published in the GitHub repository FgForrest/mcp-jdwp-java (36 stars, last pushed 5d ago), licensed MIT. It adds 60 tokens to every session and 12,408 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.
java-debug compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| java-debugFgForrest/mcp-jdwp-java | Skill | 36 | 5d ago | MIT | A | 60 | Claude Code |
| jdbgPieceOfFall/jdbg | Skill | 11 | 4mo ago | Apache-2.0 | A | 62 | Claude Code |
| nullawaychromium/chromium | Skill | 25k | today | BSD-3-Clause | A | 43 | Claude Code, Codex |
| wxjava-troubleshooterbinarywang/WxJava | Skill | 33k | yesterday | Apache-2.0 | A | 65 | Codex |
| performance-smell-detectiondecebals/claude-code-java | Skill | 780 | 1mo ago | MIT | A | 51 | Claude Code, Codex |
| neqsim-code-hygieneequinor/neqsim | Skill | 177 | today | Apache-2.0 | A | 120 | Claude Code, Codex |
| 126-java-exception-handlingjabrena/plinth | Skill | 469 | yesterday | Apache-2.0 | A | 144 | Claude Code, Codex |