install-dexsql
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseInstall DexSQL MCP
安装 DexSQL MCP
Finish with a working local DexSQL MCP connection, using the user's chosen version
and client. DexSQL is closed source: install a prebuilt executable, not a source
build. The server runs as over stdio and needs no JVM, GUI, or Python
runtime. This skill is installation guidance; installing the skill alone does
not install the executable or register an MCP server.
dexsql mcp最终应使用用户选择的版本和客户端,建立可正常工作的本地 DexSQL MCP 连接。DexSQL 是闭源软件:应安装预构建的可执行文件,而不是从源码构建。服务器通过 stdio 以 运行,无需 JVM、GUI 或 Python runtime。本 skill 仅提供安装指导;仅安装 skill 并不会安装可执行文件或注册 MCP server。
dexsql mcpChoose the executable
选择可执行文件
- Detect the host OS and architecture, the requested MCP client, and any existing DexSQL executable or configuration. Infer the current local client when clear; ask only if the destination client or scope is genuinely ambiguous.
- Prefer a compatible existing executable unless the user requested an update.
A user-supplied local executable is also supported. Check and
--versionbefore configuring it.mcp --help - Otherwise inspect the actual assets at
, or
https://api.github.com/repos/LSPosed/dexsql-release/releases/latestfor a requested version. The human-facing release list ishttps://api.github.com/repos/LSPosed/dexsql-release/releases/tags/<tag>.https://github.com/LSPosed/dexsql-release/releases - Select the CLI executable or archive for the detected OS/architecture. Do not
substitute a WASM bundle, source archive, or another project's binary.
Use the API's actual ; do not invent asset names.
browser_download_url - The v0.1.0 assets are standalone executables, with these platform mappings:
- Windows x64 (/
x86_64):amd64.dexsql-windows-amd64.exe - Linux x64 (/
x86_64):amd64.dexsql-linux-amd64 - macOS 13+ on Apple silicon (/
arm64):aarch64. Recheck the selected release's assets; this list is not a version pin or a complete list of platforms that future releases may support.dexsql-darwin-arm64
- Windows x64 (
- If the repository is inaccessible, no release exists, or there is no matching binary, explain the concrete issue and accept a local executable or an official release URL from the user. Do not claim installation succeeded or try to build the closed-source engine.
- 识别宿主 OS 和架构、请求的 MCP 客户端,以及任何现有的 DexSQL 可执行文件或配置。当目标客户端或作用范围明确时,推断当前本地客户端;仅当目标客户端或作用范围确实存在歧义时才询问。
- 除非用户要求更新,否则优先使用兼容的现有可执行文件。也支持用户提供的本地可执行文件。配置前先检查 和
--version。mcp --help - 否则,检查实际发布资源:
, 或针对指定版本使用
https://api.github.com/repos/LSPosed/dexsql-release/releases/latest。 面向用户的发布列表位于https://api.github.com/repos/LSPosed/dexsql-release/releases/tags/<tag>。https://github.com/LSPosed/dexsql-release/releases - 根据检测到的 OS 和架构选择 CLI 可执行文件或归档包。不要使用 WASM bundle、源码归档包或另一个项目的二进制文件进行替代。
必须使用 API 实际返回的 ,不得虚构资源名称。
browser_download_url - v0.1.0 的资源为独立可执行文件,对应以下平台:
- Windows x64(/
x86_64):amd64。dexsql-windows-amd64.exe - Linux x64(/
x86_64):amd64。dexsql-linux-amd64 - macOS 13+ Apple silicon(/
arm64):aarch64。 仍需重新检查所选版本的资源;以上列表不是版本锁定,也不代表未来版本可能支持的全部平台。dexsql-darwin-arm64
- Windows x64(
- 如果无法访问仓库、不存在发布版本,或没有匹配的可执行文件,请说明具体问题,并接受用户提供的本地可执行文件或官方发布 URL。不要声称安装成功,也不要尝试构建闭源引擎。
Install locally
在本地安装
Download to a temporary directory. When the release asset API provides a
of the form , compare it with the downloaded file's SHA-256
before running or installing it. A published checksum file is another supported
source. Stop on a mismatch. If neither is available, report the computed hash as
a local fingerprint, not a verified upstream checksum. Standalone executables
need no extraction; extract archives only into the temporary directory, keeping
entries within it.
digestsha256:<hex>Place the executable and its accompanying license/notices in a versioned,
user-writable directory, such as on Windows or
on macOS/Linux. Use its absolute path in MCP
configuration, so no administrator privileges or shell PATH edits are needed.
Normalize the installed filename to on Windows or on
macOS/Linux. For bare binaries, also keep and
beside the executable. Prefer assets from the same release,
using their API-provided URLs and digests. If or
is not an asset, fetch
using
the selected release's actual , not the default branch.
is required; retain whenever that version provides
it. Third-party notices are compressed inside the executable; no separate
notice download is needed. When a readable copy is requested, run
with the installed
executable to export complete UTF-8 text offline. The command refuses to
overwrite existing files. Preserve supplied notices and access to embedded notices.
On macOS/Linux, ensure the executable bit is set. Preserve an existing install
until the new executable passes verification. Do not disable OS security checks
to force an incompatible or blocked binary to run.
%LOCALAPPDATA%/DexSQL/<version>/~/.local/share/dexsql/<version>/dexsql.exedexsqlLICENSELICENSE-AUXILIARYLICENSELICENSE-AUXILIARYhttps://raw.githubusercontent.com/LSPosed/dexsql-release/<tag>/<filename>tag_nameLICENSELICENSE-AUXILIARYdexsql extract licenses --output THIRD_PARTY_NOTICES下载到临时目录。当发布资源 API 提供形如 的 时,必须在运行或安装前将其与下载文件的 SHA-256 进行比较。也可以使用已发布的校验和文件作为校验来源。发现不匹配时立即停止。如果两者都不可用,请将计算出的哈希报告为本地指纹,而不是已验证的上游校验和。独立可执行文件无需解压;仅将归档包解压到临时目录中,并确保所有条目均位于该目录内。
sha256:<hex>digest将可执行文件及其附带的 license/notices 放入具有版本号且用户可写的目录,例如 Windows 上的 ,或 macOS/Linux 上的 。在 MCP 配置中使用其绝对路径,这样无需管理员权限,也无需修改 shell PATH。
将安装后的文件名统一为 Windows 上的 ,或 macOS/Linux 上的 。对于裸二进制文件,还应在可执行文件旁保留 和 。优先使用同一发布版本中的资源,并采用 API 提供的 URL 和 digest。如果 或 不是发布资源,则使用所选版本实际的 获取
,不要使用默认分支。
为必需文件;如果该版本提供 ,则必须保留。第三方声明已压缩在可执行文件内部,无需单独下载声明文件。如果用户需要可阅读的副本,可使用已安装的可执行文件运行
,以离线导出完整的 UTF-8 文本。该命令拒绝覆盖现有文件。应保留用户提供的声明文件以及访问嵌入式声明的能力。
在 macOS/Linux 上,确保已设置 executable bit。在新的可执行文件通过验证之前,保留现有安装。不要禁用 OS 安全检查来强制运行不兼容或被阻止的二进制文件。
%LOCALAPPDATA%/DexSQL/<version>/~/.local/share/dexsql/<version>/dexsql.exedexsqlLICENSELICENSE-AUXILIARYLICENSELICENSE-AUXILIARYtag_namehttps://raw.githubusercontent.com/LSPosed/dexsql-release/<tag>/<filename>LICENSELICENSE-AUXILIARYdexsql extract licenses --output THIRD_PARTY_NOTICESConnect the requested client
连接请求的客户端
Inspect the relevant existing configuration and preserve unrelated servers and
settings. For a new connection, add a server named . For an update,
change only that server's executable path unless the user requested other changes;
retain custom arguments, environment settings, and timeouts. Back up a config
file before editing it. An already-correct entry needs no rewrite.
dexsqlFor Codex, prefer its CLI for a new entry:
sh
codex mcp add dexsql -- /absolute/path/to/dexsql mcp
codex mcp get dexsql --jsonQuote the executable path as required by the user's shell. If Codex CLI is not
available, merge this table into the chosen Codex config file:
toml
[mcp_servers.dexsql]
command = "/absolute/path/to/dexsql"
args = ["mcp"]For clients using JSON, merge this entry into their documented
configuration location, or use their MCP settings UI:
mcpServersjson
{
"mcpServers": {
"dexsql": {
"command": "/absolute/path/to/dexsql",
"args": ["mcp"]
}
}
}Use proper JSON/TOML escaping for Windows paths. Do not assume every client uses
the same config path or schema. Do not install another AI client merely to finish
this task. This is a local stdio server; no network listener or API key is needed.
检查相关的现有配置,并保留其他 server 和设置。新建连接时,添加名为 的 server。更新时,除非用户要求进行其他更改,否则只修改该 server 的可执行文件路径;保留自定义参数、环境设置和超时配置。编辑配置文件前应先创建备份。如果已有条目完全正确,则无需重写。
dexsql对于 Codex,新建条目时优先使用其 CLI:
sh
codex mcp add dexsql -- /absolute/path/to/dexsql mcp
codex mcp get dexsql --json根据用户 shell 的要求对可执行文件路径加引号。如果 Codex CLI 不可用,则将以下配置合并到所选 Codex 配置文件中:
toml
[mcp_servers.dexsql]
command = "/absolute/path/to/dexsql"
args = ["mcp"]对于使用 JSON 的客户端,将以下条目合并到其文档所述的配置位置,或使用其 MCP 设置 UI:
mcpServersjson
{
"mcpServers": {
"dexsql": {
"command": "/absolute/path/to/dexsql",
"args": ["mcp"]
}
}
}Windows 路径必须使用正确的 JSON/TOML 转义。不要假设所有客户端都使用相同的配置路径或 schema。不要为了完成此任务而额外安装另一个 AI client。这是一个本地 stdio server,不需要网络监听器或 API key。
Verify and hand off
验证并交付
Run , then verify an MCP initialize handshake and through
the client when available, or a temporary stdio MCP probe. The tool list must
include , , and . Close the probe afterward. Config
registration alone is not a successful connection test.
--versiontools/listopen_datasetquerydecodeIf the client needs a restart or new chat before discovering the server, state
that separately from the verified executable/protocol status. Do not claim the
current chat is connected until its tools are available. Analyze an APK only if
the user asked; installation does not require opening their files.
Report the installed version, executable path, config location, verification
result, and any remaining client reload step. A useful first prompt is:
"Open this APK with DexSQL, find methods referencing this string, and show their
callers and Smali."
运行 ,然后在客户端可用时通过客户端验证 MCP initialize handshake 和 ;如果客户端不可用,则使用临时 stdio MCP probe 进行验证。工具列表必须包含 、 和 。验证后关闭 probe。仅完成配置注册并不代表连接测试成功。
--versiontools/listopen_datasetquerydecode如果客户端需要重启或开启新聊天后才能发现该 server,应将其作为独立步骤说明,不要将其与已验证的可执行文件或协议状态混为一谈。在当前聊天的工具可用之前,不要声称当前聊天已连接。除非用户明确要求,否则不要分析 APK;安装过程不需要打开用户的文件。
报告已安装的版本、可执行文件路径、配置位置、验证结果,以及客户端是否仍需执行重新加载步骤。可以提供以下首个提示词:
“使用 DexSQL 打开这个 APK,查找引用此字符串的方法,并显示它们的调用者和 Smali。”