exploria-ui-mcp-server 2.0.0 → 2.1.1

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.
Files changed (3) hide show
  1. package/README.md +14 -8
  2. package/dist/index.js +2107 -1990
  3. package/package.json +5 -1
package/README.md CHANGED
@@ -64,7 +64,7 @@ pnpm install
64
64
 
65
65
  ### 2.3 Trae IDE 配置
66
66
 
67
- 1. 打开 Trae IDE MCP 配置文件:`.cursor/mcp.json`(位于项目根目录)
67
+ 1. 打开 Trae IDE MCP 配置文件:`.trae/mcp.json`(位于项目根目录)
68
68
  2. 添加以下配置:
69
69
 
70
70
  ```json
@@ -74,8 +74,8 @@ pnpm install
74
74
  "id": "exploria-ui-mcp",
75
75
  "name": "Exploria UI MCP Server",
76
76
  "command": "pnpm",
77
- "args": ["serve"],
78
- "cwd": "mcp-server",
77
+ "args": ["mcp:dev"],
78
+ "cwd": ".",
79
79
  "env": {},
80
80
  "enabled": true
81
81
  }
@@ -85,7 +85,8 @@ pnpm install
85
85
 
86
86
  **注意**:
87
87
 
88
- - `cwd` 路径为相对于项目根目录的路径
88
+ - `cwd` 路径为项目根目录
89
+ - 使用根项目的 `mcp:dev` 脚本启动服务
89
90
  - 确保 `enabled` 字段设置为 `true` 以启用该服务器
90
91
 
91
92
  3. 重启 Trae IDE 或重新加载配置,它会自动启动并连接到 MCP Server
@@ -172,13 +173,18 @@ pnpm build
172
173
  **注意**:在生产环境中,MCP Server 由 AI IDE 自动启动和管理,无需手动运行。以下命令仅用于开发和调试阶段。
173
174
 
174
175
  ```bash
175
- # 使用 tsx 直接运行 TypeScript 代码(开发模式)
176
- pnpm serve
176
+ # 从根项目启动 MCP Server 开发模式
177
+ pnpm mcp:dev
178
+
179
+ # 构建 MCP Server
180
+ pnpm mcp:build
177
181
 
178
- # 运行构建后的代码(生产模式测试)
179
- pnpm start
182
+ # 运行构建后的 MCP Server
183
+ pnpm mcp:start
180
184
  ```
181
185
 
186
+ **注意**:这些命令需要在项目根目录下执行,而不是 mcp-server 子目录。
187
+
182
188
  ### 5.3 使用 MCP Dev 工具
183
189
 
184
190
  安装 MCP Dev 工具进行调试: