1.2.4npm · @idachev/mcp-javadc · current release
Observed 2026-08-14T07:44:04.875Z using mcpSecurity-inventory. Status: succeeded. Negotiated protocol: 2025-06-18.
{
"tools": {}
}| Tool | Category | Annotations | Risk |
|---|---|---|---|
decompile-from-jarDecompiles a Java class from a JAR file
# Using mcp_javadc with Maven Repository
When you need to decompile Java classes from dependencies in the M2 repository, follow these steps:
## Step 1: Find the JAR file location
First, search for the dependency JAR in the local Maven repository:
```bash
find ~/.m2 -name "*dependency-name*jar" | grep -v source | grep -v javadoc
```
Notes:
- Replace dependency-name with the artifact name
- Filter out source and javadoc JARs using grep
- Look for the correct version based on the project's POM file
## Step 2: Use the correct mcp_javadc function
Once you have the JAR path, use this function:
For specific class decompilation:
- jarFilePath: The absolute path to the JAR (from Step 1)
- className: Fully qualified class name to decompile
For contextual exploration:
If needed, first try to find all available classes in the JAR:
`jar tf /path/to/the.jar | grep .class | sort`
Example workflow:
1. Read the POM file to identify dependency version
2. Search the M2 repository for the JAR
3. Use mcp_javadc to decompile relevant classes
4. If multiple versions exist, select the one matching the project's version requirementInput schema{
"type": "object",
"properties": {
"jarFilePath": {
"type": "string",
"description": "The absolute path to the JAR file"
},
"className": {
"type": "string",
"description": "Fully qualified class name to decompile from the JAR (e.g., \"com.example.MyClass\")"
}
},
"required": [
"jarFilePath",
"className"
]
} | — | — · — | — |
decompile-from-packageDecompiles a Java class from a package nameInput schema{
"type": "object",
"properties": {
"packageName": {
"type": "string",
"description": "Fully qualified Java package and class name"
},
"classpath": {
"type": "array",
"items": {
"type": "string"
},
"description": "Array of classpath directories to search"
}
},
"required": [
"packageName"
]
} | — | — · — | — |
decompile-from-pathDecompiles a Java .class file from a given file pathInput schema{
"type": "object",
"properties": {
"classFilePath": {
"type": "string",
"description": "The absolute path to the .class file"
}
},
"required": [
"classFilePath"
]
} | — | — · — | — |