Documentation menu

MCP tools

jdx mcp serves 27 typed tools over the Model Context Protocol (stdio). This list is what the server itself answers to tools/list in the current build.

jdx — an IDE for AI agents: Java/Kotlin structure, sources, usages and call graphs, one precise question per tool. Every answer is the JSON envelope (the same bytes as --json) and carries provenance. Ambiguous refs list every candidate instead of guessing. Inspected classes are parsed with ASM and never loaded or executed. Decompiled text is marked ⚠ reconstructed. This server never downloads artifacts. Classpath tools take optional jars and coord arguments (local caches only) and discover, which reads a Gradle or Maven project from the working directory when no stored workspace exists. A stored workspace that exists still answers, and jars and coord merge in front of it.

jdx_show#

Returns the class card for one type: kind, modifiers, supertypes, member counts, provenance, and the next command to run. Use it to see what a type is. Use jdx_members to list what you can call (inherited members included) and jdx_outline for members declared on this type only. A member reference is error code 3; use jdx_signature, jdx_doc, or jdx_body for a member. An ambiguous short name is not guessed: the call is error code 2 and lists every candidate. Structure comes from bytecode parsed with ASM. Never loads or executes the inspected class.

ParameterTypeDescription
query requiredstringType reference. Fully qualified ('com.google.gson.Gson'), nested ('java.util.Map$Entry' — '$' separates nesting; 'Map.Entry' is also accepted), or a short name ('Gson', 'Map'). A member reference is not a type. An ambiguous short name lists every candidate instead of guessing. Examples: com.google.gson.Gson, java.util.Map, java.util.Map$Entry.
workspacestringNamed stored workspace to answer from (see jdx ws). Default is the workspace this server was started with. A name that does not exist is error code 4 and names jdx ws create. jars, coord, or discover can answer without a stored workspace when this call does not itself set workspace. This server never downloads. Examples: default.
jarsstringJar files, class directories, or globs, comma-separated — the same values as the CLI --jars flag. A JSON array of strings is also accepted. They merge in front of the selected workspace. When this call does not set workspace and the server's workspace does not exist, these roots are enough on their own (the JDK stays included). A path that itself contains a comma must be the only value. Examples: libs/app.jar, build/classes/java/main.
coordstringMaven coordinates group:artifact:version, comma-separated — the same values as the CLI --coord flag without --fetch. A JSON array of strings is also accepted. Resolved from the local Gradle and Maven caches only. This server never downloads: a coordinate that is not cached is error code 5 and names a cold jdx … --coord … --fetch prime, or pass jars instead. Merges in front of the workspace and behind jars. A malformed coordinate is error code 3. Examples: com.google.code.gson:gson:2.14.0.
discoverbooleanWhen true, and this call does not set workspace, and the server's stored workspace does not exist, walk up from the server's working directory for a Gradle or Maven project and use its class output plus dependency jars named in its build files. Never runs Gradle or Maven. A stored workspace that exists wins, and a workspace named on this call wins. Omit to keep the server default (false, unless jdx mcp was started with --discover). Pass false to skip discovery for this call. An absent project with no jars or coord is error code 4 naming jdx ws.

jdx_members#

Returns the members you can call on a type. Inherited members are included by default and grouped by the declaring type; java.lang.Object collapses to one line unless from names it. This is the completion list. Use it for the callable surface. Use jdx_outline for one dense line per member declared on this type only, jdx_signature for one member's parameters, and jdx_show for the type card. declared true limits the list to members declared on this exact type. An ambiguous short name is error code 2 and lists every candidate. Kotlin types render from @Metadata unless view is jvm. Parses with ASM and never loads or executes the inspected class.

ParameterTypeDescription
query requiredstringType reference. Fully qualified ('com.google.gson.Gson'), nested ('java.util.Map$Entry' — '$' separates nesting; 'Map.Entry' is also accepted), or a short name ('Gson', 'Map'). A member reference is not a type. An ambiguous short name lists every candidate instead of guessing. Examples: com.google.gson.Gson, java.util.Map, java.util.Map$Entry.
workspacestringNamed stored workspace to answer from (see jdx ws). Default is the workspace this server was started with. A name that does not exist is error code 4 and names jdx ws create. jars, coord, or discover can answer without a stored workspace when this call does not itself set workspace. This server never downloads. Examples: default.
jarsstringJar files, class directories, or globs, comma-separated — the same values as the CLI --jars flag. A JSON array of strings is also accepted. They merge in front of the selected workspace. When this call does not set workspace and the server's workspace does not exist, these roots are enough on their own (the JDK stays included). A path that itself contains a comma must be the only value. Examples: libs/app.jar, build/classes/java/main.
coordstringMaven coordinates group:artifact:version, comma-separated — the same values as the CLI --coord flag without --fetch. A JSON array of strings is also accepted. Resolved from the local Gradle and Maven caches only. This server never downloads: a coordinate that is not cached is error code 5 and names a cold jdx … --coord … --fetch prime, or pass jars instead. Merges in front of the workspace and behind jars. A malformed coordinate is error code 3. Examples: com.google.code.gson:gson:2.14.0.
discoverbooleanWhen true, and this call does not set workspace, and the server's stored workspace does not exist, walk up from the server's working directory for a Gradle or Maven project and use its class output plus dependency jars named in its build files. Never runs Gradle or Maven. A stored workspace that exists wins, and a workspace named on this call wins. Omit to keep the server default (false, unless jdx mcp was started with --discover). Pass false to skip discovery for this call. An absent project with no jars or coord is error code 4 naming jdx ws.
kindstringMember kind to list. Allowed: all, method, field, ctor, property. Default: all.
accessstringVisibility to list. Omit for the default, which is public and protected together — that combination is not itself one of these values. 'public' means public only; 'all' means every visibility. Allowed: public, protected, package, private, all.
staticbooleanOnly static members. Mutually exclusive with instance; setting both is error code 3. Default: false.
instancebooleanOnly instance members. Mutually exclusive with static; setting both is error code 3. Default: false.
fromstringOnly members inherited from this supertype (a type reference, for example 'java.lang.Object'). Examples: java.lang.Object.
grepstringOnly members whose name matches this Java regex (for example '^get'). An invalid pattern is error code 3. Examples: ^get.
includeSyntheticbooleanInclude bridge and synthetic members. Hidden when omitted or false. Default: false.
limitintegerMaximum rows shown (default 50). The rest become a truncation footer. Default: 50.
withDocbooleanInclude the first javadoc sentence per member. Default: false.
sortstringRow order. kind groups by member kind (the default). name is a flat name order. declaring groups by the type that declares the member. Allowed: kind, name, declaring. Default: kind.
viewstringDeclaration projection. kotlin (default) is the true Kotlin declaration from @Metadata: suspend, properties, nullability, default arguments. jvm is the raw JVM projection: getters, Continuation parameters, mangled names. Allowed: kotlin, jvm. Default: kotlin.
declaredbooleanOnly members declared on this exact type. Omit or false to include inherited members, which is the default. Default: false.

jdx_outline#

Returns one dense line per member declared on this exact type. Inherited members are never included. This is the file-structure view. Use it to scan what the type itself declares. Use jdx_members when you also need inherited members, and jdx_signature or jdx_body to open one member. An ambiguous short name is error code 2 and lists every candidate. Parses with ASM and never loads or executes the inspected class.

ParameterTypeDescription
query requiredstringType reference. Fully qualified ('com.google.gson.Gson'), nested ('java.util.Map$Entry' — '$' separates nesting; 'Map.Entry' is also accepted), or a short name ('Gson', 'Map'). A member reference is not a type. An ambiguous short name lists every candidate instead of guessing. Examples: com.google.gson.Gson, java.util.Map, java.util.Map$Entry.
workspacestringNamed stored workspace to answer from (see jdx ws). Default is the workspace this server was started with. A name that does not exist is error code 4 and names jdx ws create. jars, coord, or discover can answer without a stored workspace when this call does not itself set workspace. This server never downloads. Examples: default.
jarsstringJar files, class directories, or globs, comma-separated — the same values as the CLI --jars flag. A JSON array of strings is also accepted. They merge in front of the selected workspace. When this call does not set workspace and the server's workspace does not exist, these roots are enough on their own (the JDK stays included). A path that itself contains a comma must be the only value. Examples: libs/app.jar, build/classes/java/main.
coordstringMaven coordinates group:artifact:version, comma-separated — the same values as the CLI --coord flag without --fetch. A JSON array of strings is also accepted. Resolved from the local Gradle and Maven caches only. This server never downloads: a coordinate that is not cached is error code 5 and names a cold jdx … --coord … --fetch prime, or pass jars instead. Merges in front of the workspace and behind jars. A malformed coordinate is error code 3. Examples: com.google.code.gson:gson:2.14.0.
discoverbooleanWhen true, and this call does not set workspace, and the server's stored workspace does not exist, walk up from the server's working directory for a Gradle or Maven project and use its class output plus dependency jars named in its build files. Never runs Gradle or Maven. A stored workspace that exists wins, and a workspace named on this call wins. Omit to keep the server default (false, unless jdx mcp was started with --discover). Pass false to skip discovery for this call. An absent project with no jars or coord is error code 4 naming jdx ws.
kindstringMember kind to list. Allowed: all, method, field, ctor, property. Default: all.
accessstringVisibility to list. Omit for the default, which is public and protected together — that combination is not itself one of these values. 'public' means public only; 'all' means every visibility. Allowed: public, protected, package, private, all.
staticbooleanOnly static members. Mutually exclusive with instance; setting both is error code 3. Default: false.
instancebooleanOnly instance members. Mutually exclusive with static; setting both is error code 3. Default: false.
fromstringOnly members inherited from this supertype (a type reference, for example 'java.lang.Object'). Examples: java.lang.Object.
grepstringOnly members whose name matches this Java regex (for example '^get'). An invalid pattern is error code 3. Examples: ^get.
includeSyntheticbooleanInclude bridge and synthetic members. Hidden when omitted or false. Default: false.
limitintegerMaximum rows shown (default 50). The rest become a truncation footer. Default: 50.
withDocbooleanInclude the first javadoc sentence per member. Default: false.
sortstringRow order. kind groups by member kind (the default). name is a flat name order. declaring groups by the type that declares the member. Allowed: kind, name, declaring. Default: kind.
viewstringDeclaration projection. kotlin (default) is the true Kotlin declaration from @Metadata: suspend, properties, nullability, default arguments. jvm is the raw JVM projection: getters, Continuation parameters, mangled names. Allowed: kotlin, jvm. Default: kotlin.

jdx_body#

Returns one member's source body, sliced to that member, plus a provenance line naming the artifact and file. context adds lines around the slice; maxLines caps it (default 200). Use it to read an implementation. Use jdx_signature for the declaration only, jdx_doc for javadoc, and jdx_source for the whole file or an arbitrary line window. Paired sources are sliced verbatim. Without them, or when engine is set, the body is decompiled and the provenance line is marked ⚠ reconstructed. kotlinMode selects how a .kt body is read: psi (default) uses the compiler sidecar, lexer brace-matches without it and sets provenance to lexer, and auto uses the sidecar when that parse succeeds and the lexer otherwise. An ambiguous ref is error code 2 and lists every candidate. Overload choice is decided from bytecode before sources or a decompiler run. Parses with ASM and never loads or executes the inspected class.

ParameterTypeDescription
query requiredstringMember reference, Javadoc-style. One overload: 'com.google.gson.Gson#toJson(java.lang.Object)'. Every overload: 'com.google.gson.Gson#toJson'. Simple parameter names ('toJson(Object)') and an exact JVM descriptor ('toJson(Ljava/lang/Object;)Ljava/lang/String;') are accepted. Constructor: 'com.google.gson.Gson#<init>(...)'. '#', '.' or '::' separates the member; fields need '#' or '::'. Nested types use '$' ('java.util.Map$Entry'). An ambiguous ref lists every candidate instead of guessing. Examples: com.google.gson.Gson#toJson(java.lang.Object), com.google.gson.Gson#toJson, com.google.gson.Gson#<init>(...).
workspacestringNamed stored workspace to answer from (see jdx ws). Default is the workspace this server was started with. A name that does not exist is error code 4 and names jdx ws create. jars, coord, or discover can answer without a stored workspace when this call does not itself set workspace. This server never downloads. Examples: default.
jarsstringJar files, class directories, or globs, comma-separated — the same values as the CLI --jars flag. A JSON array of strings is also accepted. They merge in front of the selected workspace. When this call does not set workspace and the server's workspace does not exist, these roots are enough on their own (the JDK stays included). A path that itself contains a comma must be the only value. Examples: libs/app.jar, build/classes/java/main.
coordstringMaven coordinates group:artifact:version, comma-separated — the same values as the CLI --coord flag without --fetch. A JSON array of strings is also accepted. Resolved from the local Gradle and Maven caches only. This server never downloads: a coordinate that is not cached is error code 5 and names a cold jdx … --coord … --fetch prime, or pass jars instead. Merges in front of the workspace and behind jars. A malformed coordinate is error code 3. Examples: com.google.code.gson:gson:2.14.0.
discoverbooleanWhen true, and this call does not set workspace, and the server's stored workspace does not exist, walk up from the server's working directory for a Gradle or Maven project and use its class output plus dependency jars named in its build files. Never runs Gradle or Maven. A stored workspace that exists wins, and a workspace named on this call wins. Omit to keep the server default (false, unless jdx mcp was started with --discover). Pass false to skip discovery for this call. An absent project with no jars or coord is error code 4 naming jdx ws.
contextintegerExtra source lines around the body. Default 0. Default: 0.
lineNumbersbooleanPrefix every shown line with its 1-based number. Default: false.
maxLinesintegerMaximum lines of the body slice. Default 200. Default: 200.
withSignaturebooleanPrepend the member signature line. Default: false.
withDocbooleanAppend the member javadoc. Default: false.
enginestringReconstruction engine. Omit to prefer paired sources, then Vineflower, then javap. A Vineflower stub that only says it could not decompile falls through to javap. vineflower forces a decompilation even when sources are paired. javap prints raw bytecode. Decompiled and disassembled text is marked ⚠ reconstructed. Allowed: vineflower, javap.
kotlinModestringHow to read a .kt body. psi (default) uses the compiler sidecar, then decompile. lexer brace-matches without the sidecar and sets provenance to lexer. auto uses the sidecar when that parse succeeds, otherwise the lexer. jdx_source and jdx_doc stay on psi. The lexer never downloads anything. Allowed: psi, lexer, auto. Default: psi.

jdx_source#

Returns a type's source file, or a slice of it, plus provenance. lines is a 1-based inclusive window A:B. around centers the slice on a member; context widens that window. maxLines caps the slice (default 200). Use it when one member is not enough. Use jdx_body for a single member body, jdx_outline for the member list, and jdx_doc for javadoc only. Paired sources are served verbatim. Without them, or when engine is set, the file is decompiled and the provenance line is marked ⚠ reconstructed. lines and around together are error code 3. An ambiguous type is error code 2 and lists every candidate. Parses with ASM and never loads or executes the inspected class.

ParameterTypeDescription
query requiredstringType reference. Fully qualified ('com.google.gson.Gson'), nested ('java.util.Map$Entry' — '$' separates nesting; 'Map.Entry' is also accepted), or a short name ('Gson', 'Map'). A member reference is not a type. An ambiguous short name lists every candidate instead of guessing. Examples: com.google.gson.Gson, java.util.Map, java.util.Map$Entry.
workspacestringNamed stored workspace to answer from (see jdx ws). Default is the workspace this server was started with. A name that does not exist is error code 4 and names jdx ws create. jars, coord, or discover can answer without a stored workspace when this call does not itself set workspace. This server never downloads. Examples: default.
jarsstringJar files, class directories, or globs, comma-separated — the same values as the CLI --jars flag. A JSON array of strings is also accepted. They merge in front of the selected workspace. When this call does not set workspace and the server's workspace does not exist, these roots are enough on their own (the JDK stays included). A path that itself contains a comma must be the only value. Examples: libs/app.jar, build/classes/java/main.
coordstringMaven coordinates group:artifact:version, comma-separated — the same values as the CLI --coord flag without --fetch. A JSON array of strings is also accepted. Resolved from the local Gradle and Maven caches only. This server never downloads: a coordinate that is not cached is error code 5 and names a cold jdx … --coord … --fetch prime, or pass jars instead. Merges in front of the workspace and behind jars. A malformed coordinate is error code 3. Examples: com.google.code.gson:gson:2.14.0.
discoverbooleanWhen true, and this call does not set workspace, and the server's stored workspace does not exist, walk up from the server's working directory for a Gradle or Maven project and use its class output plus dependency jars named in its build files. Never runs Gradle or Maven. A stored workspace that exists wins, and a workspace named on this call wins. Omit to keep the server default (false, unless jdx mcp was started with --discover). Pass false to skip discovery for this call. An absent project with no jars or coord is error code 4 naming jdx ws.
linesstringLine window A:B, 1-based and inclusive, with 1 <= A <= B (for example '120:160'). Mutually exclusive with around. Examples: 120:160.
aroundstringCenter the slice on this member reference. Mutually exclusive with lines. Examples: com.google.gson.Gson#toJson(java.lang.Object).
contextintegerExtra source lines on each side of the around member. Default 0. Applies with around. Default: 0.
lineNumbersbooleanPrefix every shown line with its 1-based number. Default: false.
maxLinesintegerMaximum lines of the slice. Default 200. Default: 200.
enginestringReconstruction engine. Omit to prefer paired sources, then Vineflower, then javap. A Vineflower stub that only says it could not decompile falls through to javap. vineflower forces a decompilation even when sources are paired. javap prints raw bytecode. Decompiled and disassembled text is marked ⚠ reconstructed. Allowed: vineflower, javap.

jdx_signature#

Returns one signature line per overload, with real parameter names, generics, throws and defaults, plus provenance. A name without a parameter list lists every overload. Use it for parameter info. Use jdx_body to read the code, jdx_doc for javadoc, and jdx_members to see every member of the type. A type reference with no member is error code 3. An ambiguous owner is error code 2 and lists every candidate. Kotlin signatures come from @Metadata unless view is jvm. Parses with ASM and never loads or executes the inspected class.

ParameterTypeDescription
query requiredstringMember reference, Javadoc-style. One overload: 'com.google.gson.Gson#toJson(java.lang.Object)'. Every overload: 'com.google.gson.Gson#toJson'. Simple parameter names ('toJson(Object)') and an exact JVM descriptor ('toJson(Ljava/lang/Object;)Ljava/lang/String;') are accepted. Constructor: 'com.google.gson.Gson#<init>(...)'. '#', '.' or '::' separates the member; fields need '#' or '::'. Nested types use '$' ('java.util.Map$Entry'). An ambiguous ref lists every candidate instead of guessing. Examples: com.google.gson.Gson#toJson(java.lang.Object), com.google.gson.Gson#toJson, com.google.gson.Gson#<init>(...).
workspacestringNamed stored workspace to answer from (see jdx ws). Default is the workspace this server was started with. A name that does not exist is error code 4 and names jdx ws create. jars, coord, or discover can answer without a stored workspace when this call does not itself set workspace. This server never downloads. Examples: default.
jarsstringJar files, class directories, or globs, comma-separated — the same values as the CLI --jars flag. A JSON array of strings is also accepted. They merge in front of the selected workspace. When this call does not set workspace and the server's workspace does not exist, these roots are enough on their own (the JDK stays included). A path that itself contains a comma must be the only value. Examples: libs/app.jar, build/classes/java/main.
coordstringMaven coordinates group:artifact:version, comma-separated — the same values as the CLI --coord flag without --fetch. A JSON array of strings is also accepted. Resolved from the local Gradle and Maven caches only. This server never downloads: a coordinate that is not cached is error code 5 and names a cold jdx … --coord … --fetch prime, or pass jars instead. Merges in front of the workspace and behind jars. A malformed coordinate is error code 3. Examples: com.google.code.gson:gson:2.14.0.
discoverbooleanWhen true, and this call does not set workspace, and the server's stored workspace does not exist, walk up from the server's working directory for a Gradle or Maven project and use its class output plus dependency jars named in its build files. Never runs Gradle or Maven. A stored workspace that exists wins, and a workspace named on this call wins. Omit to keep the server default (false, unless jdx mcp was started with --discover). Pass false to skip discovery for this call. An absent project with no jars or coord is error code 4 naming jdx ws.
includeSyntheticbooleanInclude bridge and synthetic members. Hidden when omitted or false. Default: false.
limitintegerMaximum rows shown (default 50). The rest become a truncation footer. Default: 50.
viewstringDeclaration projection. kotlin (default) is the true Kotlin declaration from @Metadata: suspend, properties, nullability, default arguments. jvm is the raw JVM projection: getters, Continuation parameters, mangled names. Allowed: kotlin, jvm. Default: kotlin.

jdx_doc#

Returns rendered javadoc for a type or member (HTML stripped, inline tags unwrapped) plus provenance. An undocumented member falls back to the nearest documenting supertype, and the answer says which one, unless no-inherited is true. Use it for the documentation. Use jdx_signature for the declaration, jdx_body for the code, and jdx_source for the file. The fallback stays on unless no-inherited is true; inherited is accepted for explicitness and inherited false leaves the fallback on. Setting both is error code 3. raw returns the verbatim comment. maxLines caps the text (default 200). An ambiguous member ref is error code 2 and lists every candidate. Never loads or executes the inspected class.

ParameterTypeDescription
query requiredstringType or member reference. Type: 'com.google.gson.Gson'. One overload: 'com.google.gson.Gson#toJson(java.lang.Object)'. Every overload: 'com.google.gson.Gson#toJson'. Nested types use '$' ('java.util.Map$Entry'). Short names ('Gson', 'Gson#toJson') are accepted. An ambiguous ref lists every candidate instead of guessing. Examples: com.google.gson.Gson, com.google.gson.Gson#toJson(java.lang.Object), com.google.gson.Gson#toJson.
workspacestringNamed stored workspace to answer from (see jdx ws). Default is the workspace this server was started with. A name that does not exist is error code 4 and names jdx ws create. jars, coord, or discover can answer without a stored workspace when this call does not itself set workspace. This server never downloads. Examples: default.
jarsstringJar files, class directories, or globs, comma-separated — the same values as the CLI --jars flag. A JSON array of strings is also accepted. They merge in front of the selected workspace. When this call does not set workspace and the server's workspace does not exist, these roots are enough on their own (the JDK stays included). A path that itself contains a comma must be the only value. Examples: libs/app.jar, build/classes/java/main.
coordstringMaven coordinates group:artifact:version, comma-separated — the same values as the CLI --coord flag without --fetch. A JSON array of strings is also accepted. Resolved from the local Gradle and Maven caches only. This server never downloads: a coordinate that is not cached is error code 5 and names a cold jdx … --coord … --fetch prime, or pass jars instead. Merges in front of the workspace and behind jars. A malformed coordinate is error code 3. Examples: com.google.code.gson:gson:2.14.0.
discoverbooleanWhen true, and this call does not set workspace, and the server's stored workspace does not exist, walk up from the server's working directory for a Gradle or Maven project and use its class output plus dependency jars named in its build files. Never runs Gradle or Maven. A stored workspace that exists wins, and a workspace named on this call wins. Omit to keep the server default (false, unless jdx mcp was started with --discover). Pass false to skip discovery for this call. An absent project with no jars or coord is error code 4 naming jdx ws.
inheritedbooleanAccepted for explicitness. The supertype documentation fallback stays on unless no-inherited is true. false does not disable the fallback. Setting this and no-inherited together is error code 3. Default: true.
no-inheritedbooleanOnly documentation written on this exact symbol. Mutually exclusive with inherited; setting both is error code 3. Default: false.
rawbooleanVerbatim javadoc comment instead of the rendered plain text. Default: false.
maxLinesintegerMaximum lines of doc text. Default 200. Default: 200.

Returns symbols whose names match the query. Each hit carries its canonical ref, kind and artifact. Globs by default. regex true uses a Java regex. fuzzy true retries a miss by Levenshtein distance. A bare word matches case-insensitively or as camel humps (HMap finds HashMap). Use it to find a name anywhere on the classpath. Use jdx_resolve to expand one short name into candidates, jdx_ls for packages, and jdx_usages or jdx_callers once you have a ref. Default kind all covers types, packages and modules only. It does not scan methods or fields; a miss under that default points at kind method. Pass kind method or field to scan members. Nothing matched is error code 1. Member scans parse bytecode with ASM and never load or execute classes.

ParameterTypeDescription
query requiredstringName pattern. Glob by default ('*Http*Client', 'Json*'). A bare word ('HMap', 'toJson') matches case-insensitively or as camel humps. With regex true, a Java regex. Examples: *Http*Client, toJson, HMap.
workspacestringNamed stored workspace to answer from (see jdx ws). Default is the workspace this server was started with. A name that does not exist is error code 4 and names jdx ws create. jars, coord, or discover can answer without a stored workspace when this call does not itself set workspace. This server never downloads. Examples: default.
jarsstringJar files, class directories, or globs, comma-separated — the same values as the CLI --jars flag. A JSON array of strings is also accepted. They merge in front of the selected workspace. When this call does not set workspace and the server's workspace does not exist, these roots are enough on their own (the JDK stays included). A path that itself contains a comma must be the only value. Examples: libs/app.jar, build/classes/java/main.
coordstringMaven coordinates group:artifact:version, comma-separated — the same values as the CLI --coord flag without --fetch. A JSON array of strings is also accepted. Resolved from the local Gradle and Maven caches only. This server never downloads: a coordinate that is not cached is error code 5 and names a cold jdx … --coord … --fetch prime, or pass jars instead. Merges in front of the workspace and behind jars. A malformed coordinate is error code 3. Examples: com.google.code.gson:gson:2.14.0.
discoverbooleanWhen true, and this call does not set workspace, and the server's stored workspace does not exist, walk up from the server's working directory for a Gradle or Maven project and use its class output plus dependency jars named in its build files. Never runs Gradle or Maven. A stored workspace that exists wins, and a workspace named on this call wins. Omit to keep the server default (false, unless jdx mcp was started with --discover). Pass false to skip discovery for this call. An absent project with no jars or coord is error code 4 naming jdx ws.
kindstringWhich symbols to scan. all (default) is types, packages and modules only. method or field is required to scan members. A miss under all points at method. Allowed: all, type, class, interface, enum, record, annotation, object, companion, method, field, package, module. Default: all.
regexbooleanTreat query as a Java regex. Omit or false for a substring or glob, depending on the tool. Default: false.
fuzzybooleanOn a miss, retry with Levenshtein distance. Off when omitted or false. Default: false.
instringOnly matches from artifacts whose label matches this glob (jar file name, JDK module, or source-directory name). Examples: gson*.
packagestringOnly symbols under this package. Examples: com.google.gson.
limitintegerMaximum rows shown (default 50). The rest become a truncation footer. Default: 50.

jdx_resolve#

Returns every candidate for a short or partial name (a type, a member, or a package). Each row has a kind, an artifact, and a copy-pasteable canonical ref. Use it when a stack trace or snippet says Gson and you need the fully qualified ref. Use jdx_search for globs and regexes. Use jdx_show or jdx_members once one candidate is the one you want. Several candidates are a successful result (code 0). No candidate is error code 1, with did-you-mean suggestions. Parses with ASM and never loads or executes classes.

ParameterTypeDescription
query requiredstringUnqualified or partial name. Examples: 'Gson', 'com.google.gson.Gson', 'Gson#toJson', a package name. Examples: Gson, com.google.gson.Gson, Gson#toJson.
workspacestringNamed stored workspace to answer from (see jdx ws). Default is the workspace this server was started with. A name that does not exist is error code 4 and names jdx ws create. jars, coord, or discover can answer without a stored workspace when this call does not itself set workspace. This server never downloads. Examples: default.
jarsstringJar files, class directories, or globs, comma-separated — the same values as the CLI --jars flag. A JSON array of strings is also accepted. They merge in front of the selected workspace. When this call does not set workspace and the server's workspace does not exist, these roots are enough on their own (the JDK stays included). A path that itself contains a comma must be the only value. Examples: libs/app.jar, build/classes/java/main.
coordstringMaven coordinates group:artifact:version, comma-separated — the same values as the CLI --coord flag without --fetch. A JSON array of strings is also accepted. Resolved from the local Gradle and Maven caches only. This server never downloads: a coordinate that is not cached is error code 5 and names a cold jdx … --coord … --fetch prime, or pass jars instead. Merges in front of the workspace and behind jars. A malformed coordinate is error code 3. Examples: com.google.code.gson:gson:2.14.0.
discoverbooleanWhen true, and this call does not set workspace, and the server's stored workspace does not exist, walk up from the server's working directory for a Gradle or Maven project and use its class output plus dependency jars named in its build files. Never runs Gradle or Maven. A stored workspace that exists wins, and a workspace named on this call wins. Omit to keep the server default (false, unless jdx mcp was started with --discover). Pass false to skip discovery for this call. An absent project with no jars or coord is error code 4 naming jdx ws.
limitintegerMaximum rows shown (default 50). The rest become a truncation footer. Default: 50.

jdx_ls#

Returns packages in the workspace roots. A glob lists matching packages with type counts. An exact package name lists the types in that package. Use it to browse a library by package. Use jdx_tree for one artifact's package tree, and jdx_search to find a symbol by name. Omit query to list every package. Reads class names from bytecode and never loads or executes classes.

ParameterTypeDescription
querystringPackage glob, or an exact package name to list its types. Empty lists every package. Examples: 'com.google.gson', 'com.google.*'. Examples: com.google.gson, com.google.*.
workspacestringNamed stored workspace to answer from (see jdx ws). Default is the workspace this server was started with. A name that does not exist is error code 4 and names jdx ws create. jars, coord, or discover can answer without a stored workspace when this call does not itself set workspace. This server never downloads. Examples: default.
jarsstringJar files, class directories, or globs, comma-separated — the same values as the CLI --jars flag. A JSON array of strings is also accepted. They merge in front of the selected workspace. When this call does not set workspace and the server's workspace does not exist, these roots are enough on their own (the JDK stays included). A path that itself contains a comma must be the only value. Examples: libs/app.jar, build/classes/java/main.
coordstringMaven coordinates group:artifact:version, comma-separated — the same values as the CLI --coord flag without --fetch. A JSON array of strings is also accepted. Resolved from the local Gradle and Maven caches only. This server never downloads: a coordinate that is not cached is error code 5 and names a cold jdx … --coord … --fetch prime, or pass jars instead. Merges in front of the workspace and behind jars. A malformed coordinate is error code 3. Examples: com.google.code.gson:gson:2.14.0.
discoverbooleanWhen true, and this call does not set workspace, and the server's stored workspace does not exist, walk up from the server's working directory for a Gradle or Maven project and use its class output plus dependency jars named in its build files. Never runs Gradle or Maven. A stored workspace that exists wins, and a workspace named on this call wins. Omit to keep the server default (false, unless jdx mcp was started with --discover). Pass false to skip discovery for this call. An absent project with no jars or coord is error code 4 naming jdx ws.
limitintegerMaximum rows shown (default 50). The rest become a truncation footer. Default: 50.

jdx_tree#

Returns artifacts and their package trees. query is an artifact-label glob. Omit it to cover every artifact. Use it to see how a jar is laid out. Use jdx_ls to list packages or the types in one exact package, and jdx_search to find a symbol. depth 0 shows only the top package segments (default depth is 8). counts adds a class count on each node. Reads class names from bytecode and never loads or executes classes.

ParameterTypeDescription
querystringArtifact-label glob, for example 'gson*'. Empty covers every artifact. Examples: gson*.
workspacestringNamed stored workspace to answer from (see jdx ws). Default is the workspace this server was started with. A name that does not exist is error code 4 and names jdx ws create. jars, coord, or discover can answer without a stored workspace when this call does not itself set workspace. This server never downloads. Examples: default.
jarsstringJar files, class directories, or globs, comma-separated — the same values as the CLI --jars flag. A JSON array of strings is also accepted. They merge in front of the selected workspace. When this call does not set workspace and the server's workspace does not exist, these roots are enough on their own (the JDK stays included). A path that itself contains a comma must be the only value. Examples: libs/app.jar, build/classes/java/main.
coordstringMaven coordinates group:artifact:version, comma-separated — the same values as the CLI --coord flag without --fetch. A JSON array of strings is also accepted. Resolved from the local Gradle and Maven caches only. This server never downloads: a coordinate that is not cached is error code 5 and names a cold jdx … --coord … --fetch prime, or pass jars instead. Merges in front of the workspace and behind jars. A malformed coordinate is error code 3. Examples: com.google.code.gson:gson:2.14.0.
discoverbooleanWhen true, and this call does not set workspace, and the server's stored workspace does not exist, walk up from the server's working directory for a Gradle or Maven project and use its class output plus dependency jars named in its build files. Never runs Gradle or Maven. A stored workspace that exists wins, and a workspace named on this call wins. Omit to keep the server default (false, unless jdx mcp was started with --discover). Pass false to skip discovery for this call. An absent project with no jars or coord is error code 4 naming jdx ws.
depthintegerHow many package segments to show. Default 8. 0 shows only the top segments. Must be >= 0. Default: 8.
countsbooleanAnnotate each node with its class count. Default: false.
limitintegerMaximum rows shown (default 50). The rest become a truncation footer. Default: 50.

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. Bytecode rows carry file:line when the class has a LineNumberTable. Use it for find-usages across every edge kind. Use jdx_callers for the incoming call tree only, jdx_calls for what a method calls, jdx_samples for a few ranked snippets, and jdx_annotated to start from an annotation or a recipe alias. kind throw is methods that declare the type in throws, not ATHROW sites. kind impl and kind override are rejected (error code 3); use jdx_hierarchy and jdx_implementors. Source-directory hits are textual whole-word mentions and show up only as ref. where requires kind annotation. An ambiguous short name is error code 2 and lists every candidate. Scans bytecode roots on each call (no persistent index) and never loads or executes classes.

ParameterTypeDescription
query requiredstringType or member reference. Type: 'com.google.gson.Gson'. One overload: 'com.google.gson.Gson#toJson(java.lang.Object)'. Every overload: 'com.google.gson.Gson#toJson'. Nested types use '$' ('java.util.Map$Entry'). Short names ('Gson', 'Gson#toJson') are accepted. An ambiguous ref lists every candidate instead of guessing. Examples: com.google.gson.Gson, com.google.gson.Gson#toJson(java.lang.Object), com.google.gson.Gson#toJson.
workspacestringNamed stored workspace to answer from (see jdx ws). Default is the workspace this server was started with. A name that does not exist is error code 4 and names jdx ws create. jars, coord, or discover can answer without a stored workspace when this call does not itself set workspace. This server never downloads. Examples: default.
jarsstringJar files, class directories, or globs, comma-separated — the same values as the CLI --jars flag. A JSON array of strings is also accepted. They merge in front of the selected workspace. When this call does not set workspace and the server's workspace does not exist, these roots are enough on their own (the JDK stays included). A path that itself contains a comma must be the only value. Examples: libs/app.jar, build/classes/java/main.
coordstringMaven coordinates group:artifact:version, comma-separated — the same values as the CLI --coord flag without --fetch. A JSON array of strings is also accepted. Resolved from the local Gradle and Maven caches only. This server never downloads: a coordinate that is not cached is error code 5 and names a cold jdx … --coord … --fetch prime, or pass jars instead. Merges in front of the workspace and behind jars. A malformed coordinate is error code 3. Examples: com.google.code.gson:gson:2.14.0.
discoverbooleanWhen true, and this call does not set workspace, and the server's stored workspace does not exist, walk up from the server's working directory for a Gradle or Maven project and use its class output plus dependency jars named in its build files. Never runs Gradle or Maven. A stored workspace that exists wins, and a workspace named on this call wins. Omit to keep the server default (false, unless jdx mcp was started with --discover). Pass false to skip discovery for this call. An absent project with no jars or coord is error code 4 naming jdx ws.
kindstringReference edge to keep. throw is throws declarations, not ATHROW sites. annotation lists classes and members carrying the annotation; where applies only then. impl and override are not usages: they error (code 3) and name jdx_hierarchy and jdx_implementors. all (default) keeps every supported kind. Allowed: all, call, read, write, ref, new, throw, annotation. Default: all.
instringOnly matches from artifacts whose label matches this glob (jar file name, JDK module, or source-directory name). Examples: gson*.
excludestringSkip matches from artifacts whose label matches this glob (jar file name, JDK module, or source-directory name). Examples: *-sources.jar.
limitintegerMaximum rows shown (default 50). The rest become a truncation footer. Default: 50.
contextintegerSource lines around each hit. Default 0 (location only). Slices paired sources or source directories around the line; missing sources stay location-only. Capped at 15. Default: 0.
wherestringComma-separated annotation value predicates key=value, AND-ed. Requires kind=annotation. Example: 'forRemoval=true'. Dotted keys walk nested annotations ('nested.k=1'). Brace arrays match order-insensitively. Enum constants match by simple name or Type.CONSTANT ('priority=HIGHEST'). Omitted elements are filled from AnnotationDefault for matching only. The same filter inline is query '@Type(k=v)' with kind annotation. Examples: forRemoval=true.

jdx_annotated#

Returns classes and members that carry an annotation. Each row includes the rendered use, for example @java.lang.Deprecated(forRemoval=true). Use it as the annotation-driven view. The listing matches jdx_usages with kind annotation, and query also accepts recipe aliases: deprecated (java.lang.Deprecated), forRemoval (@Deprecated(forRemoval=true)), test and junit5 (org.junit.jupiter.api.Test), junit4 (org.junit.Test), bean (org.springframework.context.annotation.Bean). A type or an annotation-use '@com.example.Tag(k=v)' (leading @ accepted) works too. Use jdx_usages for calls, reads, writes and the other edge kinds. An ambiguous type is error code 2 and lists every candidate. where clauses are AND-ed. Scans bytecode on each call and never loads or executes classes.

ParameterTypeDescription
query requiredstringAnnotation type ('java.lang.Deprecated'), annotation-use ('@java.lang.Deprecated(forRemoval=true)' or without the leading @), or a recipe alias: deprecated, forRemoval, test, junit5, junit4, bean. Examples: java.lang.Deprecated, @java.lang.Deprecated(forRemoval=true), forRemoval.
workspacestringNamed stored workspace to answer from (see jdx ws). Default is the workspace this server was started with. A name that does not exist is error code 4 and names jdx ws create. jars, coord, or discover can answer without a stored workspace when this call does not itself set workspace. This server never downloads. Examples: default.
jarsstringJar files, class directories, or globs, comma-separated — the same values as the CLI --jars flag. A JSON array of strings is also accepted. They merge in front of the selected workspace. When this call does not set workspace and the server's workspace does not exist, these roots are enough on their own (the JDK stays included). A path that itself contains a comma must be the only value. Examples: libs/app.jar, build/classes/java/main.
coordstringMaven coordinates group:artifact:version, comma-separated — the same values as the CLI --coord flag without --fetch. A JSON array of strings is also accepted. Resolved from the local Gradle and Maven caches only. This server never downloads: a coordinate that is not cached is error code 5 and names a cold jdx … --coord … --fetch prime, or pass jars instead. Merges in front of the workspace and behind jars. A malformed coordinate is error code 3. Examples: com.google.code.gson:gson:2.14.0.
discoverbooleanWhen true, and this call does not set workspace, and the server's stored workspace does not exist, walk up from the server's working directory for a Gradle or Maven project and use its class output plus dependency jars named in its build files. Never runs Gradle or Maven. A stored workspace that exists wins, and a workspace named on this call wins. Omit to keep the server default (false, unless jdx mcp was started with --discover). Pass false to skip discovery for this call. An absent project with no jars or coord is error code 4 naming jdx ws.
instringOnly matches from artifacts whose label matches this glob (jar file name, JDK module, or source-directory name). Examples: gson*.
excludestringSkip matches from artifacts whose label matches this glob (jar file name, JDK module, or source-directory name). Examples: *-sources.jar.
limitintegerMaximum rows shown (default 50). The rest become a truncation footer. Default: 50.
contextintegerSource lines around each hit. Default 0 (location only). Capped at 15. Default: 0.
wherestringComma-separated annotation value predicates key=value, AND-ed. Example: 'forRemoval=true'. Dotted keys walk nested annotations. Brace arrays match order-insensitively. Enum constants match by simple name or Type.CONSTANT ('priority=HIGHEST'). Omitted elements are filled from AnnotationDefault for matching only. The same filter inline is query '@Type(k=v)'. Examples: forRemoval=true.

jdx_hierarchy#

Returns the type hierarchy: supertypes upward, interfaces included, and subtypes downward across the workspace. When both up and down are omitted or false, both directions are walked. Set one of them true and the other false to walk only that way. Use it for the full picture. Use jdx_implementors for subtypes and implementors only. A member reference is error code 3. direct limits the walk to one level. in and exclude filter subtypes by artifact label. Omit depth for an unlimited walk (must be >= 1 when set). An ambiguous short name is error code 2 and lists every candidate. Scans bytecode roots on each call and never loads or executes classes.

ParameterTypeDescription
query requiredstringType reference. Fully qualified ('com.google.gson.Gson'), nested ('java.util.Map$Entry' — '$' separates nesting; 'Map.Entry' is also accepted), or a short name ('Gson', 'Map'). A member reference is not a type. An ambiguous short name lists every candidate instead of guessing. Examples: com.google.gson.Gson, java.util.Map, java.util.Map$Entry.
workspacestringNamed stored workspace to answer from (see jdx ws). Default is the workspace this server was started with. A name that does not exist is error code 4 and names jdx ws create. jars, coord, or discover can answer without a stored workspace when this call does not itself set workspace. This server never downloads. Examples: default.
jarsstringJar files, class directories, or globs, comma-separated — the same values as the CLI --jars flag. A JSON array of strings is also accepted. They merge in front of the selected workspace. When this call does not set workspace and the server's workspace does not exist, these roots are enough on their own (the JDK stays included). A path that itself contains a comma must be the only value. Examples: libs/app.jar, build/classes/java/main.
coordstringMaven coordinates group:artifact:version, comma-separated — the same values as the CLI --coord flag without --fetch. A JSON array of strings is also accepted. Resolved from the local Gradle and Maven caches only. This server never downloads: a coordinate that is not cached is error code 5 and names a cold jdx … --coord … --fetch prime, or pass jars instead. Merges in front of the workspace and behind jars. A malformed coordinate is error code 3. Examples: com.google.code.gson:gson:2.14.0.
discoverbooleanWhen true, and this call does not set workspace, and the server's stored workspace does not exist, walk up from the server's working directory for a Gradle or Maven project and use its class output plus dependency jars named in its build files. Never runs Gradle or Maven. A stored workspace that exists wins, and a workspace named on this call wins. Omit to keep the server default (false, unless jdx mcp was started with --discover). Pass false to skip discovery for this call. An absent project with no jars or coord is error code 4 naming jdx ws.
upbooleanWalk supertypes. false is the flag's absent value, not 'skip supertypes'. When both up and down are omitted or false, both directions are walked. Supertypes only: up true and down false. Default: false.
downbooleanWalk subtypes. false is the flag's absent value, not 'skip subtypes'. When both up and down are omitted or false, both directions are walked. Subtypes only: down true and up false. Default: false.
directbooleanDirect parents and children only (one level). Default: false.
depthintegerMaximum transitive levels. Omit for unlimited. Must be >= 1. Ignored when direct is true (that walk is one level).
instringOnly matches from artifacts whose label matches this glob (jar file name, JDK module, or source-directory name). Examples: gson*.
excludestringSkip matches from artifacts whose label matches this glob (jar file name, JDK module, or source-directory name). Examples: *-sources.jar.
limitintegerMaximum rows shown (default 50). The rest become a truncation footer. Default: 50.

jdx_implementors#

Returns who implements this interface or extends this class, transitively. This is the downward half of the hierarchy. Use it for "who implements this?". Use jdx_hierarchy when you also need supertypes. direct keeps only immediate children. A member reference is error code 3. Omit depth for an unlimited walk. An ambiguous short name is error code 2 and lists every candidate. Scans bytecode roots on each call and never loads or executes classes.

ParameterTypeDescription
query requiredstringType reference. Fully qualified ('com.google.gson.Gson'), nested ('java.util.Map$Entry' — '$' separates nesting; 'Map.Entry' is also accepted), or a short name ('Gson', 'Map'). A member reference is not a type. An ambiguous short name lists every candidate instead of guessing. Examples: com.google.gson.Gson, java.util.Map, java.util.Map$Entry.
workspacestringNamed stored workspace to answer from (see jdx ws). Default is the workspace this server was started with. A name that does not exist is error code 4 and names jdx ws create. jars, coord, or discover can answer without a stored workspace when this call does not itself set workspace. This server never downloads. Examples: default.
jarsstringJar files, class directories, or globs, comma-separated — the same values as the CLI --jars flag. A JSON array of strings is also accepted. They merge in front of the selected workspace. When this call does not set workspace and the server's workspace does not exist, these roots are enough on their own (the JDK stays included). A path that itself contains a comma must be the only value. Examples: libs/app.jar, build/classes/java/main.
coordstringMaven coordinates group:artifact:version, comma-separated — the same values as the CLI --coord flag without --fetch. A JSON array of strings is also accepted. Resolved from the local Gradle and Maven caches only. This server never downloads: a coordinate that is not cached is error code 5 and names a cold jdx … --coord … --fetch prime, or pass jars instead. Merges in front of the workspace and behind jars. A malformed coordinate is error code 3. Examples: com.google.code.gson:gson:2.14.0.
discoverbooleanWhen true, and this call does not set workspace, and the server's stored workspace does not exist, walk up from the server's working directory for a Gradle or Maven project and use its class output plus dependency jars named in its build files. Never runs Gradle or Maven. A stored workspace that exists wins, and a workspace named on this call wins. Omit to keep the server default (false, unless jdx mcp was started with --discover). Pass false to skip discovery for this call. An absent project with no jars or coord is error code 4 naming jdx ws.
directbooleanDirect implementors only (one level). Default: false.
depthintegerMaximum transitive levels. Omit for unlimited. Must be >= 1.
instringOnly matches from artifacts whose label matches this glob (jar file name, JDK module, or source-directory name). Examples: gson*.
excludestringSkip matches from artifacts whose label matches this glob (jar file name, JDK module, or source-directory name). Examples: *-sources.jar.
limitintegerMaximum rows shown (default 50). The rest become a truncation footer. Default: 50.

jdx_callers#

Returns who calls this method, as a depth-bounded tree (default depth 1, direct callers). Override-aware: call sites through overrides and declaring supertypes are included, and so are calls naming a subtype that only inherits the method (an interface default called as event.setCanceled). An inherited member can be queried through the subtype. Constructors, static methods and private methods stay exact. exact true matches invoke owners only. A cycle is marked …(cycle). Use it for the incoming call hierarchy. Use jdx_usages for every reference kind (reads, writes, annotations, throws declarations) as a flat list, jdx_calls for what this method calls, and jdx_samples for ranked example snippets. Type and field references are error code 3. An ambiguous short name is error code 2 and lists every candidate. Scans bytecode roots on each call and never loads or executes classes.

ParameterTypeDescription
query requiredstringMember reference, Javadoc-style. One overload: 'com.google.gson.Gson#toJson(java.lang.Object)'. Every overload: 'com.google.gson.Gson#toJson'. Simple parameter names ('toJson(Object)') and an exact JVM descriptor ('toJson(Ljava/lang/Object;)Ljava/lang/String;') are accepted. Constructor: 'com.google.gson.Gson#<init>(...)'. '#', '.' or '::' separates the member; fields need '#' or '::'. Nested types use '$' ('java.util.Map$Entry'). An ambiguous ref lists every candidate instead of guessing. Examples: com.google.gson.Gson#toJson(java.lang.Object), com.google.gson.Gson#toJson, com.google.gson.Gson#<init>(...).
workspacestringNamed stored workspace to answer from (see jdx ws). Default is the workspace this server was started with. A name that does not exist is error code 4 and names jdx ws create. jars, coord, or discover can answer without a stored workspace when this call does not itself set workspace. This server never downloads. Examples: default.
jarsstringJar files, class directories, or globs, comma-separated — the same values as the CLI --jars flag. A JSON array of strings is also accepted. They merge in front of the selected workspace. When this call does not set workspace and the server's workspace does not exist, these roots are enough on their own (the JDK stays included). A path that itself contains a comma must be the only value. Examples: libs/app.jar, build/classes/java/main.
coordstringMaven coordinates group:artifact:version, comma-separated — the same values as the CLI --coord flag without --fetch. A JSON array of strings is also accepted. Resolved from the local Gradle and Maven caches only. This server never downloads: a coordinate that is not cached is error code 5 and names a cold jdx … --coord … --fetch prime, or pass jars instead. Merges in front of the workspace and behind jars. A malformed coordinate is error code 3. Examples: com.google.code.gson:gson:2.14.0.
discoverbooleanWhen true, and this call does not set workspace, and the server's stored workspace does not exist, walk up from the server's working directory for a Gradle or Maven project and use its class output plus dependency jars named in its build files. Never runs Gradle or Maven. A stored workspace that exists wins, and a workspace named on this call wins. Omit to keep the server default (false, unless jdx mcp was started with --discover). Pass false to skip discovery for this call. An absent project with no jars or coord is error code 4 naming jdx ws.
depthintegerHow many caller levels to walk. Default 1 (direct callers). Must be >= 1. Default: 1.
instringOnly matches from artifacts whose label matches this glob (jar file name, JDK module, or source-directory name). Examples: gson*.
excludestringSkip matches from artifacts whose label matches this glob (jar file name, JDK module, or source-directory name). Examples: *-sources.jar.
limitintegerMaximum rows shown (default 50). The rest become a truncation footer. Default: 50.
exactbooleanMatch invoke owners exactly. Omit or false for the default, which also includes calls through overrides and declaring supertypes. Constructors, static methods and private methods are exact either way. Default: false.

jdx_calls#

Returns what this method calls, as a depth-bounded tree (default depth 1, direct callees). Callees are bytecode-exact: the invoke instruction names one owner. Override expansion is only on jdx_callers. A cycle is marked …(cycle). Use it for the outgoing call hierarchy. Use jdx_callers for incoming callers, jdx_usages for a flat list of every reference kind, and jdx_samples for example snippets. externalOnly drops callees in the method's own artifact. Type and field references are error code 3. An ambiguous short name is error code 2 and lists every candidate. Scans bytecode roots on each call and never loads or executes classes.

ParameterTypeDescription
query requiredstringMember reference, Javadoc-style. One overload: 'com.google.gson.Gson#toJson(java.lang.Object)'. Every overload: 'com.google.gson.Gson#toJson'. Simple parameter names ('toJson(Object)') and an exact JVM descriptor ('toJson(Ljava/lang/Object;)Ljava/lang/String;') are accepted. Constructor: 'com.google.gson.Gson#<init>(...)'. '#', '.' or '::' separates the member; fields need '#' or '::'. Nested types use '$' ('java.util.Map$Entry'). An ambiguous ref lists every candidate instead of guessing. Examples: com.google.gson.Gson#toJson(java.lang.Object), com.google.gson.Gson#toJson, com.google.gson.Gson#<init>(...).
workspacestringNamed stored workspace to answer from (see jdx ws). Default is the workspace this server was started with. A name that does not exist is error code 4 and names jdx ws create. jars, coord, or discover can answer without a stored workspace when this call does not itself set workspace. This server never downloads. Examples: default.
jarsstringJar files, class directories, or globs, comma-separated — the same values as the CLI --jars flag. A JSON array of strings is also accepted. They merge in front of the selected workspace. When this call does not set workspace and the server's workspace does not exist, these roots are enough on their own (the JDK stays included). A path that itself contains a comma must be the only value. Examples: libs/app.jar, build/classes/java/main.
coordstringMaven coordinates group:artifact:version, comma-separated — the same values as the CLI --coord flag without --fetch. A JSON array of strings is also accepted. Resolved from the local Gradle and Maven caches only. This server never downloads: a coordinate that is not cached is error code 5 and names a cold jdx … --coord … --fetch prime, or pass jars instead. Merges in front of the workspace and behind jars. A malformed coordinate is error code 3. Examples: com.google.code.gson:gson:2.14.0.
discoverbooleanWhen true, and this call does not set workspace, and the server's stored workspace does not exist, walk up from the server's working directory for a Gradle or Maven project and use its class output plus dependency jars named in its build files. Never runs Gradle or Maven. A stored workspace that exists wins, and a workspace named on this call wins. Omit to keep the server default (false, unless jdx mcp was started with --discover). Pass false to skip discovery for this call. An absent project with no jars or coord is error code 4 naming jdx ws.
depthintegerHow many callee levels to walk. Default 1 (direct callees). Must be >= 1. Default: 1.
instringOnly matches from artifacts whose label matches this glob (jar file name, JDK module, or source-directory name). Examples: gson*.
excludestringSkip matches from artifacts whose label matches this glob (jar file name, JDK module, or source-directory name). Examples: *-sources.jar.
externalOnlybooleanDrop callees whose artifact is the same as the target method's. Leaves the dependency view. Default: false.
limitintegerMaximum rows shown (default 50). The rest become a truncation footer. Default: 50.

jdx_samples#

Returns a few real call sites for a symbol, ranked non-test before test, non-generated before generated, and fuller overloads first. Each row is the calling method. Paired sources supply an enclosing-method snippet; without them the row is location-only. The default limit is 3. maxLines caps each snippet (default 15). Use it to see how a symbol is actually called. Use jdx_usages for the full reference list, jdx_callers for the incoming call tree, and jdx_body to open one caller. A type ref matches calls to any of its members. A field ref is error code 3. An ambiguous short name is error code 2 and lists every candidate. Scans bytecode roots on each call and never loads or executes classes.

ParameterTypeDescription
query requiredstringType or member reference. Type: 'com.google.gson.Gson'. One overload: 'com.google.gson.Gson#toJson(java.lang.Object)'. Every overload: 'com.google.gson.Gson#toJson'. Nested types use '$' ('java.util.Map$Entry'). Short names ('Gson', 'Gson#toJson') are accepted. An ambiguous ref lists every candidate instead of guessing. Examples: com.google.gson.Gson, com.google.gson.Gson#toJson(java.lang.Object), com.google.gson.Gson#toJson.
workspacestringNamed stored workspace to answer from (see jdx ws). Default is the workspace this server was started with. A name that does not exist is error code 4 and names jdx ws create. jars, coord, or discover can answer without a stored workspace when this call does not itself set workspace. This server never downloads. Examples: default.
jarsstringJar files, class directories, or globs, comma-separated — the same values as the CLI --jars flag. A JSON array of strings is also accepted. They merge in front of the selected workspace. When this call does not set workspace and the server's workspace does not exist, these roots are enough on their own (the JDK stays included). A path that itself contains a comma must be the only value. Examples: libs/app.jar, build/classes/java/main.
coordstringMaven coordinates group:artifact:version, comma-separated — the same values as the CLI --coord flag without --fetch. A JSON array of strings is also accepted. Resolved from the local Gradle and Maven caches only. This server never downloads: a coordinate that is not cached is error code 5 and names a cold jdx … --coord … --fetch prime, or pass jars instead. Merges in front of the workspace and behind jars. A malformed coordinate is error code 3. Examples: com.google.code.gson:gson:2.14.0.
discoverbooleanWhen true, and this call does not set workspace, and the server's stored workspace does not exist, walk up from the server's working directory for a Gradle or Maven project and use its class output plus dependency jars named in its build files. Never runs Gradle or Maven. A stored workspace that exists wins, and a workspace named on this call wins. Omit to keep the server default (false, unless jdx mcp was started with --discover). Pass false to skip discovery for this call. An absent project with no jars or coord is error code 4 naming jdx ws.
limitintegerMaximum rows shown (default 3). The rest become a truncation footer. Default: 3.
instringOnly matches from artifacts whose label matches this glob (jar file name, JDK module, or source-directory name). Examples: gson*.
excludestringSkip matches from artifacts whose label matches this glob (jar file name, JDK module, or source-directory name). Examples: *-sources.jar.
preferSourcesbooleanRank callers from artifacts that have paired sources first. Default: false.
maxLinesintegerMaximum source lines shown per snippet. Default 15. Default: 15.

jdx_literals#

Returns string constants that contain query: bytecode LDC loads, String field ConstantValue entries, and .properties resource keys and values. A properties hit is reported as prop path#key with the property value. Minecraft lang files (assets/<namespace>/lang/*.json, and pre-1.13 *.lang key=value files) are read too: a hit is lang path#key with the translated text. Use it to find a literal such as a message key or a URL fragment. Use jdx_search to find symbols by name, and jdx_resources to list resource paths rather than property text. Substring match by default. regex true treats query as a Java regex. ignoreCase applies to substring mode only. Nothing matched is error code 1. Scans bytecode and resource entries on each call and never loads or executes classes.

ParameterTypeDescription
query requiredstringSubstring to find in string constants and .properties keys or values. With regex true, a Java regex. Examples: plugin.update.
workspacestringNamed stored workspace to answer from (see jdx ws). Default is the workspace this server was started with. A name that does not exist is error code 4 and names jdx ws create. jars, coord, or discover can answer without a stored workspace when this call does not itself set workspace. This server never downloads. Examples: default.
jarsstringJar files, class directories, or globs, comma-separated — the same values as the CLI --jars flag. A JSON array of strings is also accepted. They merge in front of the selected workspace. When this call does not set workspace and the server's workspace does not exist, these roots are enough on their own (the JDK stays included). A path that itself contains a comma must be the only value. Examples: libs/app.jar, build/classes/java/main.
coordstringMaven coordinates group:artifact:version, comma-separated — the same values as the CLI --coord flag without --fetch. A JSON array of strings is also accepted. Resolved from the local Gradle and Maven caches only. This server never downloads: a coordinate that is not cached is error code 5 and names a cold jdx … --coord … --fetch prime, or pass jars instead. Merges in front of the workspace and behind jars. A malformed coordinate is error code 3. Examples: com.google.code.gson:gson:2.14.0.
discoverbooleanWhen true, and this call does not set workspace, and the server's stored workspace does not exist, walk up from the server's working directory for a Gradle or Maven project and use its class output plus dependency jars named in its build files. Never runs Gradle or Maven. A stored workspace that exists wins, and a workspace named on this call wins. Omit to keep the server default (false, unless jdx mcp was started with --discover). Pass false to skip discovery for this call. An absent project with no jars or coord is error code 4 naming jdx ws.
regexbooleanTreat query as a Java regex. Omit or false for a substring or glob, depending on the tool. Default: false.
ignoreCasebooleanCase-insensitive substring match. Ignored when regex is true; put (?i) in the pattern there. Default: false.
instringOnly matches from artifacts whose label matches this glob (jar file name, JDK module, or source-directory name). Examples: gson*.
excludestringSkip matches from artifacts whose label matches this glob (jar file name, JDK module, or source-directory name). Examples: *-sources.jar.
limitintegerMaximum rows shown (default 50). The rest become a truncation footer. Default: 50.

jdx_services#

Returns META-INF/services SPI registrations across the workspace jars: the service interface and each provider class. Use it to see who provides a service interface. JPMS module-info provides and uses are jdx_modules; this tool reads only META-INF/services. Omit query to list every registration. A query matches the service interface name or a provider class name. Nothing matched is error code 1. Reads the service files as text and never loads or executes classes.

ParameterTypeDescription
querystringService interface or provider class name to match, as a substring. Empty lists every registration. Example: 'java.sql.Driver'. With regex true, a Java regex. Examples: java.sql.Driver.
workspacestringNamed stored workspace to answer from (see jdx ws). Default is the workspace this server was started with. A name that does not exist is error code 4 and names jdx ws create. jars, coord, or discover can answer without a stored workspace when this call does not itself set workspace. This server never downloads. Examples: default.
jarsstringJar files, class directories, or globs, comma-separated — the same values as the CLI --jars flag. A JSON array of strings is also accepted. They merge in front of the selected workspace. When this call does not set workspace and the server's workspace does not exist, these roots are enough on their own (the JDK stays included). A path that itself contains a comma must be the only value. Examples: libs/app.jar, build/classes/java/main.
coordstringMaven coordinates group:artifact:version, comma-separated — the same values as the CLI --coord flag without --fetch. A JSON array of strings is also accepted. Resolved from the local Gradle and Maven caches only. This server never downloads: a coordinate that is not cached is error code 5 and names a cold jdx … --coord … --fetch prime, or pass jars instead. Merges in front of the workspace and behind jars. A malformed coordinate is error code 3. Examples: com.google.code.gson:gson:2.14.0.
discoverbooleanWhen true, and this call does not set workspace, and the server's stored workspace does not exist, walk up from the server's working directory for a Gradle or Maven project and use its class output plus dependency jars named in its build files. Never runs Gradle or Maven. A stored workspace that exists wins, and a workspace named on this call wins. Omit to keep the server default (false, unless jdx mcp was started with --discover). Pass false to skip discovery for this call. An absent project with no jars or coord is error code 4 naming jdx ws.
regexbooleanTreat query as a Java regex. Omit or false for a substring or glob, depending on the tool. Default: false.
ignoreCasebooleanCase-insensitive substring match. Ignored when regex is true; put (?i) in the pattern there. Default: false.
instringOnly matches from artifacts whose label matches this glob (jar file name, JDK module, or source-directory name). Examples: gson*.
excludestringSkip matches from artifacts whose label matches this glob (jar file name, JDK module, or source-directory name). Examples: *-sources.jar.
limitintegerMaximum rows shown (default 50). The rest become a truncation footer. Default: 50.

jdx_modules#

Returns JPMS module-info descriptors: requires, exports, opens, uses and provides. Use it for module metadata. META-INF/services registrations are jdx_services. MANIFEST.MF attributes are jdx_manifest. This tool reads module-info only. Omit query to list every module. A query matches the module name, an exported or opened package, a uses or provides service, or a provider class. Nothing matched is error code 1. Parses module-info with ASM and never loads or executes classes.

ParameterTypeDescription
querystringSubstring matched against the module name, an exported or opened package, a uses or provides service, or a provider class. Empty lists every module. Example: 'java.sql'. With regex true, a Java regex. Examples: java.sql.
workspacestringNamed stored workspace to answer from (see jdx ws). Default is the workspace this server was started with. A name that does not exist is error code 4 and names jdx ws create. jars, coord, or discover can answer without a stored workspace when this call does not itself set workspace. This server never downloads. Examples: default.
jarsstringJar files, class directories, or globs, comma-separated — the same values as the CLI --jars flag. A JSON array of strings is also accepted. They merge in front of the selected workspace. When this call does not set workspace and the server's workspace does not exist, these roots are enough on their own (the JDK stays included). A path that itself contains a comma must be the only value. Examples: libs/app.jar, build/classes/java/main.
coordstringMaven coordinates group:artifact:version, comma-separated — the same values as the CLI --coord flag without --fetch. A JSON array of strings is also accepted. Resolved from the local Gradle and Maven caches only. This server never downloads: a coordinate that is not cached is error code 5 and names a cold jdx … --coord … --fetch prime, or pass jars instead. Merges in front of the workspace and behind jars. A malformed coordinate is error code 3. Examples: com.google.code.gson:gson:2.14.0.
discoverbooleanWhen true, and this call does not set workspace, and the server's stored workspace does not exist, walk up from the server's working directory for a Gradle or Maven project and use its class output plus dependency jars named in its build files. Never runs Gradle or Maven. A stored workspace that exists wins, and a workspace named on this call wins. Omit to keep the server default (false, unless jdx mcp was started with --discover). Pass false to skip discovery for this call. An absent project with no jars or coord is error code 4 naming jdx ws.
regexbooleanTreat query as a Java regex. Omit or false for a substring or glob, depending on the tool. Default: false.
ignoreCasebooleanCase-insensitive substring match. Ignored when regex is true; put (?i) in the pattern there. Default: false.
instringOnly matches from artifacts whose label matches this glob (jar file name, JDK module, or source-directory name). Examples: gson*.
excludestringSkip matches from artifacts whose label matches this glob (jar file name, JDK module, or source-directory name). Examples: *-sources.jar.
limitintegerMaximum rows shown (default 50). The rest become a truncation footer. Default: 50.

jdx_manifest#

Returns META-INF/MANIFEST.MF attributes. The default section is the main attributes (Main-Class, Implementation-Version, Multi-Release, and the rest). entries true switches to per-entry JarEntry attributes (Name sections such as digests and Content-Type). Use it for manifest metadata. Resource paths and file text are jdx_resources. module-info is jdx_modules. This tool does not extract resource bytes. Omit query to list every attribute in the selected section. A query matches the attribute name or value, and the entry path when entries is true. Nothing matched is error code 1. Reads manifest text and never loads or executes classes.

ParameterTypeDescription
querystringSubstring matched against the attribute name or value, and against the entry path when entries is true. Empty lists every attribute in the selected section. Example: 'Multi-Release'. With regex true, a Java regex. Examples: Multi-Release.
workspacestringNamed stored workspace to answer from (see jdx ws). Default is the workspace this server was started with. A name that does not exist is error code 4 and names jdx ws create. jars, coord, or discover can answer without a stored workspace when this call does not itself set workspace. This server never downloads. Examples: default.
jarsstringJar files, class directories, or globs, comma-separated — the same values as the CLI --jars flag. A JSON array of strings is also accepted. They merge in front of the selected workspace. When this call does not set workspace and the server's workspace does not exist, these roots are enough on their own (the JDK stays included). A path that itself contains a comma must be the only value. Examples: libs/app.jar, build/classes/java/main.
coordstringMaven coordinates group:artifact:version, comma-separated — the same values as the CLI --coord flag without --fetch. A JSON array of strings is also accepted. Resolved from the local Gradle and Maven caches only. This server never downloads: a coordinate that is not cached is error code 5 and names a cold jdx … --coord … --fetch prime, or pass jars instead. Merges in front of the workspace and behind jars. A malformed coordinate is error code 3. Examples: com.google.code.gson:gson:2.14.0.
discoverbooleanWhen true, and this call does not set workspace, and the server's stored workspace does not exist, walk up from the server's working directory for a Gradle or Maven project and use its class output plus dependency jars named in its build files. Never runs Gradle or Maven. A stored workspace that exists wins, and a workspace named on this call wins. Omit to keep the server default (false, unless jdx mcp was started with --discover). Pass false to skip discovery for this call. An absent project with no jars or coord is error code 4 naming jdx ws.
entriesbooleanList per-entry JarEntry attributes (Name sections) instead of the main section. Default: false.
regexbooleanTreat query as a Java regex. Omit or false for a substring or glob, depending on the tool. Default: false.
ignoreCasebooleanCase-insensitive substring match. Ignored when regex is true; put (?i) in the pattern there. Default: false.
instringOnly matches from artifacts whose label matches this glob (jar file name, JDK module, or source-directory name). Examples: gson*.
excludestringSkip matches from artifacts whose label matches this glob (jar file name, JDK module, or source-directory name). Examples: *-sources.jar.
limitintegerMaximum rows shown (default 50). The rest become a truncation footer. Default: 50.

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. Omit query to list every path. A query matches the entry path as a substring; a query with * or ? is a glob (* and ? stay in one path segment, ** crosses /, and a glob without / also matches the file name, so *.mixins.json finds mixin configs). Use it to find a resource file. Manifest attributes are jdx_manifest. SPI registrations are jdx_services. String constants and property text are jdx_literals. cat true prints the unique match's text instead of listing paths, and then query is required. More than one match with cat is error code 2 and lists each path with its artifact. Binary or non-UTF-8 payloads are not dumped; the answer reports the size. maxLines caps cat text (default 200). limit applies to listing. check true validates well-known mod metadata instead (fabric.mod.json, quilt.mod.json, mods.toml, neoforge.mods.toml and mixin configs): malformed JSON or TOML, missing required fields, entrypoint and mixin classes absent from the classpath, mixin configs absent from the jar, and declared dependencies absent from the workspace jars or from nested jars already opened (META-INF/jars, META-INF/jarjar, BOOT-INF/lib, WEB-INF/lib). It reports findings with severity and still succeeds; query is optional and narrows which files are checked. check cannot be combined with cat, which stays a raw print. Nothing is downloaded. Nothing matched is error code 1. Reads zip entries and never loads or executes classes.

ParameterTypeDescription
querystringEntry-path substring, for example 'META-INF' or 'META-INF/maven/com.google.code.gson/gson/pom.properties'. Empty lists every non-class resource. A query with * or ? is a glob, for example '*.mixins.json'. With regex true, a Java regex. Required when cat is true. Examples: META-INF.
workspacestringNamed stored workspace to answer from (see jdx ws). Default is the workspace this server was started with. A name that does not exist is error code 4 and names jdx ws create. jars, coord, or discover can answer without a stored workspace when this call does not itself set workspace. This server never downloads. Examples: default.
jarsstringJar files, class directories, or globs, comma-separated — the same values as the CLI --jars flag. A JSON array of strings is also accepted. They merge in front of the selected workspace. When this call does not set workspace and the server's workspace does not exist, these roots are enough on their own (the JDK stays included). A path that itself contains a comma must be the only value. Examples: libs/app.jar, build/classes/java/main.
coordstringMaven coordinates group:artifact:version, comma-separated — the same values as the CLI --coord flag without --fetch. A JSON array of strings is also accepted. Resolved from the local Gradle and Maven caches only. This server never downloads: a coordinate that is not cached is error code 5 and names a cold jdx … --coord … --fetch prime, or pass jars instead. Merges in front of the workspace and behind jars. A malformed coordinate is error code 3. Examples: com.google.code.gson:gson:2.14.0.
discoverbooleanWhen true, and this call does not set workspace, and the server's stored workspace does not exist, walk up from the server's working directory for a Gradle or Maven project and use its class output plus dependency jars named in its build files. Never runs Gradle or Maven. A stored workspace that exists wins, and a workspace named on this call wins. Omit to keep the server default (false, unless jdx mcp was started with --discover). Pass false to skip discovery for this call. An absent project with no jars or coord is error code 4 naming jdx ws.
catbooleanPrint the unique matching resource's text instead of listing paths. Requires query. Error code 2 when more than one path matches, with each path and artifact as a candidate. Binary or non-UTF-8 payloads report their size and are not dumped. Default: false.
maxLinesintegerMaximum text lines shown when cat is true. Default 200. Default: 200.
checkbooleanValidate well-known mod metadata (fabric.mod.json, quilt.mod.json, mods.toml, neoforge.mods.toml, mixin configs) instead of listing paths. Reports findings and still succeeds. Cannot be combined with cat. Default: false.
regexbooleanTreat query as a Java regex. Omit or false for a substring or glob, depending on the tool. Default: false.
ignoreCasebooleanCase-insensitive substring match. Ignored when regex is true; put (?i) in the pattern there. Default: false.
instringOnly matches from artifacts whose label matches this glob (jar file name, JDK module, or source-directory name). Examples: gson*.
excludestringSkip matches from artifacts whose label matches this glob (jar file name, JDK module, or source-directory name). Examples: *-sources.jar.
limitintegerMaximum rows shown (default 50). The rest become a truncation footer. Default: 50.

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. query is the old artifact and new is the candidate. Each side is a jar path, a class directory, a glob, or a Maven coordinate group:artifact:version. No other jdx_* tool compares two artifacts. The comparison itself is code 0 whatever it found. failOn breaking or any turns a tripped gate into code 1, and result.gate carries the same verdict. visibility public (the default) keeps public and protected declarations; all includes every declared type and member. severity changes which findings are printed; the tally still describes the whole comparison. Maven coordinates resolve from the local Gradle and Maven caches only. This server has no fetch parameter and never downloads. A side that resolves to two artifacts is error code 3. Bytecode only: no sources and no decompiler. Parses with ASM and never loads or executes classes.

ParameterTypeDescription
query requiredstringThe old (baseline) artifact: a jar file, a class directory, a glob, or group:artifact:version. Resolved from the local caches when it is a coordinate. This server never downloads it. Examples: gson-2.11.0.jar, com.google.code.gson:gson:2.11.0.
new requiredstringThe new (candidate) artifact, compared against query. Same shapes as query: jar file, class directory, glob, or group:artifact:version. Examples: gson-2.14.0.jar, com.google.code.gson:gson:2.14.0.
workspacestringNamed stored workspace to answer from (see jdx ws). Default is the workspace this server was started with. A name that does not exist is error code 4 and names jdx ws create. jars, coord, or discover can answer without a stored workspace when this call does not itself set workspace. This server never downloads. Examples: default.
visibilitystringWhich declarations are compared. public (default) is public and protected. all is every declared type and member. Allowed: public, all. Default: public.
includeSyntheticbooleanCompare bridge and synthetic members too. Hidden when omitted or false. Default: false.
severitystringWhich findings to print. all (default) prints everything. suspicious prints breaking and suspicious. breaking prints breaking only. The tally always describes the whole comparison. Allowed: all, suspicious, breaking. Default: all.
failOnstringWhen the call is an error. none (default) is code 0 whenever the comparison ran. breaking is code 1 when a breaking change is present. any is code 1 when any difference is present. result.gate carries the same verdict. Allowed: none, breaking, any. Default: none.
limitintegerMaximum rows shown (default 200). The rest become a truncation footer. Default: 200.

jdx_version#

Returns the jdx version this server was built as, in result.version of the JSON envelope. Use it to check which build is answering. Use jdx_health for liveness (uptime, workspace, queries answered). jdx_doctor does not run over MCP; run jdx doctor in a shell. query is an optional label echoed back and may be empty. Does not read jars.

ParameterTypeDescription
querystringOptional label echoed back in the envelope. Empty is fine. It does not select a symbol.
workspacestringNamed stored workspace to answer from (see jdx ws). Default is the workspace this server was started with. A name that does not exist is error code 4 and names jdx ws create. jars, coord, or discover can answer without a stored workspace when this call does not itself set workspace. This server never downloads. Examples: default.

jdx_doctor#

Refuses to run over MCP and returns error code 6. jdx doctor reports the machine it runs on, which would be this server's host rather than the client's. Run jdx doctor in a shell on the machine you want diagnosed. Use jdx_version for the build identity and jdx_health to see whether this server is answering. query is an optional label and is not consulted.

ParameterTypeDescription
querystringOptional label. Ignored: this tool always refuses with error code 6.
workspacestringNamed stored workspace to answer from (see jdx ws). Default is the workspace this server was started with. A name that does not exist is error code 4 and names jdx ws create. jars, coord, or discover can answer without a stored workspace when this call does not itself set workspace. This server never downloads. Examples: default.

jdx_health#

Returns a liveness snapshot for this process: workspace, uptimeSeconds, queryCount, indexedArtifacts (always 0), indexMode "live-roots-first", rpcVersion, appVersion, pid and memoryUsedMb. queryCount counts tool calls this process has answered, including this one. Use it to check that the server is up. indexedArtifacts stays 0 because usages, hierarchy and call queries re-scan bytecode roots per call; there is no persistent index yet. Use jdx_version for the build string alone. query is an optional label echoed back. Does not scan jars.

ParameterTypeDescription
querystringOptional label echoed back in the envelope. Empty is fine. It does not select a symbol.
workspacestringNamed stored workspace to answer from (see jdx ws). Default is the workspace this server was started with. A name that does not exist is error code 4 and names jdx ws create. jars, coord, or discover can answer without a stored workspace when this call does not itself set workspace. This server never downloads. Examples: default.

View as Markdown · Updated