Scan your whole stack
From OX Research Newsroom
Are you using @mustafagoksever/java-inspector?
Find out what’s in your code.
Scan your apps free in minutes (opens in a new tab)Latest version: v3.1.1
@mustafagoksever/java-inspector was last scanned on 24 Nov 2026 at version 3.1.1. Risk score 0 of 100. No malicious behavior was detected.
| Version | Published | Status |
|---|---|---|
| 3.1.1 LATEST | 24 Nov 2026 | No rules fired |
| 3.0.0 | 22 Aug 2026 | No rules fired |
Findings for v3.1.1. The score is a capped sum of the weights of the rules that fired — not CVSS, not exploitability, and not a probability. It is not comparable across packages with different scan coverage.
The score describes 3.1.1; other versions have their own rules, not their own score.
The publisher’s own README, as collected from the registry.
Java Inspector is an MCP server that gives AI agents fast, read-only access to code and metadata inside Maven and Gradle dependencies, local JARs, executable JARs, WARs, and the JDK.
The server starts accepting MCP calls immediately. Dependency scanning continues in the background, while an interactive query can promote the JAR it needs to a foreground queue and return without waiting for the complete project index.
java and javap); required by bundled Vineflower 1.12.0gradlew) for Gradle projectsVineflower 1.12.0 is bundled in lib/.
npm install -g @mustafagoksever/java-inspector
{
"mcpServers": {
"java-inspector": {
"command": "java-inspector",
"args": ["start"]
}
}
}
For local development:
npm ci
npm run build
node dist/cli.js start
After the MCP transport connects, Java Inspector performs non-blocking discovery:
cwd has a pom.xml (or a Gradle settings.gradle[.kts] / build.gradle[.kts]), that build is used. Maven wins when both exist.mvn dependency:build-classpath, or a Gradle init script that prints the compile/runtime/test classpath of every project) and their JARs enter the background light-scan queue.In a multi-module Maven checkout whose modules depend on each other but were never installed, Maven 3 fails dependency:build-classpath. Java Inspector then retries with --fail-at-end and adds the external dependencies of dependency:tree that are in the local repository.
Directories such as .git, node_modules, .gradle, target, build, and out are excluded from POM discovery.
Local, non-Maven JARs are not scanned at startup. They are found and indexed only when a tool call supplies a path, directory, or filename prefix.
| Tool | Purpose |
|---|---|
scan_project |
Start, refresh, or poll the non-blocking dependency scan. |
find_jar |
Find an artifact by path, filename, prefix, substring, or Maven coordinates without opening it. |
inspect_jar |
Inspect manifest, Maven metadata, packages, classes, resources, and nested artifacts. |
search_class |
Search the live partial index and foreground-scan relevant JARs on a miss. |
search_code |
Search methods, fields, annotations, references, or string constants without mass decompilation. |
find_implementations |
Find direct or transitive implementations/subtypes from lazy deep indexes. |
find_duplicates |
List classes present in more than one classpath JAR (two versions of one artifact, split packages, shaded copies). |
inspect_class |
Return source, outline, API, hierarchy, bytecode, or all views for a class. One method with methodName, or the method at a stack-trace line. Nested classes: Outer$Inner. |
explain_dependency |
Run a filtered Maven dependency tree for a selected artifact. |
compare_versions |
Public/protected API diff between two versions of an artifact (or two JARs) with breaking changes flagged. |
list_dependencies |
Resolved dependencies per Maven module: GAV, scope, direct or transitive (with the path). |
search_resources |
Search resource paths or bounded text content. |
read_resource |
Read an exact text resource with line pagination. |
Every tool supports text, json, and toon output where applicable.
Class, JAR, and resource tools share the same selection model:
jarPath: exact absolute JAR path; fastest and unambiguous.jarDirectory + jarNamePrefix: useful for Maven-free projects with lib/ directories.workspacePath + jarNamePrefix: search the Maven classpath and workspace.workspacePath: use the live partial index and bounded lazy fallback.coordinates: groupId:artifactId[:version[:classifier]].When no selector is supplied, tools use the server's current working directory. If Maven classpath resolution is still running, searches return complete: false instead of reporting a definitive miss. Per-JAR scan failures are returned in errors; an unreadable exact jarPath fails the tool call.
If multiple JARs or classes match, the server returns candidates instead of silently choosing one.
{
"className": "com.vendor.Client",
"jarPath": "C:\\project\\lib\\vendor-client-2.1.jar",
"view": "source"
}
{
"query": "Connection refused",
"kind": "string",
"workspacePath": "C:\\project",
"mode": "balanced"
}
{
"className": "com.vendor.Transport",
"workspacePath": "C:\\project",
"transitive": true
}
{
"className": "java.util.ArrayList",
"view": "all"
}
JDK source is read from src.zip when available. API and bytecode views use javap.
All JAR reads pass through a shared coordinator:
The background scan builds a light index from ZIP entries. More expensive class-file metadata is generated only when search_code or find_implementations needs it.
Context-wide deep searches are intentionally bounded. A partial response includes complete, scannedJarCount, and remainingJarCount. Calling the tool again continues using the already cached deep indexes.
inspect_class supports:
source: local *-sources.jar, embedded .java, or Vineflower decompilation. With downloadSources: true (Maven), a missing -sources.jar is fetched with mvn dependency:get first.outline: every member with its line range; the cheapest view of a large class.api: javap -p signatures.hierarchy: resolved superclass chain with interfaces.bytecode: javap -c -l -p -s output; with methodName or line only that member.all: all available views.Source responses support methodName (searched in superclasses and interfaces when the class does not declare it), paramTypes, line (stack-trace line number: returns the containing method, also for decompiled code via the line table), offset, and limit.
Responses are kept small for agent contexts: sources over 400 lines return the first 120 lines plus an outline, bytecode over 400 lines returns member signatures, and every response is capped at 40,000 characters with a note saying how to narrow the request. Methods that Vineflower cannot decompile keep its bytecode listing without the decompiler's stack trace, and the response names them.
The decompiler executable cannot be overridden by a tool argument. Java Inspector uses the bundled Vineflower JAR or the operator-controlled DECOMPILER_PATH environment variable.
Light indexing understands:
META-INF/versions/BOOT-INF/classesWEB-INF/classesclasses/BOOT-INF/lib, WEB-INF/lib, and libpom.properties, manifests, source JARs, and text resourcesNested JAR contents are extracted and scanned only when explicitly needed.
Cache data is stored under:
~/.cache/java-inspector/<context>_<hash>/
Important entries include:
classpath.json
class-index.jsonl
scan-state.json
jar-indexes-v3/
results-v3/
server-<pid>.log
Per-JAR caches use resolved path, size, and modification time as their fingerprint. Nested artifacts additionally use their parent fingerprint and ZIP entry identity. JSONL project indexes remain append-only and crash-safe, with cross-process locks protecting writes.
| Variable | Purpose |
|---|---|
NODE_ENV |
Enables additional development logging. |
JAVA_HOME |
Locates java, javap, and JDK src.zip. |
MAVEN_HOME |
Locates Maven. |
MAVEN_CMD |
Overrides the Maven executable. |
MAVEN_REPO |
Overrides the local Maven repository path. |
GRADLE_CMD |
Overrides the Gradle executable (default: the project's gradlew, then GRADLE_HOME/bin/gradle, then gradle). |
GRADLE_HOME |
Locates Gradle. |
JAVA_INSPECTOR_DOWNLOAD_SOURCES |
true makes inspect_class download missing -sources.jar files by default. |
DECOMPILER_PATH |
Overrides the bundled Vineflower JAR. |
Maven command resolution order is MAVEN_CMD, mvnd, MAVEN_HOME/bin/mvn, then mvn from PATH.
npm run build
npm test
npm run dev
The project is ES modules and emits JavaScript, declarations, and source maps to dist/.
Apache-2.0
Find threats in your stack.
OX Radar can check high-priority threats, like critical package CVEs, against your context.
Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.
The probe returned only these fields for this server — auth requirement, protocol and tool list weren’t observed, so they’re not shown (never guessed).
The publisher’s own links, as the registry reports them. These are not sources for the assessment on this page.