java-class-analyzer-mcp
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| MAVEN_REPO | No | Path to Maven local repository (default: ${HOME}/.m2/repository) | |
| CFR_JAR_PATH | No | Path to CFR decompiler JAR (default: cfr.jar) | |
| GROUP_ID_MAPPINGS | No | JSON array of groupId mappings, e.g., [{"groupId":"com/mycompany","prefix":"com.mycompany."}] |
Instructions
Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.
This server publishes no instructions, or was last inspected before Glama recorded them.
Capabilities
Features and capabilities supported by this server
Protocol revision2025-11-25
| Capability | Details |
|---|---|
| tools | {} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| java_class_indexerA | 构建Java项目依赖类的索引。扫描Maven依赖的所有JAR包,建立类名到JAR包的映射关系。 |
| java_class_analyzerA | 分析和反编译指定的Java类。根据类的全限定名查找对应的JAR包并进行反编译,返回源代码。 |
| java_class_searchA | 搜索Java类。根据关键词模糊搜索已索引的类名,返回匹配的类列表。 |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
TDQS
Scored across 3 tools
Each tool has a clearly distinct role: one builds the index, one searches it, and one decompiles a specific class. There is no functional overlap or ambiguity between them.
All tools share the java_class_ prefix and follow the same noun-style naming pattern: indexer, analyzer, search. This creates a predictable and recognizable set.
Three tools is well-scoped for a Java class analysis server: index, search, and analyze. Each tool is necessary and the count feels complete without being bloated.
The tool surface covers the full workflow: building an index from Maven dependencies, searching indexed classes by keyword, and analyzing/decompiling a selected class. There are no obvious dead ends or missing operations for the stated purpose.