Java Inspector
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| NODE_ENV | No | Set to 'development' to enable verbose server.log output. | |
| JAVA_HOME | No | Locates java and javap. | |
| MAVEN_CMD | No | Override executable entirely — e.g. mvnd, mvnw, or a full path. | |
| MAVEN_HOME | No | Locates mvn / mvn.cmd. | |
| MAVEN_REPO | No | Overrides ~/.m2/repository. | |
| DECOMPILER_PATH | No | Use a custom Vineflower JAR instead of the bundled one. |
Capabilities
Features and capabilities supported by this server
| Capability | Details |
|---|---|
| tools | {} |
| logging | {} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| scan_dependenciesB | Start or check the background scan of Maven dependencies. The server automatically indexes classes in the background after the first call. Use forceRefresh to rebuild the index. |
| decompile_classA | Decompile a Java class from Maven dependencies into full Java source code using Vineflower. Returns the complete .java source file (method bodies included). Optionally extract a single method by name, or paginate with offset/limit. Use this when you need to read the actual implementation. |
| analyze_classA | Analyze a Java class structure (signatures only, no method bodies) from Maven dependencies using javap. Returns fields, methods, constructors, superclass and interfaces. Use this for a lightweight overview when you do not need full source code. |
| search_classB | Fuzzy search for Java classes inside the project's Maven dependencies. Results may be partial while the background scan is in progress. |
| get_inheritance_treeA | Get the full inheritance hierarchy (superclasses) of a Java class from Maven dependencies. The server resolves classes on-demand if they are not yet indexed. |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
Latest Blog Posts
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/mustafagoksever/java-inspector'
If you have feedback or need assistance with the MCP directory API, please join our Discord server