luban-dev-mcp 0.1.1 → 0.1.2

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 CHANGED
@@ -12,7 +12,7 @@
12
12
 
13
13
  - Node.js **20+**
14
14
  - 一个 Luban 账号(能访问目标应用)
15
- - 平台地址,例如 `https://113.249.105.235:3003`(**不要带 `/api/v1`**)
15
+ - 平台地址,例如 `https://luban.example.com:3003`(**不要带 `/api/v1`**)
16
16
 
17
17
  ## 2. 第一次接入
18
18
 
@@ -67,7 +67,7 @@ luban-dev-mcp page-check --app 4310 --page 1398 --screenshot out.png --json
67
67
 
68
68
  ## 4. TLS:自签名 / CA
69
69
 
70
- 你的线上地址 `https://113.249.105.235:3003` 目前是**自签名证书**(CN/SAN = IP,有效期到 2027-11-10)。Node 默认会拒绝,三种处理:
70
+ 自签名证书部署(例如 `https://luban.example.com:3003`,CN/SAN 为域名或 IP)Node 默认会拒绝,三种处理:
71
71
 
72
72
  | 方式 | 命令 | 适用 |
73
73
  |---|---|---|
@@ -103,7 +103,7 @@ PAT 的权限就是你本人的平台权限;可在同一页面随时撤销。S
103
103
 
104
104
  ```bash
105
105
  luban-dev-mcp connect \
106
- --base-url https://113.249.105.235:3003 \
106
+ --base-url https://luban.example.com:3003 \
107
107
  --token lbp_... \
108
108
  --app 2
109
109
  ```
@@ -139,7 +139,7 @@ luban-dev-mcp connect \
139
139
  }
140
140
  ```
141
141
 
142
- 发布到 npm 后可以用 `["npx","-y","luban-dev-mcp","serve"]`。
142
+ 已发布到公共 npm:`npx -y luban-dev-mcp serve`(包名 `luban-dev-mcp`)。
143
143
 
144
144
  opencode V2 用:
145
145
 
@@ -181,7 +181,7 @@ opencode V2 用:
181
181
  "command": "npx",
182
182
  "args": ["-y", "luban-dev-mcp", "serve"],
183
183
  "env": {
184
- "LUBAN_BASE_URL": "https://113.249.105.235:3003",
184
+ "LUBAN_BASE_URL": "https://luban.example.com:3003",
185
185
  "LUBAN_TOKEN": "lbp_...",
186
186
  "LUBAN_PROFILE": "main",
187
187
  "LUBAN_TRUST_SERVER": "1"
@@ -226,7 +226,7 @@ opencode V2 用:
226
226
  "type": "local",
227
227
  "command": ["npx", "-y", "luban-dev-mcp", "serve"],
228
228
  "environment": {
229
- "LUBAN_BASE_URL": "https://113.249.105.235:3003",
229
+ "LUBAN_BASE_URL": "https://luban.example.com:3003",
230
230
  "LUBAN_TOKEN": "lbp_...",
231
231
  "LUBAN_PROFILE": "main",
232
232
  "LUBAN_TRUST_SERVER": "1"
@@ -317,3 +317,17 @@ npx tsc -p mcp/tsconfig.json --noEmit
317
317
  node scripts/build-agent-mcp.mjs
318
318
  node mcp/dist/luban-dev-mcp.mjs --help
319
319
  ```
320
+
321
+ ## 维护者发布
322
+
323
+ ```bash
324
+ # 发布当前版本
325
+ NPM_TOKEN=npm_xxx ./frontend/scripts/publish-mcp.sh
326
+
327
+ # 升 patch 后发布
328
+ NPM_TOKEN=npm_xxx ./frontend/scripts/publish-mcp.sh patch
329
+ ```
330
+
331
+ Token 需要 npm Granular Access Token(Read and write + Bypass 2FA),只从环境变量读取。
332
+ 首次发布新包时 npm 可能先建 `0.0.0-stage` 占位版本,真实版本经 staged review 后自动/人工放行;
333
+ 脚本会轮询 registry 并提示审核入口。
@@ -180673,7 +180673,7 @@ async function runInit(flags) {
180673
180673
  init_http2();
180674
180674
 
180675
180675
  // mcp/src/version.ts
180676
- var VERSION3 = "0.1.1";
180676
+ var VERSION3 = "0.1.2";
180677
180677
 
180678
180678
  // mcp/src/doctor.ts
180679
180679
  function printStep(step) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "luban-dev-mcp",
3
- "version": "0.1.1",
3
+ "version": "0.1.2",
4
4
  "description": "Luban 开发助手 MCP(stdio)——复用平台 Agent 技能实现的 Node 适配层",
5
5
  "license": "UNLICENSED",
6
6
  "type": "module",