staff-mcp 1.0.7 → 1.0.9
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.
- package/README.md +7 -7
- package/README_zh.md +7 -7
- package/dist/bundle.js +558 -0
- package/dist/src/index.js +22 -1
- package/dist/src/index.js.map +1 -1
- package/dist/src/server.js +2 -0
- package/dist/src/server.js.map +1 -1
- package/dist/src/tools/file-tools.js +90 -155
- package/dist/src/tools/file-tools.js.map +1 -1
- package/dist/src/tools/lsp-tools.js +27 -46
- package/dist/src/tools/lsp-tools.js.map +1 -1
- package/dist/src/tools/mcp-client-tools.d.ts +2 -0
- package/dist/src/tools/mcp-client-tools.js +335 -0
- package/dist/src/tools/mcp-client-tools.js.map +1 -0
- package/dist/src/tools/shell-tools.js +80 -106
- package/dist/src/tools/shell-tools.js.map +1 -1
- package/dist/src/tools/system-tools.js +26 -5
- package/dist/src/tools/system-tools.js.map +1 -1
- package/dist/src/utils/tool-utils.d.ts +4 -2
- package/dist/src/utils/tool-utils.js +19 -4
- package/dist/src/utils/tool-utils.js.map +1 -1
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -24,7 +24,7 @@ Seamlessly spawn the AI assistant **inside any Docker container** while keeping
|
|
|
24
24
|
npx -y staff-mcp@latest --docker node:20-alpine
|
|
25
25
|
|
|
26
26
|
# Perform security analysis inside a custom reverse-engineering image
|
|
27
|
-
npx -y staff-mcp@latest --docker
|
|
27
|
+
npx -y staff-mcp@latest --docker chineseastar/security:latest --profile android-reverse
|
|
28
28
|
```
|
|
29
29
|
|
|
30
30
|
### 3. Claude Desktop Configuration
|
|
@@ -66,8 +66,8 @@ Never pollute your host machine again. By simply appending `--docker <image>`, `
|
|
|
66
66
|
|
|
67
67
|
Switch roles on the fly:
|
|
68
68
|
```bash
|
|
69
|
-
npx -y staff-mcp@latest --profile
|
|
70
|
-
npx -y staff-mcp@latest --profile reverse
|
|
69
|
+
npx -y staff-mcp@latest --profile default
|
|
70
|
+
npx -y staff-mcp@latest --profile android-reverse
|
|
71
71
|
```
|
|
72
72
|
|
|
73
73
|
### 3. Built-in `skill-manager`
|
|
@@ -88,7 +88,7 @@ It will securely download, configure, and reload the skill without you lifting a
|
|
|
88
88
|
| :--- | :--- | :--- |
|
|
89
89
|
| `-w, --working-dir` | Root directory for the sandbox | `process.cwd()` |
|
|
90
90
|
| `-d, --allowed-dir` | Extra directories allowed for access | `[]` |
|
|
91
|
-
| `-r, --profile` | The active profile for skills (e.g.,
|
|
91
|
+
| `-r, --profile` | The active profile for skills (e.g., android-reverse) | `default` |
|
|
92
92
|
| `--docker` | Run inside a Docker container using this image | `undefined` |
|
|
93
93
|
| `-D, --docker-args` | Extra args for `docker run` (e.g., `-e FOO=BAR`) | `[]` |
|
|
94
94
|
| `-t, --transport` | Transport type (`stdio` or `http`) | `stdio` |
|
|
@@ -104,13 +104,13 @@ If you need the AI to interact with an Android device connected via USB while ru
|
|
|
104
104
|
|
|
105
105
|
# 2. Start staff-mcp with the ADB_SERVER_SOCKET environment variable injected
|
|
106
106
|
# On Mac/Windows:
|
|
107
|
-
npx -y staff-mcp@latest --docker
|
|
107
|
+
npx -y staff-mcp@latest --docker chineseastar/security:latest -D "-e ADB_SERVER_SOCKET=tcp:host.docker.internal:5037"
|
|
108
108
|
|
|
109
109
|
# On Native Linux (If not using --network host, point to the docker bridge IP):
|
|
110
|
-
npx -y staff-mcp@latest --docker
|
|
110
|
+
npx -y staff-mcp@latest --docker chineseastar/security:latest -D "-e ADB_SERVER_SOCKET=tcp:172.17.0.1:5037"
|
|
111
111
|
|
|
112
112
|
# Alternative for Native Linux (Share host network stack completely):
|
|
113
|
-
npx -y staff-mcp@latest --docker
|
|
113
|
+
npx -y staff-mcp@latest --docker chineseastar/security:latest -D "--network host"
|
|
114
114
|
```
|
|
115
115
|
|
|
116
116
|
---
|
package/README_zh.md
CHANGED
|
@@ -24,7 +24,7 @@ npx -y staff-mcp@latest --working-dir /path/to/your/project
|
|
|
24
24
|
npx -y staff-mcp@latest --docker node:20-alpine
|
|
25
25
|
|
|
26
26
|
# 在自带逆向工程工具链的镜像里执行安全分析
|
|
27
|
-
npx -y staff-mcp@latest --docker
|
|
27
|
+
npx -y staff-mcp@latest --docker chineseastar/security:latest --profile android-reverse
|
|
28
28
|
```
|
|
29
29
|
|
|
30
30
|
### 3. Claude Desktop 配置
|
|
@@ -66,8 +66,8 @@ npx -y staff-mcp@latest --docker reverse-engineer:v3 --profile reverse-engineer
|
|
|
66
66
|
|
|
67
67
|
在不同角色中自由切换:
|
|
68
68
|
```bash
|
|
69
|
-
npx -y staff-mcp@latest --profile
|
|
70
|
-
npx -y staff-mcp@latest --profile reverse
|
|
69
|
+
npx -y staff-mcp@latest --profile default
|
|
70
|
+
npx -y staff-mcp@latest --profile android-reverse
|
|
71
71
|
```
|
|
72
72
|
|
|
73
73
|
### 3. 聪明的“技能管家” (`skill-manager`)
|
|
@@ -88,7 +88,7 @@ npx -y staff-mcp@latest --profile reverse-engineer
|
|
|
88
88
|
| :--- | :--- | :--- |
|
|
89
89
|
| `-w, --working-dir` | 沙盒的根目录 (工作区) | `process.cwd()` |
|
|
90
90
|
| `-d, --allowed-dir` | 额外允许 AI 访问的宿主机目录 | `[]` |
|
|
91
|
-
| `-r, --profile` | 当前激活的技能档案/工种 (如
|
|
91
|
+
| `-r, --profile` | 当前激活的技能档案/工种 (如 android-reverse) | `default` |
|
|
92
92
|
| `--docker` | 在指定的 Docker 镜像内运行 AI | `undefined` |
|
|
93
93
|
| `-D, --docker-args` | 传递给 `docker run` 的自定义底层参数 | `[]` |
|
|
94
94
|
| `-t, --transport` | 传输协议 (`stdio` 或 `http`) | `stdio` |
|
|
@@ -104,13 +104,13 @@ npx -y staff-mcp@latest --profile reverse-engineer
|
|
|
104
104
|
|
|
105
105
|
# 2. 启动 staff-mcp 并注入 ADB_SERVER_SOCKET 环境变量
|
|
106
106
|
# Mac/Win 环境下:
|
|
107
|
-
npx -y staff-mcp@latest --docker
|
|
107
|
+
npx -y staff-mcp@latest --docker chineseastar/security:latest -D "-e ADB_SERVER_SOCKET=tcp:host.docker.internal:5037"
|
|
108
108
|
|
|
109
109
|
# 原生 Linux 环境下(若不使用 host 网络,可指向虚拟桥接 IP):
|
|
110
|
-
npx -y staff-mcp@latest --docker
|
|
110
|
+
npx -y staff-mcp@latest --docker chineseastar/security:latest -D "-e ADB_SERVER_SOCKET=tcp:172.17.0.1:5037"
|
|
111
111
|
|
|
112
112
|
# 原生 Linux 的极简方案(直接与物理机共享网络栈):
|
|
113
|
-
npx -y staff-mcp@latest --docker
|
|
113
|
+
npx -y staff-mcp@latest --docker chineseastar/security:latest -D "--network host"
|
|
114
114
|
```
|
|
115
115
|
|
|
116
116
|
---
|