iflow-mcp_ruoji6-java-decompile-mcp

v0.3.1
iflow-mcp_ruoji6-java-decompile-mcp Checked 1 day ago Published 9 months ago

MCP server for Java class and jar file decompilation using CFR

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

decompile_file

反编译单个 .class 或 .jar 文件 Args: file_path: 要反编译的文件路径(.class 或 .jar) output_dir: 输出目录,默认为文件所在目录下的 decompiled 文件夹 save_to_file: 是否直接保存到文件系统(推荐),默认为 True。设为 False 时会返回反编译内容 Returns: 反编译结果信息或内容

ParameterTypeDescription
file_path *string
output_dir
save_to_fileboolean

decompile_files

反编译多个 .class 或 .jar 文件(支持多线程) Args: file_paths: 要反编译的文件路径列表 output_dir: 输出目录,默认为当前目录下的 decompiled 文件夹 save_to_file: 是否直接保存到文件系统(推荐),默认为 True show_progress: 是否显示详细进度信息,默认为 True max_workers: 最大并发线程数,默认为 4(设为 1 则单线程处理) Returns: 反编译结果信息

ParameterTypeDescription
file_paths *array
max_workersinteger
output_dir
save_to_fileboolean
show_progressboolean

decompile_directory

反编译指定目录下的所有 .class 和 .jar 文件(支持多线程) Args: directory_path: 要扫描的目录路径 output_dir: 输出目录,默认为目标目录下的 decompiled 文件夹 recursive: 是否递归扫描子目录,默认为 True save_to_file: 是否直接保存到文件系统(推荐),默认为 True show_progress: 是否显示详细进度信息,默认为 True max_workers: 最大并发线程数,默认为 4(设为 1 则单线程处理) Returns: 反编译结果信息

ParameterTypeDescription
directory_path *string
max_workersinteger
output_dir
recursiveboolean
save_to_fileboolean
show_progressboolean

download_cfr_tool

下载 CFR 反编译器到指定目录 Args: target_dir: 下载目标目录,默认为当前工作目录 Returns: 下载结果信息

ParameterTypeDescription
target_dir

check_cfr_status

检查 CFR 反编译器状态 Returns: CFR 状态信息

get_java_version

获取当前系统的 Java 版本信息 Returns: Java 版本信息