From b53a933327302ecdb14528fd14d2e2cac71570b0 Mon Sep 17 00:00:00 2001 From: CaptainB Date: Tue, 1 Apr 2025 10:28:42 +0800 Subject: [PATCH] refactor: update input source type from 'custom' to 'referencing' MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --bug=1054147 --user=刘瑞斌 【MCP调用节点】工具参数默认方式是引用变量 https://www.tapd.cn/57709429/s/1678769 --- ui/src/locales/lang/zh-CN/views/application-workflow.ts | 2 +- ui/src/workflow/nodes/mcp-node/index.vue | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/ui/src/locales/lang/zh-CN/views/application-workflow.ts b/ui/src/locales/lang/zh-CN/views/application-workflow.ts index 49a178534..c4347728b 100644 --- a/ui/src/locales/lang/zh-CN/views/application-workflow.ts +++ b/ui/src/locales/lang/zh-CN/views/application-workflow.ts @@ -222,7 +222,7 @@ export default { }, mcpNode: { label: 'MCP 调用', - text: '通过 SSE 方式执行 MCP 服务中的工具', + text: '通过SSE方式执行MCP服务中的工具', getToolsSuccess: '获取工具成功', getTool: '获取工具', tool: '工具', diff --git a/ui/src/workflow/nodes/mcp-node/index.vue b/ui/src/workflow/nodes/mcp-node/index.vue index 8e5e510e8..fb8ba4ccb 100644 --- a/ui/src/workflow/nodes/mcp-node/index.vue +++ b/ui/src/workflow/nodes/mcp-node/index.vue @@ -253,7 +253,7 @@ function changeTool() { props_info: {} }, input_type: 'TextInput', - source: 'custom', + source: 'referencing', required: args_schema.properties[item].required?.indexOf(item2) !== -1, props_info: { rules: [ @@ -277,7 +277,7 @@ function changeTool() { props_info: {} }, input_type: 'TextInput', - source: 'custom', + source: 'referencing', required: args_schema.required?.indexOf(item) !== -1, props_info: { rules: [