@atlisp/mcp 1.2.0 → 1.3.0
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 +2 -2
- package/package.json +1 -1
- package/src/atlisp-mcp.js +6 -6
package/README.md
CHANGED
|
@@ -253,8 +253,8 @@ curl http://localhost:8110/health
|
|
|
253
253
|
| `bring_to_front` | 切换 CAD 到前台 | 无 |
|
|
254
254
|
| `install_atlisp` | 安装 @lisp | 无 |
|
|
255
255
|
| `get_function_usage` | 获取函数用法 | `name`: 函数名 |
|
|
256
|
-
| `
|
|
257
|
-
| `
|
|
256
|
+
| `list_symbols` | 列出所有符号(函数和变量) | 无 |
|
|
257
|
+
| `import_funlib` | 从网络导入函数库数据到 AI Agent | `format`: json/list |
|
|
258
258
|
|
|
259
259
|
### MCP 方法
|
|
260
260
|
|
package/package.json
CHANGED
package/src/atlisp-mcp.js
CHANGED
|
@@ -152,8 +152,8 @@ const TOOL_HANDLERS = {
|
|
|
152
152
|
install_atlisp: () => cadHandlers.installAtlisp(),
|
|
153
153
|
init_atlisp: () => cadHandlers.initAtlisp(),
|
|
154
154
|
get_function_usage: (a) => functionHandlers.getFunctionUsage(a.name, a.package),
|
|
155
|
-
|
|
156
|
-
|
|
155
|
+
list_symbols: (a) => functionHandlers.listFunctions(a.package),
|
|
156
|
+
import_funlib: async (a) => {
|
|
157
157
|
const data = await loadAtlibFunctionLib();
|
|
158
158
|
if (!data) return { content: [{ type: 'text', text: '加载函数库失败' }], isError: true };
|
|
159
159
|
if (a.format === 'list') {
|
|
@@ -297,8 +297,8 @@ export const tools = [
|
|
|
297
297
|
}
|
|
298
298
|
},
|
|
299
299
|
{
|
|
300
|
-
name: '
|
|
301
|
-
description: '列出 @lisp
|
|
300
|
+
name: 'list_symbols',
|
|
301
|
+
description: '列出 @lisp 所有符号,用于检查函数和变量',
|
|
302
302
|
inputSchema: {
|
|
303
303
|
type: 'object',
|
|
304
304
|
properties: {
|
|
@@ -307,8 +307,8 @@ export const tools = [
|
|
|
307
307
|
}
|
|
308
308
|
},
|
|
309
309
|
{
|
|
310
|
-
name: '
|
|
311
|
-
description: '
|
|
310
|
+
name: 'import_funlib',
|
|
311
|
+
description: '从网络导入 @lisp 函数库数据到 AI Agent',
|
|
312
312
|
inputSchema: {
|
|
313
313
|
type: 'object',
|
|
314
314
|
properties: {
|