@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 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
- | `list_functions` | 列出所有函数 | 无 |
257
- | `load_atlisp_functionlib` | 从网络加载函数库(AI 提示词/编程) | `format`: json/list |
256
+ | `list_symbols` | 列出所有符号(函数和变量) | 无 |
257
+ | `import_funlib` | 从网络导入函数库数据到 AI Agent | `format`: json/list |
258
258
 
259
259
  ### MCP 方法
260
260
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlisp/mcp",
3
- "version": "1.2.0",
3
+ "version": "1.3.0",
4
4
  "description": "MCP Server for @lisp on CAD",
5
5
  "type": "module",
6
6
  "bin": {
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
- list_functions: (a) => functionHandlers.listFunctions(a.package),
156
- load_atlisp_functionlib: async (a) => {
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: 'list_functions',
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: 'load_atlisp_functionlib',
311
- description: ' http://s3.atlisp.cn/json/functions.json 加载 @lisp 函数库(用于 AI Agent 的提示词和编程调用)',
310
+ name: 'import_funlib',
311
+ description: '从网络导入 @lisp 函数库数据到 AI Agent',
312
312
  inputSchema: {
313
313
  type: 'object',
314
314
  properties: {