@atlisp/mcp 1.8.30 → 1.8.32
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 +33 -2
- package/dist/atlisp-mcp.js +1868 -1262
- package/dist/cad-rothelper.dll +0 -0
- package/dist/cad-worker.js +33 -25
- package/dist/config.js +18 -0
- package/dist/handlers/dim-hatch-handlers.js +0 -24
- package/dist/handlers/file-handlers.js +1 -11
- package/dist/handlers/pipeline-handlers.js +135 -0
- package/dist/lisp-security.js +1 -3
- package/package.json +1 -1
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 提供 **230+
|
|
3
|
+
MCP (Model Context Protocol) Server for @lisp on CAD — 为 CAD 环境提供 @lisp 包管理服务的 MCP 服务器,同时为 AI Agent 操控 CAD 提供 **230+ 个调用工具**和通道。自 v1.8.32 起,Windows 自动启动支持后台静默运行(无终端窗口)。
|
|
4
4
|
|
|
5
5
|
支持 **AutoCAD / ZWCAD / GStarCAD / BricsCAD**,通过 COM 互操作与 CAD 通信。
|
|
6
6
|
|
|
@@ -189,6 +189,32 @@ atlisp-mcp --ws
|
|
|
189
189
|
atlisp-mcp --port 9000 --host 127.0.0.1
|
|
190
190
|
```
|
|
191
191
|
|
|
192
|
+
> **端口防冲突**:每个端口只允许一个实例运行。启动时自动检测端口是否已被其他 `atlisp-mcp` 进程占用(通过 `~/.atlisp/locks/atlisp-mcp-{port}.lock` PID 锁文件),占用则报错退出。不同端口可同时运行多个实例互不干扰。
|
|
193
|
+
|
|
194
|
+
### 设置开机自启
|
|
195
|
+
|
|
196
|
+
注册到用户登录后自动启动 HTTP 服务:
|
|
197
|
+
|
|
198
|
+
```bash
|
|
199
|
+
atlisp-mcp --install-autostart
|
|
200
|
+
```
|
|
201
|
+
|
|
202
|
+
移除自启:
|
|
203
|
+
|
|
204
|
+
```bash
|
|
205
|
+
atlisp-mcp --uninstall-autostart
|
|
206
|
+
```
|
|
207
|
+
|
|
208
|
+
查看自启状态:
|
|
209
|
+
|
|
210
|
+
```bash
|
|
211
|
+
atlisp-mcp --autostart-status
|
|
212
|
+
```
|
|
213
|
+
|
|
214
|
+
支持三种平台:Windows(Registry Run 键)、macOS(LaunchAgent)、Linux(XDG Autostart)。
|
|
215
|
+
|
|
216
|
+
**Windows 隐藏窗口**:自 v1.8.32 起,Windows 下自动启动使用 `powershell -WindowStyle Hidden` 包装,启动后无终端窗口闪现,在后台静默运行。
|
|
217
|
+
|
|
192
218
|
### 健康检查
|
|
193
219
|
|
|
194
220
|
```bash
|
|
@@ -291,6 +317,8 @@ curl http://localhost:8110/metrics
|
|
|
291
317
|
|
|
292
318
|
## 工具列表 (230+)
|
|
293
319
|
|
|
320
|
+
> 所有工具的 `description` 和参数说明已针对 AI Agent 优化——包含触发条件、参数示例、交叉引用和后果提示,帮助 Agent 更准确选择和使用工具。
|
|
321
|
+
|
|
294
322
|
### 系统与 CAD 连接 (12)
|
|
295
323
|
|
|
296
324
|
| 工具 | 说明 | 参数 |
|
|
@@ -824,6 +852,9 @@ curl http://localhost:8110/metrics
|
|
|
824
852
|
| `--config <path>` | 配置文件路径 |
|
|
825
853
|
| `--ssl-key <path>` | SSL 私钥文件 |
|
|
826
854
|
| `--ssl-cert <path>` | SSL 证书文件 |
|
|
855
|
+
| `--install-autostart` | 注册用户登录后自动启动 HTTP 服务 |
|
|
856
|
+
| `--uninstall-autostart` | 移除自动启动注册 |
|
|
857
|
+
| `--autostart-status` | 查询自动启动是否已安装 |
|
|
827
858
|
|
|
828
859
|
---
|
|
829
860
|
|
|
@@ -880,7 +911,7 @@ curl http://localhost:8110/metrics
|
|
|
880
911
|
| 中文乱码 | 使用 `encoding: gbk` 参数或用 `vl-prin1-to-string` 处理 |
|
|
881
912
|
| 括号错误 | MCP Server 会自动检查并提示 |
|
|
882
913
|
| CAD 未自动启动 | 检查 COM 权限,以管理员身份运行 |
|
|
883
|
-
| 端口被占用 | 使用 `--port`
|
|
914
|
+
| 端口被占用 | 使用 `--port` 指定其他端口;同端口多实例冲突时,结束原进程或换端口 |
|
|
884
915
|
| 全局命令找不到 | 检查 npm 全局安装路径是否在 PATH 中 |
|
|
885
916
|
|
|
886
917
|
---
|