Skip to main content
Glama
RuoJi6

Java Decompiler MCP Server

by RuoJi6

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
CFR_PATHNoPath to the CFR decompiler .jar file. If not specified, the server will search the project directory or download it automatically.

Capabilities

Server capabilities have not been inspected yet.

Tools

Functions exposed to the LLM to take actions

NameDescription
decompile_file
反编译单个 .class 或 .jar 文件 Args: file_path: 要反编译的文件路径(.class 或 .jar) output_dir: 输出目录,默认为文件所在目录下的 decompiled 文件夹 save_to_file: 是否直接保存到文件系统(推荐),默认为 True。设为 False 时会返回反编译内容 Returns: 反编译结果信息或内容
decompile_files
反编译多个 .class 或 .jar 文件(支持多线程) Args: file_paths: 要反编译的文件路径列表 output_dir: 输出目录,默认为当前目录下的 decompiled 文件夹 save_to_file: 是否直接保存到文件系统(推荐),默认为 True show_progress: 是否显示详细进度信息,默认为 True max_workers: 最大并发线程数,默认为 4(设为 1 则单线程处理) Returns: 反编译结果信息
decompile_directory
反编译指定目录下的所有 .class 和 .jar 文件(支持多线程) Args: directory_path: 要扫描的目录路径 output_dir: 输出目录,默认为目标目录下的 decompiled 文件夹 recursive: 是否递归扫描子目录,默认为 True save_to_file: 是否直接保存到文件系统(推荐),默认为 True show_progress: 是否显示详细进度信息,默认为 True max_workers: 最大并发线程数,默认为 4(设为 1 则单线程处理) Returns: 反编译结果信息
download_cfr_tool
下载 CFR 反编译器到指定目录 Args: target_dir: 下载目标目录,默认为当前工作目录 Returns: 下载结果信息
check_cfr_status
检查 CFR 反编译器状态 Returns: CFR 状态信息
get_java_version
获取当前系统的 Java 版本信息 Returns: Java 版本信息

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

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/RuoJi6/java-decompile-mcp'

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