Releases: sche11/dexkit-mcp
Releases · sche11/dexkit-mcp
Release list
2.2.0
DexKit MCP Server 2.2.0
镜像上游 DexKit 2.2.0 自动构建。
本仓库只负责 MCP 服务端封装与多平台 native 库打包,所有 DexKit 功能特性由上游决定。
下载
| 平台 | 文件 |
|---|---|
| Windows x86_64 | dexkit-mcp-server-2.2.0-windows-x86_64.jar |
| Linux x86_64 | dexkit-mcp-server-2.2.0-linux-x86_64.jar |
| Linux arm64 | dexkit-mcp-server-2.2.0-linux-arm64.jar |
快速开始
选择对应平台的 jar,配置到 MCP 客户端的 mcp.json:
{
"mcpServers": {
"dexkit": {
"command": "java",
"args": ["-jar", "/path/to/dexkit-mcp-server-2.2.0-<platform>.jar"],
"env": {}
}
}
}构建说明
- 三平台并行构建:Windows x86_64 / Linux x86_64 / Linux arm64
- Windows 使用 LLVM-MinGW 交叉编译工具链 + 静态 zlib 链接
- Linux 使用系统 cmake + ninja + zlib1g-dev
- native 库打包在 jar 的
/native/<os>-<arch>/路径,运行时由 NativeLoader 释放到临时目录加载
上游 DexKit 2.2.0 发布说明
Changelog
Added
- Added composite matcher syntax for
ClassMatcher,MethodMatcher, andFieldMatcher.- Supports
allOf,anyOf,noneOf, andnotfor more expressive query composition.
- Supports
Changed
- Improved overall query performance.
- Optimized native query execution and matcher hot paths.
- Improved multi-threaded host-side usage.
- Allows concurrent access to the same
DexKitBridge. - Added shared scheduling and concurrency limiting for concurrent queries.
- Allows concurrent access to the same
- Reduced native
.sosize.
Fixed
- Fixed incorrect
findMethodbehavior for methods without an actual dex definition.findMethodnow returns only methods that are actually defined in the loaded dex.- Previously, if method
AinvokedxxxView.setVisibility(I)V,findMethod { matcher { declaredClass = xxxView; name = "setVisibility" } }could incorrectly match that invoke target even though the method was not actually defined inxxxViewor in the current dex. - Such invoke targets are no longer returned as regular
findMethodresults, but can still be used asaddInvoke(...)conditions and may still appear inMethodData.invokes.
v0.1.0
DexKit MCP Server v0.1.0
首个正式版本。DexKit MCP Server 将 DexKit 的高性能 DEX 运行时解析能力通过 Model Context Protocol 暴露给 AI 智能体,支持通过自然语言指令在 APK 逆向分析中定位被混淆的类、方法、字段。
✨ 核心能力
- 多条件查找:按字符串、注解、调用关系、参数类型等多维度定位被混淆组件
- Xposed/Hook 辅助:快速生成 Hook 代码所需的类/方法/字段句柄
- APK 结构分析:无需编写代码即可分析 APK 内部结构
- 无需手动编码:AI 智能体直接调用,零代码完成逆向分析
📦 下载
| 平台 | 文件 |
|---|---|
| Windows x86_64 | dexkit-mcp-server-0.1.0-windows-x86_64.jar |
| Linux x86_64 | dexkit-mcp-server-0.1.0-linux-x86_64.jar |
| Linux ARM64 | dexkit-mcp-server-0.1.0-linux-arm64.jar |
每个 jar 都是 fat-jar,内嵌对应平台的 native 库(
libdexkit.dll/libdexkit.so),运行时自动按平台加载,无需额外配置。
🚀 快速开始
-
前置要求:安装 JDK 22+
-
配置 MCP Server(以 Trae/Claude Desktop 为例):
{
mcpServers: {
dexkit: {
command: java,
args: [
-jar,
/path/to/dexkit-mcp-server-0.1.0-<your-platform>.jar
]
}
}
}- 加载 APK 并使用:启动 MCP 客户端后,通过
dexkit_open工具加载 APK,即可使用dexkit_find_class、dexkit_find_method等 12 个工具进行逆向分析。
🔧 可用工具
| 工具 | 用途 |
|---|---|
dexkit_open / dexkit_close_session |
打开/关闭 APK 会话 |
dexkit_find_class / dexkit_find_method / dexkit_find_field |
多条件查找类/方法/字段 |
dexkit_batch_find_class_using_strings / dexkit_batch_find_method_using_strings |
批量字符串匹配查找 |
dexkit_get_class_data / dexkit_get_method_data / dexkit_get_field_data |
获取详细数据 |
dexkit_export_dex |
导出 DEX 文件 |
🏗️ 构建说明
- 三平台 native 库由 GitHub Actions 自动构建
- Windows 使用 LLVM-MinGW (clang 18.1.8) 交叉编译,静态链接 zlib
- Linux 使用系统 gcc + zlib1g-dev
- 跟进上游 DexKit:每周一 UTC 00:00 自动构建
Full Changelog: https://github.com/sche11/dexkit-mcp/commits/v0.1.0