@ada-mcp/launcher 0.1.43 → 0.1.44
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 +10 -10
- package/launcher.mjs +9 -1
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
"mcpServers": {
|
|
10
10
|
"ada-mcp": {
|
|
11
11
|
"command": "pnpm",
|
|
12
|
-
"args": ["dlx", "@ada-mcp/launcher@0.1.
|
|
12
|
+
"args": ["dlx", "@ada-mcp/launcher@0.1.44"]
|
|
13
13
|
}
|
|
14
14
|
}
|
|
15
15
|
}
|
|
@@ -18,13 +18,13 @@
|
|
|
18
18
|
命令行:
|
|
19
19
|
|
|
20
20
|
```bash
|
|
21
|
-
pnpm dlx @ada-mcp/launcher@0.1.
|
|
21
|
+
pnpm dlx @ada-mcp/launcher@0.1.44
|
|
22
22
|
```
|
|
23
23
|
|
|
24
24
|
npx 等价:
|
|
25
25
|
|
|
26
26
|
```bash
|
|
27
|
-
npx -y @ada-mcp/launcher@0.1.
|
|
27
|
+
npx -y @ada-mcp/launcher@0.1.44
|
|
28
28
|
```
|
|
29
29
|
|
|
30
30
|
**npx 示例**:
|
|
@@ -34,7 +34,7 @@ npx -y @ada-mcp/launcher@0.1.43
|
|
|
34
34
|
"mcpServers": {
|
|
35
35
|
"ada-mcp": {
|
|
36
36
|
"command": "npx",
|
|
37
|
-
"args": ["-y", "@ada-mcp/launcher@0.1.
|
|
37
|
+
"args": ["-y", "@ada-mcp/launcher@0.1.44"]
|
|
38
38
|
}
|
|
39
39
|
}
|
|
40
40
|
}
|
|
@@ -42,9 +42,9 @@ npx -y @ada-mcp/launcher@0.1.43
|
|
|
42
42
|
|
|
43
43
|
## 版本
|
|
44
44
|
|
|
45
|
-
- **使用**:`pnpm dlx @ada-mcp/launcher` 或 `@ada-mcp/launcher@0.1.
|
|
45
|
+
- **使用**:`pnpm dlx @ada-mcp/launcher` 或 `@ada-mcp/launcher@0.1.44` 均可;不写 `@x.y.z` 时拉 npm **latest**(推荐生产环境钉版本)。
|
|
46
46
|
- **发布**:每次 `npm publish` 前必须在 `package.json` **递增 version**;不能重复发布同一版本。
|
|
47
|
-
- **0.1.
|
|
47
|
+
- **0.1.44**:修复 0.1.41 错误依赖未发布的 `@ada/download-probe`;探测逻辑已内联到本包。
|
|
48
48
|
|
|
49
49
|
## 可选环境变量
|
|
50
50
|
|
|
@@ -60,9 +60,9 @@ npx -y @ada-mcp/launcher@0.1.43
|
|
|
60
60
|
|
|
61
61
|
| 方式 | 拉 MCP 包 | 安装 playwright 等 |
|
|
62
62
|
|------|-----------|-------------------|
|
|
63
|
-
| **`pnpm dlx @ada-mcp/launcher@0.1.
|
|
64
|
-
| **`npx -y @ada-mcp/launcher@0.1.
|
|
65
|
-
| `pnpm dlx @ada-mcp/mcp-server@0.1.
|
|
66
|
-
| `npx -y @ada-mcp/mcp-server@0.1.
|
|
63
|
+
| **`pnpm dlx @ada-mcp/launcher@0.1.44`**(标准) | launcher 测速 + `.npmrc` → `pnpm dlx` mcp-server | mcp-server preinstall + bootstrap |
|
|
64
|
+
| **`npx -y @ada-mcp/launcher@0.1.44`** | 同上 → **`npx -y` mcp-server** | 同上 |
|
|
65
|
+
| `pnpm dlx @ada-mcp/mcp-server@0.1.44` | 本机默认源 | 有 preinstall / bootstrap 测速 |
|
|
66
|
+
| `npx -y @ada-mcp/mcp-server@0.1.44` | 无 launcher 测速 | 有 preinstall / bootstrap 测速 |
|
|
67
67
|
|
|
68
68
|
内置 registry 测速候选顺序(相同时靠前优先):**npmmirror(阿里)** → npmjs → 腾讯 → 上海交大 → 中科大 → 华为云。
|
package/launcher.mjs
CHANGED
|
@@ -18,8 +18,16 @@ import {
|
|
|
18
18
|
|
|
19
19
|
const NPMJS_REGISTRY = "https://registry.npmjs.org";
|
|
20
20
|
|
|
21
|
+
function readJsonFile(filePath) {
|
|
22
|
+
let raw = fs.readFileSync(filePath, "utf8");
|
|
23
|
+
if (raw.charCodeAt(0) === 0xfeff) {
|
|
24
|
+
raw = raw.slice(1);
|
|
25
|
+
}
|
|
26
|
+
return JSON.parse(raw);
|
|
27
|
+
}
|
|
28
|
+
|
|
21
29
|
const LAUNCHER_DIR = path.dirname(fileURLToPath(import.meta.url));
|
|
22
|
-
const LAUNCHER_PKG =
|
|
30
|
+
const LAUNCHER_PKG = readJsonFile(path.join(LAUNCHER_DIR, "package.json"));
|
|
23
31
|
const LAUNCHER_VERSION = String(LAUNCHER_PKG.version ?? "0.0.0");
|
|
24
32
|
const LAUNCHER_PKG_NAME = "@ada-mcp/launcher";
|
|
25
33
|
|
package/package.json
CHANGED