Integrations
jdx for Claude Code
Java and Kotlin code navigation for Claude Code, over MCP.
Set up in two commands#
1. Install jdx (needs JDK 21+):
curl -fsSL https://raw.githubusercontent.com/MohammadMD1383/jdx/main/install-release.sh | bash2. Wire it into Claude Code, then restart Claude Code:
jdx setup --agent claude-code --scope projectWhat it writes: Claude Code writes the mcpServers.jdx entry into .mcp.json (project) or ~/.claude.json (system).
Check, scope and remove#
jdx setup --agent claude-code --scope system— Or wire it for every project (user-global config).jdx setup --agent claude-code --scope project --check— Report whether it is wired, without writing anything.jdx setup --agent claude-code --scope project --remove— Remove the entry again (other entries are never touched).
Re-running is a no-op, and unrelated entries in the config are merged, never clobbered.
What Claude Code can then do#
Claude Code gets 27 typed tools:
jdx_show— Returns the class card for one type: kind, modifiers, supertypes, member counts, provenance, and the next command to run.jdx_members— Returns the members you can call on a type.jdx_outline— Returns one dense line per member declared on this exact type.jdx_body— Returns one member's source body, sliced to that member, plus a provenance line naming the artifact and file.jdx_source— Returns a type's source file, or a slice of it, plus provenance.jdx_signature— Returns one signature line per overload, with real parameter names, generics, throws and defaults, plus provenance.jdx_doc— Returns rendered javadoc for a type or member (HTML stripped, inline tags unwrapped) plus provenance.jdx_search— Returns symbols whose names match the query.jdx_resolve— Returns every candidate for a short or partial name (a type, a member, or a package).jdx_ls— Returns packages in the workspace roots.jdx_tree— Returns artifacts and their package trees.jdx_usages— Returns where a type or member is referenced across the workspace jars and source directories: one row per referencing method, or per mentioning line in a source directory.jdx_annotated— Returns classes and members that carry an annotation.jdx_hierarchy— Returns the type hierarchy: supertypes upward, interfaces included, and subtypes downward across the workspace.jdx_implementors— Returns who implements this interface or extends this class, transitively.jdx_callers— Returns who calls this method, as a depth-bounded tree (default depth 1, direct callers).jdx_calls— Returns what this method calls, as a depth-bounded tree (default depth 1, direct callees).jdx_samples— Returns a few real call sites for a symbol, ranked non-test before test, non-generated before generated, and fuller overloads first.jdx_literals— Returns string constants that contain query: bytecode LDC loads, String field ConstantValue entries, and .properties resource keys and values.jdx_services— Returns META-INF/services SPI registrations across the workspace jars: the service interface and each provider class.jdx_modules— Returns JPMS module-info descriptors: requires, exports, opens, uses and provides.jdx_manifest— Returns META-INF/MANIFEST.MF attributes.jdx_resources— Returns non-class resource paths across the workspace jars, including META-INF, .properties and versioned META-INF/versions copies, stored as the path is written.jdx_diff— Returns a public-API diff between two artifacts, using named binary-compatibility rules such as MEMBER_REMOVED and RETURN_TYPE_CHANGED, most breaking first.jdx_version— Returns the jdx version this server was built as, in result.version of the JSON envelope.jdx_doctor— Refuses to run over MCP and returns error code 6.jdx_health— Returns a liveness snapshot for this process: workspace, uptimeSeconds, queryCount, indexedArtifacts (always 0), indexMode "live-roots-first", rpcVersion, appVersion, pid and memoryUsedMb.
Prefer the CLI? Paste the agent cheat sheet into Claude Code's instructions instead.