feat: the frontend part of mcp (#22131)

Co-authored-by: jZonG <jzongcode@gmail.com>
Co-authored-by: Novice <novice12185727@gmail.com>
Co-authored-by: nite-knite <nkCoding@gmail.com>
Co-authored-by: Hanqing Zhao <sherry9277@gmail.com>
This commit is contained in:
Joel
2025-07-10 14:14:02 +08:00
committed by GitHub
parent 535fff62f3
commit 5375d9bb27
152 changed files with 6340 additions and 695 deletions

View File

@@ -94,6 +94,7 @@ const translation = {
unsupportedTitle: '不支持的 Action',
unsupportedContent: '已安装的插件版本不提供这个 action。',
unsupportedContent2: '点击切换版本',
unsupportedMCPTool: '当前选定的 Agent 策略插件版本不支持 MCP 工具。',
},
configureApp: '应用设置',
configureModel: '模型设置',

View File

@@ -28,10 +28,21 @@ const translation = {
add: '添加',
added: '已添加',
manageInTools: '去工具列表管理',
emptyTitle: '没有可用的工作流工具',
emptyTip: '去“工作流 -> 发布为工具”添加',
emptyTitleCustom: '没有可用的自定义工具',
emptyTipCustom: '创建自定义工具',
custom: {
title: '没有可用的自定义工具',
tip: '创建自定义工具',
},
workflow: {
title: '没有可用的工作流工具',
tip: '在工作室中发布工作流作为工具',
},
mcp: {
title: '没有可用的 MCP 工具',
tip: '添加 MCP 服务器',
},
agent: {
title: '没有可用的 agent 策略',
},
},
createTool: {
title: '创建自定义工具',
@@ -152,6 +163,71 @@ const translation = {
toolNameUsageTip: '工具调用名称,用于 Agent 推理和提示词',
copyToolName: '复制名称',
noTools: '没有工具',
mcp: {
create: {
cardTitle: '添加 MCP 服务 (HTTP)',
cardLink: '了解更多关于 MCP 服务集成的信息',
},
noConfigured: '未配置',
updateTime: '更新于',
toolsCount: '{{count}} 个工具',
noTools: '没有可用的工具',
modal: {
title: '添加 MCP 服务 (HTTP)',
editTitle: '修改 MCP 服务 (HTTP)',
name: '名称和图标',
namePlaceholder: '命名你的 MCP 服务',
serverUrl: '服务端点 URL',
serverUrlPlaceholder: '服务端点的 URL',
serverUrlWarning: '修改服务端点 URL 可能会影响使用当前 MCP 的应用。',
serverIdentifier: '服务器标识符',
serverIdentifierTip: '工作空间内服务器的唯一标识。支持小写字母、数字、下划线和连字符,最多 24 个字符。',
serverIdentifierPlaceholder: '服务器唯一标识,例如 my-mcp-server',
serverIdentifierWarning: '更改服务器标识符后,现有应用将无法识别此服务器',
cancel: '取消',
save: '保存',
confirm: '添加并授权',
},
delete: '删除 MCP 服务',
deleteConfirmTitle: '你想要删除 {{mcp}} 吗?',
operation: {
edit: '修改',
remove: '删除',
},
authorize: '授权',
authorizing: '授权中...',
authorizingRequired: '需要授权',
authorizeTip: '授权后,工具将显示在这里。',
update: '更新',
updating: '更新中',
gettingTools: '获取工具中...',
updateTools: '更新工具中...',
toolsEmpty: '工具未加载',
getTools: '获取工具',
toolUpdateConfirmTitle: '更新工具列表',
toolUpdateConfirmContent: '更新工具列表可能影响现有应用。您想继续吗?',
toolsNum: '包含 {{count}} 个工具',
onlyTool: '包含 1 个工具',
identifier: '服务器标识符 (点击复制)',
server: {
title: 'MCP 服务',
url: '服务端点 URL',
reGen: '你想要重新生成服务端点 URL 吗?',
addDescription: '添加描述',
edit: '编辑描述',
modal: {
addTitle: '添加描述以启用 MCP 服务',
editTitle: '编辑 MCP 服务描述',
description: '描述',
descriptionPlaceholder: '解释此工具的功能以及 LLM 应如何使用它',
parameters: '参数',
parametersTip: '为每个参数添加描述,以帮助 LLM 理解其目的和约束条件。',
parametersPlaceholder: '参数的用途和约束条件',
confirm: '启用 MCP 服务',
},
publishTip: '应用未发布。请先发布应用。',
},
},
}
export default translation

View File

@@ -232,6 +232,8 @@ const translation = {
'utilities': '工具',
'noResult': '未找到匹配项',
'agent': 'Agent 策略',
'allAdded': '已添加全部',
'addAll': '添加全部',
},
blocks: {
'start': '开始',
@@ -369,6 +371,10 @@ const translation = {
ms: '毫秒',
retries: '{{num}} 重试次数',
},
typeSwitch: {
input: '输入值',
variable: '使用变量',
},
},
start: {
required: '必填',
@@ -663,6 +669,9 @@ const translation = {
tool: {
authorize: '授权',
inputVars: '输入变量',
settings: '设置',
insertPlaceholder1: '键入',
insertPlaceholder2: '插入变量',
outputVars: {
text: '工具生成的内容',
files: {
@@ -890,6 +899,8 @@ const translation = {
install: '安装',
cancel: '取消',
},
clickToViewParameterSchema: '点击查看参数 schema',
parameterSchema: '参数 Schema',
},
},
tracing: {