Integrations

jdx for Windsurf

Java and Kotlin code navigation for Windsurf, 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 | bash

2. Wire it into Windsurf, then restart Windsurf:

jdx setup --agent windsurf --scope project

What it writes: Windsurf (Devin Local) gets the mcpServers.jdx entry in .devin/mcp_config.json (project) or ~/.config/devin/mcp_config.json (system).

Check, scope and remove#

  • jdx setup --agent windsurf --scope system — Or wire it for every project (user-global config).
  • jdx setup --agent windsurf --scope project --check — Report whether it is wired, without writing anything.
  • jdx setup --agent windsurf --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 Windsurf can then do#

Windsurf 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 Windsurf's instructions instead.