dingtalk-mcp 1.0.10 → 1.0.11

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.
@@ -402,10 +402,10 @@ export class DingTalkMCPServer {
402
402
  }
403
403
  const body = {};
404
404
  (tool.args || []).forEach(arg => {
405
- if (arg.position === 'body' && args[arg.name] !== undefined) {
405
+ if (arg.position === 'body') {
406
406
  // 系统参数,从环境变量读取
407
+ console.error(`System parameter ${arg.system} , ${arg.name} ${process.env[arg.system]}`);
407
408
  if (arg.system) {
408
- console.error(`System parameter ${arg.system} , ${arg.name} ${process.env[arg.system]}`);
409
409
  if (!process.env[arg.system]){
410
410
  throw new Error(`System parameter ${arg.system} is required, please check your environment variables`);
411
411
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dingtalk-mcp",
3
- "version": "1.0.10",
3
+ "version": "1.0.11",
4
4
  "description": "DingTalk MCP Server - A TypeScript-based MCP server for DingTalk integration",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",