Repository navigation
jdx v1.8.0 — classpath MCP, multi-release selection, offline Kotlin bodies
Minor release. Classpath MCP tools can answer from jars, a Maven coordinate, or project discovery with no stored workspace. jdx --release selects which multi-release jar variant answers a query. jdx body --kotlin-mode can slice a .kt member without the compiler sidecar. The v1 daemon, HTTP, and MCP wire stays read-only, and the Linux release packs an MCP Bundle for the official registry. Exit codes are unchanged. Existing query shapes keep working. New flags and MCP arguments are additive.
Install
curl -fsSL https://raw.githubusercontent.com/MohammadMD1383/jdx/main/install-release.sh | bashWindows (PowerShell):
irm https://raw.githubusercontent.com/MohammadMD1383/jdx/main/install-release.ps1 | iexOr download jdx-1.8.0-windows.zip from the assets below and run
install-release.ps1 / sh install-release.sh --tarball jdx-1.8.0-windows.zip.
Release installs self-update with jdx upgrade.
Releases are unsigned: expect a first-run warning —
Unblock-Fileon
Windows (PowerShell),xattr -d com.apple.quarantine <install-dir>/jdxon
macOS.
jdx bench --include-usages (#11, #156)
jdx bench still omits the usages row unless --include-usages is set. The opt-in row times the current live scan and is labelled no indexed path yet (live scan) in text and JSON. Default output is unchanged. Rows still print ok/OVER and success still exits 0. The scale fixture is minecraft-client.jar under ~/.gradle/caches/fabric-loom/; gson is the everyday fixture.
Read-only v1 wire (#19, #154)
The v1 daemon, HTTP, and MCP wire stays read-only. doctor is refused with exit 6. The daemon says to run the same query without the daemon and names jdx doctor. HTTP and MCP say to run jdx doctor in a shell. HTTP maps that exit to status 500. ws and cache stay off the wire. jdx doctor and jdx batch still answer doctor in-process. Parity goldens pin the daemon, HTTP, and MCP refusal envelopes.
jdx --release (#29, #151)
jdx <command> --release N (alias --multi-release) selects which multi-release jar variant answers a query, including jdx diff. The default is unchanged: the running JDK feature, and MULTI_RELEASE_VARIANT when a versioned class wins, with the same warning sentence as before. A versioned answer names that release on its source: line and as "release" in JSON. A base entry omits the field. 8 serves base entries only. A value below 8 is a usage error. An explicit value stays in-process. The warm daemon, MCP, and HTTP keep the running-JDK selection. Resources, services, and the manifest still list versioned copies as stored.
jdx body --kotlin-mode (#16, #153)
jdx body --kotlin-mode psi|lexer|auto can read a .kt member without the compiler sidecar. psi (the default) is unchanged: the sidecar, then a labelled decompilation. lexer brace-matches common fun / val / class shapes offline and labels the slice lexer (source: lexer scan of … ⚠ brace-matched, not PSI), distinct from sources and from Vineflower/javap. auto uses the sidecar when that parse succeeds and the lexer otherwise. A scan that cannot match braces, strings, or comments degrades to the same reconstruction ladder. SOURCES_VERSION_MISMATCH still warns. jdx source and jdx doc still use the sidecar. The lexer does not download anything; jdx kotlin install stays opt-in.
Classpath MCP without a workspace (#20, #150)
Classpath MCP tools take optional jars, coord, and discover. jars and coord are a comma-separated string or a JSON array, matching CLI --jars and --coord. jdx mcp --discover turns project auto-discovery on for the session; a per-call discover overrides that. Discovery walks up from the server's working directory and never runs Gradle or Maven.
A call that sets workspace requires that stored name. A miss is exit 4 even when jars or discover are also set. When the call does not name a workspace and the server's workspace is missing, jars, coord, or discovery answer on their own. Explicit jars and coordinate jars merge in front of workspace or discovered jars. Coordinates resolve from local caches only. An uncached coordinate is exit 5 and the message names a cold CLI --fetch. MCP does not download. diff, version, doctor, and health do not take these arguments. The unix daemon and HTTP API are unchanged.
MCP Bundle (#138)
jdx can be packed as an MCP Bundle for the official registry. Runtime behaviour of jdx is unchanged. mcpb/manifest.json launches bin/jdx mcp over stdio and bin/jdx.bat mcp on Windows. A Java 21+ runtime must be on PATH or in JAVA_HOME. server.json in git is the registry template (io.github.MohammadMD1383/jdx); its fileSha256 is a placeholder. Pull requests validate and pack the bundle and upload nothing. The Linux release leg uploads jdx-mcp-<version>.mcpb, its .sha256, and a stamped jdx-mcp-<version>.server.json. It does not call mcp-publisher.
Richer MCP tool definitions (#135)
The 27 jdx_* tool descriptions say what each tool returns, which sibling to use instead, and the behaviours annotations cannot carry: an ambiguous ref lists every candidate (exit 2), decompiled text is marked ⚠ reconstructed, and inspected classes are parsed with ASM and never loaded. Every input property has a description, plus enum, default, and examples where the dispatch has them. Every tool is annotated readOnlyHint: true, destructiveHint: false, idempotentHint: true, openWorldHint: false. No tool declares fetch. Root glama.json names the maintainer. Tool names, parameters, and dispatch are unchanged. jdx doctor is still refused over MCP (exit 6). The docs MCP tools page prints each parameter's allowed values, default, and examples from tools/list.
Website blog (#131, #155)
The website has a blog. /blog/ lists posts newest first. Each post is its own page, with a title, date, description, canonical URL, Open Graph tags, and BlogPosting JSON-LD. Posts are in sitemap.xml, and /blog/feed.xml is an Atom feed. Posts are Markdown files in docs/blog/.
Docs and site
- Card text stays inside the grid, and cards in a row share a top edge (#133, #132, #152). Command labels break after each
|. Cards, prose, nav, and code useoverflow-wrapandmin-width: 0. A card link stretches with its grid row. Column tracks useminmax(min(100%, …), 1fr). - The site build retries a transient fixture download four times (2s, then 5s, then 10s). A checksum mismatch is not retried. The Pages workflow caches
sandbox/cache/jdx/m2, keyed on the coordinates the examples download (#149). - The README links the Glama MCP server score badge (#141).
- Guides added since v1.7.0:
- Minecraft mod jars (#134)
- Read or decompile a jar from the terminal (#136)
- Java MCP server, a javap alternative, and smaller agent context (#137)
- Which jar contains a class (#139)
- Minecraft mixin targets (#140)
- Diffing Minecraft and mod versions (#142)
- Javadoc from a jar (#143)
- The Kotlin API of a compiled jar (#144)
- In-content links to pages Search Console had not discovered (#145)
- Sharper titles and FAQs on the find-class and Minecraft-mod pages (#146)
- A JD-GUI alternative (#147)
- Maven or Gradle dependency source (#148)
PRs in this release
| PR | What |
|---|---|
| #134 | Minecraft mod jar guide |
| #135 | Richer MCP tool descriptions, annotations, and glama.json |
| #136 | Read or decompile a jar from the terminal |
| #137 | Java MCP, javap, and agent-context guides |
| #138 | MCP Bundle for the official registry |
| #139 | Find which jar contains a class |
| #140 | Minecraft mixin targets |
| #141 | Glama MCP server score badge |
| #142 | Diff Minecraft and mod versions |
| #143 | Read Javadoc from a jar |
| #144 | Kotlin API of a compiled jar |
| #145 | Links to undiscovered reference and guide pages |
| #146 | Sharper find-class and Minecraft-mod pages |
| #147 | JD-GUI alternative guide |
| #148 | Maven and Gradle dependency source |
| #149 | Retry transient site fixture downloads |
| #150 | MCP jars, coordinates, and discovery without a workspace (#20) |
| #151 | --release multi-release variant selection (#29) |
| #152 | Keep card text inside the grid (#133, #132) |
| #153 | jdx body --kotlin-mode lexer fallback (#16) |
| #154 | v1 wire stays read-only (#19) |
| #155 | Site blog (#131) |
| #156 | Opt-in usages row for jdx bench (#11) |
Full Changelog: v1.7.0...v1.8.0