weapp-vite 6.6.16 → 6.7.0

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
@@ -82,6 +82,7 @@ function handleClick() {
82
82
 
83
83
  - 配置智能提示文档:[docs/volar.md](./docs/volar.md)
84
84
  - defineConfig 重载说明:[docs/define-config-overloads.md](./docs/define-config-overloads.md)
85
+ - MCP 集成使用指南:[docs/mcp.md](./docs/mcp.md)
85
86
 
86
87
  ## CLI 中调用 weapp-ide-cli
87
88
 
@@ -101,6 +102,39 @@ weapp-vite ide preview --project ./dist/build/mp-weixin
101
102
  weapp-vite ide config show
102
103
  ```
103
104
 
105
+ ## CLI 启动 MCP
106
+
107
+ `weapp-vite` 已集成 `@weapp-vite/mcp`:
108
+
109
+ - 默认不自动启动 MCP 服务(可通过配置开启自动启动)
110
+ - 也可以手动启动 MCP Server
111
+
112
+ ```sh
113
+ weapp-vite mcp
114
+ ```
115
+
116
+ 指定工作区根路径:
117
+
118
+ ```sh
119
+ weapp-vite mcp --workspace-root /absolute/path/to/weapp-vite
120
+ ```
121
+
122
+ 在 `vite.config.ts` 中开启自动启动:
123
+
124
+ ```ts
125
+ import { defineConfig } from 'weapp-vite/config'
126
+
127
+ export default defineConfig({
128
+ weapp: {
129
+ mcp: {
130
+ autoStart: true,
131
+ },
132
+ },
133
+ })
134
+ ```
135
+
136
+ 详细说明见:[docs/mcp.md](./docs/mcp.md)
137
+
104
138
  ## Contribute
105
139
 
106
140
  我们邀请你来贡献和帮助改进 `weapp-vite` 💚💚💚
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  init_esm_shims
3
- } from "../chunk-YITJ3DB4.mjs";
3
+ } from "../chunk-GTITIIY3.mjs";
4
4
 
5
5
  // src/auto-import-components/resolvers/index.ts
6
6
  init_esm_shims();
@@ -1,12 +1,13 @@
1
1
  import {
2
2
  getCompilerContext
3
- } from "./chunk-V5CB4KLU.mjs";
4
- import "./chunk-TJSTTJPE.mjs";
5
- import "./chunk-ZK6BEHJG.mjs";
6
- import "./chunk-IUSUEHMM.mjs";
3
+ } from "./chunk-EH3FR4SH.mjs";
4
+ import "./chunk-ZVO7KLQN.mjs";
5
+ import "./chunk-BHF4WHJX.mjs";
6
+ import "./chunk-O2ZCPWFG.mjs";
7
+ import "./chunk-WFHC5POL.mjs";
7
8
  import {
8
9
  init_esm_shims
9
- } from "./chunk-YITJ3DB4.mjs";
10
+ } from "./chunk-GTITIIY3.mjs";
10
11
 
11
12
  // src/auto-routes.ts
12
13
  init_esm_shims();
@@ -2,10 +2,10 @@ import {
2
2
  getCompilerContext,
3
3
  resetCompilerContext,
4
4
  setActiveCompilerContextKey
5
- } from "./chunk-V5CB4KLU.mjs";
5
+ } from "./chunk-EH3FR4SH.mjs";
6
6
  import {
7
7
  init_esm_shims
8
- } from "./chunk-YITJ3DB4.mjs";
8
+ } from "./chunk-GTITIIY3.mjs";
9
9
 
10
10
  // src/createContext.ts
11
11
  init_esm_shims();