android-decrypt-hub 0.1.0__tar.gz → 0.1.2__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (24) hide show
  1. android_decrypt_hub-0.1.2/LICENSE +21 -0
  2. android_decrypt_hub-0.1.2/MANIFEST.in +1 -0
  3. android_decrypt_hub-0.1.2/PKG-INFO +163 -0
  4. android_decrypt_hub-0.1.2/README.md +135 -0
  5. {android_decrypt_hub-0.1.0 → android_decrypt_hub-0.1.2}/pyproject.toml +49 -44
  6. {android_decrypt_hub-0.1.0 → android_decrypt_hub-0.1.2}/src/adh/__init__.py +3 -3
  7. {android_decrypt_hub-0.1.0 → android_decrypt_hub-0.1.2}/src/adh/__main__.py +6 -6
  8. {android_decrypt_hub-0.1.0 → android_decrypt_hub-0.1.2}/src/adh/cli.py +194 -193
  9. {android_decrypt_hub-0.1.0 → android_decrypt_hub-0.1.2}/src/adh/config.py +87 -87
  10. {android_decrypt_hub-0.1.0 → android_decrypt_hub-0.1.2}/src/adh/endpoint.py +70 -70
  11. {android_decrypt_hub-0.1.0 → android_decrypt_hub-0.1.2}/src/adh/http_mcp.py +80 -80
  12. {android_decrypt_hub-0.1.0 → android_decrypt_hub-0.1.2}/src/adh/stdio.py +75 -61
  13. android_decrypt_hub-0.1.2/src/android_decrypt_hub.egg-info/PKG-INFO +163 -0
  14. {android_decrypt_hub-0.1.0 → android_decrypt_hub-0.1.2}/src/android_decrypt_hub.egg-info/SOURCES.txt +2 -0
  15. {android_decrypt_hub-0.1.0 → android_decrypt_hub-0.1.2}/tests/test_config.py +25 -25
  16. {android_decrypt_hub-0.1.0 → android_decrypt_hub-0.1.2}/tests/test_endpoint.py +26 -26
  17. android_decrypt_hub-0.1.0/PKG-INFO +0 -48
  18. android_decrypt_hub-0.1.0/README.md +0 -24
  19. android_decrypt_hub-0.1.0/src/android_decrypt_hub.egg-info/PKG-INFO +0 -48
  20. {android_decrypt_hub-0.1.0 → android_decrypt_hub-0.1.2}/setup.cfg +0 -0
  21. {android_decrypt_hub-0.1.0 → android_decrypt_hub-0.1.2}/src/android_decrypt_hub.egg-info/dependency_links.txt +0 -0
  22. {android_decrypt_hub-0.1.0 → android_decrypt_hub-0.1.2}/src/android_decrypt_hub.egg-info/entry_points.txt +0 -0
  23. {android_decrypt_hub-0.1.0 → android_decrypt_hub-0.1.2}/src/android_decrypt_hub.egg-info/requires.txt +0 -0
  24. {android_decrypt_hub-0.1.0 → android_decrypt_hub-0.1.2}/src/android_decrypt_hub.egg-info/top_level.txt +0 -0
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 taisuii
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -0,0 +1 @@
1
+ include LICENSE
@@ -0,0 +1,163 @@
1
+ Metadata-Version: 2.4
2
+ Name: android-decrypt-hub
3
+ Version: 0.1.2
4
+ Summary: Connect to Host ADH Daemon and bridge HTTP MCP to stdio
5
+ Author: DecryptHub
6
+ License: MIT
7
+ Project-URL: Homepage, https://github.com/decrypthub/AndroidDecryptHub
8
+ Project-URL: Repository, https://github.com/decrypthub/adh-cli
9
+ Project-URL: Issues, https://github.com/decrypthub/adh-cli/issues
10
+ Keywords: android,mcp,reverse-engineering,adh,decrypt
11
+ Classifier: Development Status :: 3 - Alpha
12
+ Classifier: Environment :: Console
13
+ Classifier: License :: OSI Approved :: MIT License
14
+ Classifier: Programming Language :: Python :: 3
15
+ Classifier: Programming Language :: Python :: 3 :: Only
16
+ Classifier: Programming Language :: Python :: 3.10
17
+ Classifier: Programming Language :: Python :: 3.11
18
+ Classifier: Programming Language :: Python :: 3.12
19
+ Classifier: Programming Language :: Python :: 3.13
20
+ Classifier: Topic :: Software Development :: Debuggers
21
+ Requires-Python: >=3.10
22
+ Description-Content-Type: text/markdown
23
+ License-File: LICENSE
24
+ Provides-Extra: dev
25
+ Requires-Dist: build>=1.2; extra == "dev"
26
+ Requires-Dist: pytest>=8.0; extra == "dev"
27
+ Dynamic: license-file
28
+
29
+ # adh
30
+
31
+ **中文** | [English](README.en.md)
32
+
33
+ `adh` 是 AndroidDecryptHub 的本机连接与 MCP 网关。它保存 Host ADH Daemon 的地址,并把 `POST /mcp` 转成 Cursor / Claude Desktop 可用的 stdio MCP。
34
+
35
+ 运行时只使用 Python 标准库,要求 Python 3.10 或更高版本。
36
+
37
+ ```bash
38
+ pip install android-decrypt-hub
39
+ adh connect 127.0.0.1:8088
40
+ adh devices
41
+ ```
42
+
43
+ 源码在 [decrypthub/adh-cli](https://github.com/decrypthub/adh-cli),PyPI 包名是 [android-decrypt-hub](https://pypi.org/project/android-decrypt-hub/)。产品仓库是 [AndroidDecryptHub](https://github.com/decrypthub/AndroidDecryptHub)。当前版本 **0.1.2**。
44
+
45
+ Host ADH Daemon 没有身份认证,只在可信局域网里使用,不要暴露到公网。不要把 HTTP `/mcp` 直接配进 MCP 客户端。
46
+
47
+ ## 安装
48
+
49
+ ```bash
50
+ python -m pip install -U android-decrypt-hub
51
+ ```
52
+
53
+ 也可以用 pipx:
54
+
55
+ ```bash
56
+ pipx install android-decrypt-hub
57
+ pipx upgrade android-decrypt-hub
58
+ ```
59
+
60
+ ## 连接
61
+
62
+ 先在电脑上启动 Host ADH Daemon,再保存它的地址。当前 Daemon 默认 HTTP 端口是 `8088`。这个 CLI 在省略端口时仍使用 `8760`,所以请带上实际端口:
63
+
64
+ ```bash
65
+ adh connect 127.0.0.1:8088
66
+ adh connect --json
67
+ adh devices
68
+ adh devices --json
69
+ ```
70
+
71
+ `connect` 会先请求 `/health`。在线时打印 `online`,并写入配置。Daemon 暂时离线但仍要保存地址时:
72
+
73
+ ```bash
74
+ adh connect 127.0.0.1:8088 --force
75
+ ```
76
+
77
+ 连接写入 `~/.config/adh/connections.json`。可用 `ADH_CONFIG_PATH` 改这个文件的位置。查看或移除:
78
+
79
+ ```bash
80
+ adh disconnect 127.0.0.1:8088
81
+ adh disconnect --all
82
+ ```
83
+
84
+ 只保存了一个地址时,后面的 `devices`、`call`、`mcp` 会自动用它。保存了多个地址时,给单次命令加上 `--endpoint`:
85
+
86
+ ```bash
87
+ adh devices --endpoint http://127.0.0.1:8088
88
+ ```
89
+
90
+ ## MCP
91
+
92
+ Cursor / Claude Desktop 只配置这一次:
93
+
94
+ ```json
95
+ {
96
+ "mcpServers": {
97
+ "adh": {
98
+ "command": "adh",
99
+ "args": ["mcp"]
100
+ }
101
+ }
102
+ }
103
+ ```
104
+
105
+ 多个已保存地址时,在参数里指定本次使用的 Daemon:
106
+
107
+ ```bash
108
+ adh mcp --endpoint http://127.0.0.1:8088
109
+ ```
110
+
111
+ `adh mcp` 启动时会再探一次 `/health`,目标不在线就直接退出。日志写到 stderr,stdout 只留给逐行 JSON-RPC。
112
+
113
+ ## 调用单个工具
114
+
115
+ ```bash
116
+ adh call <tool_name>
117
+ adh call <tool_name> --arguments '{"limit":3}' --json
118
+ adh call <tool_name> --endpoint http://127.0.0.1:8088
119
+ ```
120
+
121
+ `--arguments` 必须是一个 JSON 对象。
122
+
123
+ ## 命令
124
+
125
+ | 命令 | 作用 |
126
+ | --- | --- |
127
+ | `adh connect [地址]` | 探测并保存 Host ADH Daemon。默认 `127.0.0.1:8760` |
128
+ | `adh disconnect [地址]` | 移除一个已保存地址;`--all` 清空 |
129
+ | `adh devices` | 列出已保存地址,并显示在线状态 |
130
+ | `adh mcp` | 把已保存 Daemon 的 `POST /mcp` 转成 stdio MCP |
131
+ | `adh call <工具名>` | 调用一个 Host MCP 工具 |
132
+ | `adh --version` | 打印版本 |
133
+
134
+ ## 开发
135
+
136
+ ```bash
137
+ python -m pip install -e ".[dev]"
138
+ python -m pytest
139
+ ```
140
+
141
+ ## 发版
142
+
143
+ 源码版本和 PyPI 版本一起更新。`pyproject.toml` 的 `version` 与 `src/adh/__init__.py` 的 `__version__` 必须相同。PyPI 不能覆盖已发布的版本,所以每次发布都要升版本号。
144
+
145
+ 用户能看到的行为或文案有变化时,同时改 `README.md` 和 `README.en.md`。
146
+
147
+ | 变更 | 升法 |
148
+ | --- | --- |
149
+ | 文档、文案、小修 | `+0.0.1` |
150
+ | 新命令或可感知的行为 | `+0.1.0` |
151
+
152
+ ```bash
153
+ python -m pytest
154
+ python -m build
155
+ python -m twine check dist/*
156
+ python -m twine upload --repository pypi dist/android_decrypt_hub-<version>*
157
+ ```
158
+
159
+ 上传凭证放在本机 `~/.config/pypi/token`,不要写进仓库。上传成功后,把同一个提交推到 `decrypthub/adh-cli`。
160
+
161
+ ## 协议
162
+
163
+ [MIT](./LICENSE)
@@ -0,0 +1,135 @@
1
+ # adh
2
+
3
+ **中文** | [English](README.en.md)
4
+
5
+ `adh` 是 AndroidDecryptHub 的本机连接与 MCP 网关。它保存 Host ADH Daemon 的地址,并把 `POST /mcp` 转成 Cursor / Claude Desktop 可用的 stdio MCP。
6
+
7
+ 运行时只使用 Python 标准库,要求 Python 3.10 或更高版本。
8
+
9
+ ```bash
10
+ pip install android-decrypt-hub
11
+ adh connect 127.0.0.1:8088
12
+ adh devices
13
+ ```
14
+
15
+ 源码在 [decrypthub/adh-cli](https://github.com/decrypthub/adh-cli),PyPI 包名是 [android-decrypt-hub](https://pypi.org/project/android-decrypt-hub/)。产品仓库是 [AndroidDecryptHub](https://github.com/decrypthub/AndroidDecryptHub)。当前版本 **0.1.2**。
16
+
17
+ Host ADH Daemon 没有身份认证,只在可信局域网里使用,不要暴露到公网。不要把 HTTP `/mcp` 直接配进 MCP 客户端。
18
+
19
+ ## 安装
20
+
21
+ ```bash
22
+ python -m pip install -U android-decrypt-hub
23
+ ```
24
+
25
+ 也可以用 pipx:
26
+
27
+ ```bash
28
+ pipx install android-decrypt-hub
29
+ pipx upgrade android-decrypt-hub
30
+ ```
31
+
32
+ ## 连接
33
+
34
+ 先在电脑上启动 Host ADH Daemon,再保存它的地址。当前 Daemon 默认 HTTP 端口是 `8088`。这个 CLI 在省略端口时仍使用 `8760`,所以请带上实际端口:
35
+
36
+ ```bash
37
+ adh connect 127.0.0.1:8088
38
+ adh connect --json
39
+ adh devices
40
+ adh devices --json
41
+ ```
42
+
43
+ `connect` 会先请求 `/health`。在线时打印 `online`,并写入配置。Daemon 暂时离线但仍要保存地址时:
44
+
45
+ ```bash
46
+ adh connect 127.0.0.1:8088 --force
47
+ ```
48
+
49
+ 连接写入 `~/.config/adh/connections.json`。可用 `ADH_CONFIG_PATH` 改这个文件的位置。查看或移除:
50
+
51
+ ```bash
52
+ adh disconnect 127.0.0.1:8088
53
+ adh disconnect --all
54
+ ```
55
+
56
+ 只保存了一个地址时,后面的 `devices`、`call`、`mcp` 会自动用它。保存了多个地址时,给单次命令加上 `--endpoint`:
57
+
58
+ ```bash
59
+ adh devices --endpoint http://127.0.0.1:8088
60
+ ```
61
+
62
+ ## MCP
63
+
64
+ Cursor / Claude Desktop 只配置这一次:
65
+
66
+ ```json
67
+ {
68
+ "mcpServers": {
69
+ "adh": {
70
+ "command": "adh",
71
+ "args": ["mcp"]
72
+ }
73
+ }
74
+ }
75
+ ```
76
+
77
+ 多个已保存地址时,在参数里指定本次使用的 Daemon:
78
+
79
+ ```bash
80
+ adh mcp --endpoint http://127.0.0.1:8088
81
+ ```
82
+
83
+ `adh mcp` 启动时会再探一次 `/health`,目标不在线就直接退出。日志写到 stderr,stdout 只留给逐行 JSON-RPC。
84
+
85
+ ## 调用单个工具
86
+
87
+ ```bash
88
+ adh call <tool_name>
89
+ adh call <tool_name> --arguments '{"limit":3}' --json
90
+ adh call <tool_name> --endpoint http://127.0.0.1:8088
91
+ ```
92
+
93
+ `--arguments` 必须是一个 JSON 对象。
94
+
95
+ ## 命令
96
+
97
+ | 命令 | 作用 |
98
+ | --- | --- |
99
+ | `adh connect [地址]` | 探测并保存 Host ADH Daemon。默认 `127.0.0.1:8760` |
100
+ | `adh disconnect [地址]` | 移除一个已保存地址;`--all` 清空 |
101
+ | `adh devices` | 列出已保存地址,并显示在线状态 |
102
+ | `adh mcp` | 把已保存 Daemon 的 `POST /mcp` 转成 stdio MCP |
103
+ | `adh call <工具名>` | 调用一个 Host MCP 工具 |
104
+ | `adh --version` | 打印版本 |
105
+
106
+ ## 开发
107
+
108
+ ```bash
109
+ python -m pip install -e ".[dev]"
110
+ python -m pytest
111
+ ```
112
+
113
+ ## 发版
114
+
115
+ 源码版本和 PyPI 版本一起更新。`pyproject.toml` 的 `version` 与 `src/adh/__init__.py` 的 `__version__` 必须相同。PyPI 不能覆盖已发布的版本,所以每次发布都要升版本号。
116
+
117
+ 用户能看到的行为或文案有变化时,同时改 `README.md` 和 `README.en.md`。
118
+
119
+ | 变更 | 升法 |
120
+ | --- | --- |
121
+ | 文档、文案、小修 | `+0.0.1` |
122
+ | 新命令或可感知的行为 | `+0.1.0` |
123
+
124
+ ```bash
125
+ python -m pytest
126
+ python -m build
127
+ python -m twine check dist/*
128
+ python -m twine upload --repository pypi dist/android_decrypt_hub-<version>*
129
+ ```
130
+
131
+ 上传凭证放在本机 `~/.config/pypi/token`,不要写进仓库。上传成功后,把同一个提交推到 `decrypthub/adh-cli`。
132
+
133
+ ## 协议
134
+
135
+ [MIT](./LICENSE)
@@ -1,44 +1,49 @@
1
- [build-system]
2
- requires = ["setuptools>=69"]
3
- build-backend = "setuptools.build_meta"
4
-
5
- [project]
6
- name = "android-decrypt-hub"
7
- version = "0.1.0"
8
- description = "Connect to Host ADH Daemon and bridge HTTP MCP to stdio"
9
- readme = "README.md"
10
- requires-python = ">=3.10"
11
- authors = [{ name = "DecryptHub" }]
12
- keywords = ["android", "mcp", "reverse-engineering", "adh", "decrypt"]
13
- classifiers = [
14
- "Development Status :: 3 - Alpha",
15
- "Environment :: Console",
16
- "Programming Language :: Python :: 3",
17
- "Programming Language :: Python :: 3 :: Only",
18
- "Programming Language :: Python :: 3.10",
19
- "Programming Language :: Python :: 3.11",
20
- "Programming Language :: Python :: 3.12",
21
- "Programming Language :: Python :: 3.13",
22
- "Topic :: Software Development :: Debuggers",
23
- ]
24
- dependencies = []
25
-
26
- [project.urls]
27
- Homepage = "https://github.com/taisuii/android-decrypthub"
28
- Repository = "https://github.com/taisuii/android-decrypthub"
29
- Issues = "https://github.com/taisuii/android-decrypthub/issues"
30
-
31
- [project.scripts]
32
- adh = "adh.cli:main"
33
-
34
- [project.optional-dependencies]
35
- dev = [
36
- "build>=1.2",
37
- "pytest>=8.0",
38
- ]
39
-
40
- [tool.setuptools.packages.find]
41
- where = ["src"]
42
-
43
- [tool.pytest.ini_options]
44
- testpaths = ["tests"]
1
+ [build-system]
2
+ requires = ["setuptools>=69"]
3
+ build-backend = "setuptools.build_meta"
4
+
5
+ [project]
6
+ name = "android-decrypt-hub"
7
+ version = "0.1.2"
8
+ description = "Connect to Host ADH Daemon and bridge HTTP MCP to stdio"
9
+ readme = "README.md"
10
+ requires-python = ">=3.10"
11
+ license = { text = "MIT" }
12
+ authors = [{ name = "DecryptHub" }]
13
+ keywords = ["android", "mcp", "reverse-engineering", "adh", "decrypt"]
14
+ classifiers = [
15
+ "Development Status :: 3 - Alpha",
16
+ "Environment :: Console",
17
+ "License :: OSI Approved :: MIT License",
18
+ "Programming Language :: Python :: 3",
19
+ "Programming Language :: Python :: 3 :: Only",
20
+ "Programming Language :: Python :: 3.10",
21
+ "Programming Language :: Python :: 3.11",
22
+ "Programming Language :: Python :: 3.12",
23
+ "Programming Language :: Python :: 3.13",
24
+ "Topic :: Software Development :: Debuggers",
25
+ ]
26
+ dependencies = []
27
+
28
+ [project.urls]
29
+ Homepage = "https://github.com/decrypthub/AndroidDecryptHub"
30
+ Repository = "https://github.com/decrypthub/adh-cli"
31
+ Issues = "https://github.com/decrypthub/adh-cli/issues"
32
+
33
+ [project.scripts]
34
+ adh = "adh.cli:main"
35
+
36
+ [project.optional-dependencies]
37
+ dev = [
38
+ "build>=1.2",
39
+ "pytest>=8.0",
40
+ ]
41
+
42
+ [tool.setuptools]
43
+ license-files = ["LICENSE"]
44
+
45
+ [tool.setuptools.packages.find]
46
+ where = ["src"]
47
+
48
+ [tool.pytest.ini_options]
49
+ testpaths = ["tests"]
@@ -1,3 +1,3 @@
1
- """Android DecryptHub MCP gateway."""
2
-
3
- __version__ = "0.1.0"
1
+ """Android DecryptHub MCP gateway."""
2
+
3
+ __version__ = "0.1.2"
@@ -1,6 +1,6 @@
1
- from __future__ import annotations
2
-
3
- from .cli import main
4
-
5
- if __name__ == "__main__":
6
- raise SystemExit(main())
1
+ from __future__ import annotations
2
+
3
+ from .cli import main
4
+
5
+ if __name__ == "__main__":
6
+ raise SystemExit(main())