dingtalk-mcp 1.0.4 → 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.
@@ -401,9 +401,18 @@ export class DingTalkMCPServer {
401
401
  let objParmas = arg.name.split('.');
402
402
  if (objParmas && objParmas.length > 1) {
403
403
  if (objParmas.length == 2){
404
+ if (!body[objParmas[0]]){
405
+ body[objParmas[0]] = {};
406
+ }
404
407
  body[objParmas[0]][objParmas[1]] = args[arg.name];
405
408
  }
406
409
  if (objParmas.length == 3){
410
+ if (!body[objParmas[0]]){
411
+ body[objParmas[0]] = {};
412
+ }
413
+ if (!body[objParmas[1]]){
414
+ body[objParmas[1]] = {};
415
+ }
407
416
  body[objParmas[0]][objParmas[1]][objParmas[2]] = args[arg.name];
408
417
  }
409
418
  return;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dingtalk-mcp",
3
- "version": "1.0.4",
3
+ "version": "1.0.5",
4
4
  "description": "DingTalk MCP Server - A TypeScript-based MCP server for DingTalk integration",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",