dingtalk-mcp 1.0.5 → 1.0.6

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.
@@ -397,6 +397,10 @@ export class DingTalkMCPServer {
397
397
  return;
398
398
  }
399
399
 
400
+ // 如果模型没有对应提参,则不赋值给API对应的入参
401
+ if (!args[arg.name]) {
402
+ return;
403
+ }
400
404
  //Object类型参数,递归处理
401
405
  let objParmas = arg.name.split('.');
402
406
  if (objParmas && objParmas.length > 1) {
@@ -415,9 +419,10 @@ export class DingTalkMCPServer {
415
419
  }
416
420
  body[objParmas[0]][objParmas[1]][objParmas[2]] = args[arg.name];
417
421
  }
418
- return;
422
+ return;
419
423
  }
420
424
 
425
+
421
426
  // userIds参数直接传递为数组类型,保证请求体为正确的JSON对象
422
427
  if (arg.name === 'userIds' && Array.isArray(args[arg.name])) {
423
428
  body[arg.name] = args[arg.name];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dingtalk-mcp",
3
- "version": "1.0.5",
3
+ "version": "1.0.6",
4
4
  "description": "DingTalk MCP Server - A TypeScript-based MCP server for DingTalk integration",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",