@atlisp/mcp 1.0.3 → 1.0.5

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 +88 -23
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -15,12 +15,99 @@ MCP (Model Context Protocol) Server for @lisp on CAD - 为 CAD 环境提供 @lis
15
15
 
16
16
  ## 安装
17
17
 
18
+ ### Windows (PowerShell)
19
+
20
+ ```powershell
21
+ iwr -useb https://atlisp.cn/install.ps1 | iex
22
+ ```
23
+
24
+ ### macOS / Linux
25
+
18
26
  ```bash
19
- npm i -g @atlisp/mcp
27
+ npm i -g @atlisp/mcp
20
28
  ```
21
29
 
22
30
  ## 使用方法
23
31
 
32
+ ### Agent MCP 配置
33
+
34
+ #### OpenHands / OpenDeepResearcher
35
+
36
+ 在配置中添加:
37
+
38
+ ```json
39
+ {
40
+ "mcp_servers": {
41
+ "atlisp-mcp": {
42
+ "command": "atlisp-mcp",
43
+ "args": [],
44
+ "env": {
45
+ "TRANSPORT": "stdio"
46
+ }
47
+ }
48
+ }
49
+ }
50
+ ```
51
+
52
+ #### OpenClaude
53
+
54
+ 在配置文件中添加:
55
+
56
+ ```yaml
57
+ mcp_servers:
58
+ atlisp-mcp:
59
+ command: atlisp-mcp
60
+ env:
61
+ TRANSPORT: stdio
62
+ ```
63
+
64
+ #### Hermes (Claude 独立版)
65
+
66
+ 在 Hermes 设置中找到 MCP Server 配置,添加:
67
+
68
+ ```json
69
+ {
70
+ "name": "atlisp-mcp",
71
+ "command": "atlisp-mcp",
72
+ "args": [],
73
+ "env": {
74
+ "TRANSPORT": "stdio"
75
+ }
76
+ }
77
+ ```
78
+
79
+ #### Cline / Cursor / Windsurf
80
+
81
+ 在这些 IDE 的 MCP 设置中添加:
82
+
83
+ ```json
84
+ {
85
+ "mcpServers": {
86
+ "atlisp-mcp": {
87
+ "command": "atlisp-mcp",
88
+ "args": [],
89
+ "env": {
90
+ "TRANSPORT": "stdio"
91
+ }
92
+ }
93
+ }
94
+ }
95
+ ```
96
+
97
+ #### 使用 HTTP 模式
98
+
99
+ 如果 agent 不支持 stdio,可以改用 HTTP 模式:
100
+
101
+ ```json
102
+ {
103
+ "mcpServers": {
104
+ "atlisp-mcp": {
105
+ "url": "http://localhost:8110/mcp"
106
+ }
107
+ }
108
+ }
109
+ ```
110
+
24
111
  ### 启动服务器
25
112
 
26
113
  **同时支持HTTP 和studio模式**:
@@ -52,22 +139,6 @@ curl http://localhost:8110/health
52
139
 
53
140
  HTTP 模式:`POST http://localhost:8110/mcp`
54
141
 
55
- #### 列出工具
56
-
57
- ```bash
58
- curl -X POST http://localhost:8110/mcp \
59
- -H "Content-Type: application/json" \
60
- -d '{"jsonrpc":"2.0","id":1,"method":"tools/list"}'
61
- ```
62
-
63
- #### 调用工具
64
-
65
- ```bash
66
- curl -X POST http://localhost:8110/mcp \
67
- -H "Content-Type: application/json" \
68
- -d '{"jsonrpc":"2.0","id":2,"method":"tools/call","params":{"name":"工具名","arguments":{参数}}}'
69
- ```
70
-
71
142
  ## 可用工具
72
143
 
73
144
  | 工具名称 | 描述 | 参数 |
@@ -91,12 +162,6 @@ curl -X POST http://localhost:8110/mcp \
91
162
  - **GStarCAD** (文件扩展名: `.des`)
92
163
  - **BricsCAD** (文件扩展名: `.des`)
93
164
 
94
- ## 技术栈
95
-
96
- - **Runtime**: Node.js >= 18
97
- - **MCP SDK**: `@modelcontextprotocol/sdk`
98
- - **CAD 连接**: `edge-js` (通过 .NET COM 互操作)
99
-
100
165
  ## 工作原理
101
166
 
102
167
  1. MCP Server 通过 `edge-js` 调用 .NET 代码
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlisp/mcp",
3
- "version": "1.0.3",
3
+ "version": "1.0.5",
4
4
  "description": "MCP Server for @lisp on CAD",
5
5
  "type": "module",
6
6
  "bin": {