Skip to main content
Glama

Java Class Analyzer MCP Server

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
CFR_PATHNoCFR反编译工具的路径(可选,程序会自动查找)
NODE_ENVNo运行环境标识。production: 生产环境,减少日志输出,启用性能优化;development: 开发环境,输出详细调试信息;test: 测试环境production
JAVA_HOMENoJava安装路径。如果设置,程序会使用 ${JAVA_HOME}/bin/java 执行Java命令(用于CFR反编译);如果未设置,程序会使用PATH中的 java 命令
MAVEN_REPONoMaven本地仓库路径。如果设置,程序会使用指定的仓库路径扫描JAR包;如果未设置,程序会使用默认的 ~/.m2/repository 路径

Schema

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

Tools

Functions exposed to the LLM to take actions

NameDescription
scan_dependencies

扫描Maven项目的所有依赖,建立类名到JAR包的映射索引

decompile_class

反编译指定的Java类文件,返回Java源码

analyze_class

分析Java类的结构、方法、字段等信息

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/handsomestWei/java-class-analyzer-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server