dingtalk-mcp 1.0.14 → 1.0.15

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.
@@ -32,12 +32,12 @@ tools:
32
32
  description: 部门名称或者部门名称拼音
33
33
  - name: offset
34
34
  type: number
35
- required: false
35
+ required: true
36
36
  position: body
37
37
  description: 分页页码,默认0
38
38
  - name: size
39
39
  type: number
40
- required: false
40
+ required: true
41
41
  position: body
42
42
  description: 分页大小,默认10,最大100
43
43
 
@@ -458,18 +458,18 @@ export class DingTalkMCPServer {
458
458
  }
459
459
  }
460
460
  });
461
- // 为searchUser添加默认的分页参数
462
- if (tool.name === 'searchUser') {
463
- // 设置默认的offset为0
464
- if (body.offset === undefined) {
465
- body.offset = 0;
466
- }
467
- // 设置默认的size为20
468
- if (body.size === undefined) {
469
- body.size = 20;
470
- }
471
- console.error(`SearchUser API with params: offset=${body.offset}, size=${body.size}`);
461
+ // 为searchUser/searchDepartment添加默认的分页参数
462
+
463
+ // 设置默认的offset为0
464
+ if (body.offset === undefined) {
465
+ body.offset = 0;
472
466
  }
467
+ // 设置默认的size为20
468
+ if (body.size === undefined) {
469
+ body.size = 20;
470
+ }
471
+ console.error(`SearchUser API with params: offset=${body.offset}, size=${body.size}`);
472
+
473
473
  return Object.keys(body).length > 0 ? body : undefined;
474
474
  }
475
475
  async run() {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dingtalk-mcp",
3
- "version": "1.0.14",
3
+ "version": "1.0.15",
4
4
  "description": "DingTalk MCP Server - A TypeScript-based MCP server for DingTalk integration",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",