dingtalk-mcp 1.0.10 → 1.0.12
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,9 @@ export class DingTalkMCPServer {
|
|
|
402
402
|
}
|
|
403
403
|
const body = {};
|
|
404
404
|
(tool.args || []).forEach(arg => {
|
|
405
|
-
if (arg.position === 'body'
|
|
405
|
+
if (arg.position === 'body') {
|
|
406
406
|
// 系统参数,从环境变量读取
|
|
407
407
|
if (arg.system) {
|
|
408
|
-
console.error(`System parameter ${arg.system} , ${arg.name} ${process.env[arg.system]}`);
|
|
409
408
|
if (!process.env[arg.system]){
|
|
410
409
|
throw new Error(`System parameter ${arg.system} is required, please check your environment variables`);
|
|
411
410
|
}
|
|
@@ -413,7 +412,7 @@ export class DingTalkMCPServer {
|
|
|
413
412
|
return;
|
|
414
413
|
}
|
|
415
414
|
// 不需要模型处理,直接取默认值赋值
|
|
416
|
-
if (
|
|
415
|
+
if (arg.not_need_model_transform){
|
|
417
416
|
body[arg.name] = arg.default
|
|
418
417
|
return;
|
|
419
418
|
}
|