weapp-vite 6.16.0 → 6.16.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
@@ -261,7 +261,7 @@ weapp-vite dev --open
261
261
 
262
262
  ## CLI 中调用 weapp-ide-cli
263
263
 
264
- `weapp-vite` 内置了对 `weapp-ide-cli` 的透传能力,除了 `dev/build/open/init/generate/analyze/npm` 等原生命令外,其它 IDE 相关命令都可以直接调用:
264
+ `weapp-vite` 内置了对 `weapp-ide-cli` 的透传能力,除了 `dev/build/close/open/init/generate/analyze/npm/prepare/mcp` 等原生命令外,其它 IDE 相关命令都可以直接调用:
265
265
 
266
266
  ```sh
267
267
  weapp-vite preview --project ./dist/build/mp-weixin
@@ -300,12 +300,26 @@ wv mcp init claude-code
300
300
  wv mcp init cursor
301
301
  ```
302
302
 
303
+ 只预览配置、不写入:
304
+
305
+ ```sh
306
+ wv mcp print codex
307
+ ```
308
+
303
309
  检查配置是否可用:
304
310
 
305
311
  ```sh
306
312
  wv mcp doctor codex
307
313
  ```
308
314
 
315
+ 如果已经手动启动 HTTP MCP 服务:
316
+
317
+ ```sh
318
+ wv mcp init codex --transport http --url http://127.0.0.1:3088/mcp
319
+ ```
320
+
321
+ 接入后,AI 可以直接使用 `take_weapp_screenshot`、`compare_weapp_screenshot`,也可以用 `weapp_devtools_connect`、`weapp_devtools_route`、`weapp_devtools_capture`、`weapp_devtools_console` 与 `weapp_runtime_*` 工具检查真实小程序运行时。
322
+
309
323
  仍然需要手动启动 MCP Server 时:
310
324
 
311
325
  ```sh
@@ -317,9 +331,9 @@ wv mcp
317
331
  指定工作区根路径:
318
332
 
319
333
  ```sh
320
- weapp-vite mcp --workspace-root /absolute/path/to/weapp-vite
334
+ weapp-vite mcp --workspace-root <repo-root>
321
335
  # 等价写法
322
- wv mcp --workspace-root /absolute/path/to/weapp-vite
336
+ wv mcp --workspace-root <repo-root>
323
337
  ```
324
338
 
325
339
  在 `vite.config.ts` 或 `weapp-vite.config.ts` 中开启自动启动:
@@ -1,4 +1,4 @@
1
- import { d as getRouteRuntimeGlobalKeys, i as getCompilerContext } from "./createContext-C-05IQc1.mjs";
1
+ import { d as getRouteRuntimeGlobalKeys, i as getCompilerContext } from "./createContext-D69xinBq.mjs";
2
2
  //#region src/auto-routes.ts
3
3
  const ROUTE_RUNTIME_OVERRIDE_KEY = Symbol.for("weapp-vite.route-runtime");
4
4
  function createGetter(resolver) {