@atlisp/mcp 1.8.29 → 1.8.30

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
@@ -1,6 +1,6 @@
1
1
  # @lisp MCP Server
2
2
 
3
- MCP (Model Context Protocol) Server for @lisp on CAD — 为 CAD 环境提供 @lisp 包管理服务的 MCP 服务器,同时为 AI Agent 操控 CAD 提供 **220+ 个调用工具**和通道。
3
+ MCP (Model Context Protocol) Server for @lisp on CAD — 为 CAD 环境提供 @lisp 包管理服务的 MCP 服务器,同时为 AI Agent 操控 CAD 提供 **230+ 个调用工具**和通道。
4
4
 
5
5
  支持 **AutoCAD / ZWCAD / GStarCAD / BricsCAD**,通过 COM 互操作与 CAD 通信。
6
6
 
@@ -225,7 +225,7 @@ curl http://localhost:8110/metrics
225
225
 
226
226
  ```json
227
227
  {
228
- "name": "connect_cad",
228
+ "name": "open_cad",
229
229
  "arguments": {}
230
230
  }
231
231
  ```
@@ -234,16 +234,26 @@ curl http://localhost:8110/metrics
234
234
 
235
235
  ```json
236
236
  {
237
- "name": "connect_cad",
237
+ "name": "open_cad",
238
238
  "arguments": {
239
239
  "platform": "AutoCAD"
240
240
  }
241
241
  }
242
242
  ```
243
243
 
244
+ 也支持 `connect_cad` 工具(仅连接不切前台):
245
+
246
+ ```json
247
+ {
248
+ "name": "connect_cad",
249
+ "arguments": {}
250
+ }
251
+ ```
252
+
244
253
  **自动行为**:
245
254
  - 如果 CAD 已运行,连接现有实例
246
255
  - 如果 CAD 未运行,通过 COM 自动创建新实例
256
+ - `open_cad` 额外将 CAD 窗口切换到前台
247
257
 
248
258
  连接成功返回类似: `已连接到 AutoCAD 2025`
249
259
 
@@ -281,11 +291,12 @@ curl http://localhost:8110/metrics
281
291
 
282
292
  ## 工具列表 (230+)
283
293
 
284
- ### 系统与 CAD 连接 (11)
294
+ ### 系统与 CAD 连接 (12)
285
295
 
286
296
  | 工具 | 说明 | 参数 |
287
297
  |------|------|------|
288
- | `connect_cad` | 连接 CAD | `platform` (可选) |
298
+ | `open_cad` | 打开 CAD 应用并切换到前台(未运行则自动启动) | `platform` (可选) |
299
+ | `connect_cad` | 连接 CAD(仅连接不切换前台) | `platform` (可选) |
289
300
  | `eval_lisp` | 执行 LISP 代码(无返回值) | `code` (必填) |
290
301
  | `eval_lisp_with_result` | 执行 LISP 并返回结果 | `code` (必填), `encoding` (可选) |
291
302
  | `get_cad_info` | 获取 CAD 信息 | — |