Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| CFR_PATH | No | Path 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
| Name | Description |
|---|---|
| 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
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |