@atlisp/mcp 1.0.2 → 1.0.4

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 (2) hide show
  1. package/README.md +85 -12
  2. package/package.json +3 -3
package/README.md CHANGED
@@ -2,37 +2,110 @@
2
2
 
3
3
  MCP (Model Context Protocol) Server for @lisp on CAD - 为 CAD 环境提供 @lisp 包管理服务的 MCP 服务器。
4
4
 
5
+ 同时为 AI AGENT 操控 cad 提供调用工具和通道。
6
+
5
7
  ## 功能特性
6
8
 
7
9
  - 连接 AutoCAD/ZWCAD/GStarCAD/BricsCAD
8
10
  - 执行 AutoLISP 代码
9
- - 管理 @lisp 包(列出、搜索、安装)
10
11
  - 获取 CAD 平台信息
11
12
  - 通过 MCP 协议提供标准化接口
13
+ - 管理 @lisp 包(列出、搜索、安装)
14
+
12
15
 
13
16
  ## 安装
14
17
 
15
18
  ```bash
16
- cd tools/mcp-server
17
- npm install
19
+ npm i -g @atlisp/mcp
18
20
  ```
19
21
 
20
22
  ## 使用方法
21
23
 
22
- ### 启动服务器
24
+ ### Agent MCP 配置
23
25
 
24
- **HTTP 模式(默认)**:
25
- ```bash
26
- npm start
27
- # 或
28
- TRANSPORT=http node src/index.js
26
+ #### OpenHands / OpenDeepResearcher
27
+
28
+ 在配置中添加:
29
+
30
+ ```json
31
+ {
32
+ "mcp_servers": {
33
+ "atlisp-mcp": {
34
+ "command": "atlisp-mcp",
35
+ "args": [],
36
+ "env": {
37
+ "TRANSPORT": "stdio"
38
+ }
39
+ }
40
+ }
41
+ }
29
42
  ```
30
43
 
31
- **Stdio 模式**(用于 MCP 客户端):
32
- ```bash
33
- TRANSPORT=stdio node src/index.js
44
+ #### OpenClaude
45
+
46
+ 在配置文件中添加:
47
+
48
+ ```yaml
49
+ mcp_servers:
50
+ atlisp-mcp:
51
+ command: atlisp-mcp
52
+ env:
53
+ TRANSPORT: stdio
34
54
  ```
35
55
 
56
+ #### Hermes (Claude 独立版)
57
+
58
+ 在 Hermes 设置中找到 MCP Server 配置,添加:
59
+
60
+ ```json
61
+ {
62
+ "name": "atlisp-mcp",
63
+ "command": "atlisp-mcp",
64
+ "args": [],
65
+ "env": {
66
+ "TRANSPORT": "stdio"
67
+ }
68
+ }
69
+ ```
70
+
71
+ #### Cline / Cursor / Windsurf
72
+
73
+ 在这些 IDE 的 MCP 设置中添加:
74
+
75
+ ```json
76
+ {
77
+ "mcpServers": {
78
+ "atlisp-mcp": {
79
+ "command": "atlisp-mcp",
80
+ "args": [],
81
+ "env": {
82
+ "TRANSPORT": "stdio"
83
+ }
84
+ }
85
+ }
86
+ }
87
+ ```
88
+
89
+ #### 使用 HTTP 模式
90
+
91
+ 如果 agent 不支持 stdio,可以改用 HTTP 模式:
92
+
93
+ ```json
94
+ {
95
+ "mcpServers": {
96
+ "atlisp-mcp": {
97
+ "url": "http://localhost:8110/mcp"
98
+ }
99
+ }
100
+ }
101
+ ```
102
+
103
+ ### 启动服务器
104
+
105
+ **同时支持HTTP 和studio模式**:
106
+ ```bash
107
+ atlisp-mcp
108
+ ```
36
109
  ### 环境变量
37
110
 
38
111
  | 变量 | 默认值 | 说明 |
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlisp/mcp",
3
- "version": "1.0.2",
3
+ "version": "1.0.4",
4
4
  "description": "MCP Server for @lisp on CAD",
5
5
  "type": "module",
6
6
  "bin": {
@@ -31,9 +31,9 @@
31
31
  "type": "git",
32
32
  "url": "https://gitee.com/atlisp/atlisp-kernel.git"
33
33
  },
34
- "homepage": "https://gitee.com/atlisp/atlisp-kernel",
34
+ "homepage": "https://gitee.com/atlisp",
35
35
  "bugs": {
36
- "url": "https://gitee.com/atlisp/atlisp-kernel/issues"
36
+ "url": "https://gitee.com/organizations/atlisp/issues"
37
37
  },
38
38
  "dependencies": {
39
39
  "@modelcontextprotocol/sdk": "^1.0.0",