Skip to content

Commit c12988b

Browse files
committed
fix: update MCP server configuration text to include STREAMABLE_HTTP support
--bug=1056115 --user=刘瑞斌 【应用编排】编辑mcp节点的config后,提问会报错 https://www.tapd.cn/57709429/s/1699333 --bug=1056092 --user=刘瑞斌 【应用编排】MCP的支持文案要加上支持 Streamable HTTP https://www.tapd.cn/57709429/s/1699357
1 parent 2728453 commit c12988b

File tree

4 files changed

+10
-6
lines changed

4 files changed

+10
-6
lines changed

ui/src/locales/lang/en-US/views/application-workflow.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -223,14 +223,14 @@ export default {
223223
},
224224
mcpNode: {
225225
label: 'MCP Server',
226-
text: 'Call MCP Tools through SSE',
226+
text: 'Call MCP Tools through SSE/STREAMABLE_HTTP',
227227
getToolsSuccess: 'Get Tools Successfully',
228228
getTool: 'Get Tools',
229229
tool: 'Tool',
230230
toolParam: 'Tool Params',
231231
mcpServerTip: 'Please enter the JSON format of the MCP server config',
232232
mcpToolTip: 'Please select a tool',
233-
configLabel: 'MCP Server Config (Only supports SSE call method)'
233+
configLabel: 'MCP Server Config (Only supports SSE/STREAMABLE_HTTP call method)'
234234
},
235235
imageGenerateNode: {
236236
label: 'Image Generation',

ui/src/locales/lang/zh-CN/views/application-workflow.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -224,14 +224,14 @@ export default {
224224
},
225225
mcpNode: {
226226
label: 'MCP 调用',
227-
text: '通过SSE方式执行MCP服务中的工具',
227+
text: '通过SSE/STREAMABLE_HTTP方式执行MCP服务中的工具',
228228
getToolsSuccess: '获取工具成功',
229229
getTool: '获取工具',
230230
tool: '工具',
231231
toolParam: '工具参数',
232232
mcpServerTip: '请输入JSON格式的MCP服务器配置',
233233
mcpToolTip: '请选择工具',
234-
configLabel: 'MCP Server Config (仅支持SSE调用方式)'
234+
configLabel: 'MCP Server Config (仅支持SSE/STREAMABLE_HTTP调用方式)'
235235
},
236236
imageGenerateNode: {
237237
label: '图片生成',

ui/src/locales/lang/zh-Hant/views/application-workflow.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -223,14 +223,14 @@ export default {
223223
},
224224
mcpNode: {
225225
label: 'MCP 調用',
226-
text: '透過SSE方式執行MCP服務中的工具',
226+
text: '透過SSE/STREAMABLE_HTTP方式執行MCP服務中的工具',
227227
getToolsSuccess: '獲取工具成功',
228228
getTool: '獲取工具',
229229
tool: '工具',
230230
toolParam: '工具變數',
231231
mcpServerTip: '請輸入JSON格式的MCP服務器配置',
232232
mcpToolTip: '請選擇工具',
233-
configLabel: 'MCP Server Config (僅支持SSE調用方式)'
233+
configLabel: 'MCP Server Config (僅支持SSE/STREAMABLE_HTTP調用方式)'
234234
},
235235
imageGenerateNode: {
236236
label: '圖片生成',

ui/src/workflow/nodes/mcp-node/index.vue

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -266,6 +266,10 @@ function getTools() {
266266
.then((res: any) => {
267267
form_data.value.mcp_tools = res.data
268268
MsgSuccess(t('views.applicationWorkflow.nodes.mcpNode.getToolsSuccess'))
269+
// 修改了json,刷新mcp_server
270+
form_data.value.mcp_server = form_data.value.mcp_tools.filter(
271+
(item: any) => item.name === form_data.value.mcp_tool
272+
)[0].server
269273
})
270274
}
271275

0 commit comments

Comments
 (0)