mirror of
https://github.com/langbot-app/LangBot.git
synced 2026-08-29 21:57:14 +00:00
fix: error message in mcp card
This commit is contained in:
@@ -95,16 +95,20 @@ export default function PluginConfigPage() {
|
|||||||
};
|
};
|
||||||
const getFormSchema = (t: (key: string) => string) =>
|
const getFormSchema = (t: (key: string) => string) =>
|
||||||
z.object({
|
z.object({
|
||||||
name: z.string({ required_error: t('mcp.nameRequired') }),
|
name: z
|
||||||
|
.string({ required_error: t('mcp.nameRequired') })
|
||||||
|
.min(1, { message: t('mcp.nameRequired') }),
|
||||||
timeout: z
|
timeout: z
|
||||||
.number({ invalid_type_error: t('mcp.timeoutMustBeNumber') })
|
.number({ invalid_type_error: t('mcp.timeoutMustBeNumber') })
|
||||||
.nonnegative({ message: t('mcp.timeoutNonNegative') })
|
.positive({ message: t('mcp.timeoutMustBePositive') })
|
||||||
.default(30),
|
.default(30),
|
||||||
ssereadtimeout: z
|
ssereadtimeout: z
|
||||||
.number({ invalid_type_error: t('mcp.sseTimeoutMustBeNumber') })
|
.number({ invalid_type_error: t('mcp.sseTimeoutMustBeNumber') })
|
||||||
.nonnegative({ message: t('mcp.sseTimeoutNonNegative') })
|
.positive({ message: t('mcp.timeoutMustBePositive') })
|
||||||
.default(300),
|
.default(300),
|
||||||
url: z.string({ required_error: t('models.requestURLRequired') }),
|
url: z
|
||||||
|
.string({ required_error: t('mcp.urlRequired') })
|
||||||
|
.min(1, { message: t('mcp.urlRequired') }),
|
||||||
extra_args: z
|
extra_args: z
|
||||||
.array(
|
.array(
|
||||||
z.object({
|
z.object({
|
||||||
@@ -1207,7 +1211,14 @@ export default function PluginConfigPage() {
|
|||||||
<FormItem>
|
<FormItem>
|
||||||
<FormLabel>{t('mcp.timeout')}</FormLabel>
|
<FormLabel>{t('mcp.timeout')}</FormLabel>
|
||||||
<FormControl>
|
<FormControl>
|
||||||
<Input {...field} />
|
<Input
|
||||||
|
type="number"
|
||||||
|
placeholder={t('mcp.timeout')}
|
||||||
|
{...field}
|
||||||
|
onChange={(e) =>
|
||||||
|
field.onChange(Number(e.target.value))
|
||||||
|
}
|
||||||
|
/>
|
||||||
</FormControl>
|
</FormControl>
|
||||||
<FormMessage />
|
<FormMessage />
|
||||||
</FormItem>
|
</FormItem>
|
||||||
|
|||||||
@@ -284,7 +284,6 @@ const enUS = {
|
|||||||
},
|
},
|
||||||
mcp: {
|
mcp: {
|
||||||
title: 'MCP Management',
|
title: 'MCP Management',
|
||||||
description: 'Manage Model Context Protocol (MCP) servers to extend AI capabilities',
|
|
||||||
createServer: 'Create MCP Server',
|
createServer: 'Create MCP Server',
|
||||||
editServer: 'Edit MCP Server',
|
editServer: 'Edit MCP Server',
|
||||||
deleteServer: 'Delete MCP Server',
|
deleteServer: 'Delete MCP Server',
|
||||||
@@ -295,11 +294,11 @@ const enUS = {
|
|||||||
serverMode: 'Connection Mode',
|
serverMode: 'Connection Mode',
|
||||||
stdio: 'Stdio Mode',
|
stdio: 'Stdio Mode',
|
||||||
sse: 'SSE Mode',
|
sse: 'SSE Mode',
|
||||||
serverConfig: 'MCP Server Configuration',
|
|
||||||
noServerInstalled: 'No MCP servers configured',
|
noServerInstalled: 'No MCP servers configured',
|
||||||
serverNameRequired: 'Server name cannot be empty',
|
serverNameRequired: 'Server name cannot be empty',
|
||||||
commandRequired: 'Command cannot be empty',
|
commandRequired: 'Command cannot be empty',
|
||||||
urlRequired: 'URL cannot be empty',
|
urlRequired: 'URL cannot be empty',
|
||||||
|
timeoutMustBePositive: 'Timeout must be a positive number',
|
||||||
command: 'Command',
|
command: 'Command',
|
||||||
args: 'Arguments',
|
args: 'Arguments',
|
||||||
env: 'Environment Variables',
|
env: 'Environment Variables',
|
||||||
@@ -311,13 +310,10 @@ const enUS = {
|
|||||||
addHeader: 'Add Header',
|
addHeader: 'Add Header',
|
||||||
keyName: 'Key Name',
|
keyName: 'Key Name',
|
||||||
value: 'Value',
|
value: 'Value',
|
||||||
connected: 'Connected',
|
|
||||||
disconnected: 'Disconnected',
|
|
||||||
error: 'Error',
|
|
||||||
testConnection: 'Test Connection',
|
|
||||||
testing: 'Testing...',
|
testing: 'Testing...',
|
||||||
testSuccess: 'Connection test successful',
|
testSuccess: 'Connection test successful',
|
||||||
testFailed: 'Connection test failed: ',
|
testFailed: 'Connection test failed: ',
|
||||||
|
testError: 'Connection test error',
|
||||||
connectionSuccess: 'Connection successful',
|
connectionSuccess: 'Connection successful',
|
||||||
connectionFailed: 'Connection failed',
|
connectionFailed: 'Connection failed',
|
||||||
toolsFound: 'tools',
|
toolsFound: 'tools',
|
||||||
@@ -328,51 +324,36 @@ const enUS = {
|
|||||||
getTaskFailed: 'Failed to get task status',
|
getTaskFailed: 'Failed to get task status',
|
||||||
noTaskId: 'No task ID obtained',
|
noTaskId: 'No task ID obtained',
|
||||||
deleteSuccess: 'Deleted successfully',
|
deleteSuccess: 'Deleted successfully',
|
||||||
|
deleteFailed: 'Delete failed: ',
|
||||||
deleteError: 'Delete failed: ',
|
deleteError: 'Delete failed: ',
|
||||||
saveSuccess: 'Saved successfully',
|
saveSuccess: 'Saved successfully',
|
||||||
saveError: 'Save failed: ',
|
saveError: 'Save failed: ',
|
||||||
createSuccess: 'Created successfully',
|
createSuccess: 'Created successfully',
|
||||||
|
createFailed: 'Creation failed: ',
|
||||||
createError: 'Creation failed: ',
|
createError: 'Creation failed: ',
|
||||||
|
loadFailed: 'Load failed',
|
||||||
modifyFailed: 'Modify failed: ',
|
modifyFailed: 'Modify failed: ',
|
||||||
toolCount: 'Tools: {{count}}',
|
toolCount: 'Tools: {{count}}',
|
||||||
statusConnected: 'Connected',
|
statusConnected: 'Connected',
|
||||||
statusDisconnected: 'Disconnected',
|
statusDisconnected: 'Disconnected',
|
||||||
statusError: 'Connection Error',
|
statusError: 'Connection Error',
|
||||||
statusDisabled: 'Disabled',
|
statusDisabled: 'Disabled',
|
||||||
serverStatus: 'Server Status',
|
|
||||||
marketplace: 'MCP Marketplace',
|
|
||||||
searchServer: 'Search MCP servers',
|
|
||||||
sortBy: 'Sort by',
|
|
||||||
mostStars: 'Most stars',
|
|
||||||
recentlyAdded: 'Recently added',
|
|
||||||
recentlyUpdated: 'Recently updated',
|
|
||||||
loading: 'Loading...',
|
loading: 'Loading...',
|
||||||
noMatchingServers: 'No matching MCP servers',
|
|
||||||
starCount: 'Stars: {{count}}',
|
starCount: 'Stars: {{count}}',
|
||||||
install: 'Install',
|
install: 'Install',
|
||||||
installing: 'Installing...',
|
|
||||||
installSuccess: 'MCP server installed successfully',
|
|
||||||
installFailed: 'MCP server installation failed',
|
|
||||||
installFromGithub: 'Install MCP Server from GitHub',
|
installFromGithub: 'Install MCP Server from GitHub',
|
||||||
onlySupportGithub: 'Currently only supports installation from GitHub',
|
|
||||||
enterGithubLink: 'Enter GitHub repository link',
|
|
||||||
add: 'Add',
|
add: 'Add',
|
||||||
name: 'Name',
|
name: 'Name',
|
||||||
nameExplained: 'Used to distinguish different MCP server instances',
|
|
||||||
sseURL: 'SSE URL',
|
|
||||||
sseHeaders: 'SSE Headers',
|
|
||||||
nameRequired: 'Name cannot be empty',
|
nameRequired: 'Name cannot be empty',
|
||||||
sseURLRequired: 'SSE URL cannot be empty',
|
|
||||||
enterSSELink: 'Enter SSE URL',
|
|
||||||
timeoutRequired: 'Timeout cannot be empty',
|
|
||||||
headersExample: 'Example: Authorization: Bearer token123',
|
|
||||||
enterTimeout: 'Enter timeout in milliseconds',
|
|
||||||
installFromSSE: 'Install from SSE',
|
|
||||||
sseTimeout: 'SSE Timeout',
|
sseTimeout: 'SSE Timeout',
|
||||||
sseTimeoutDescription: 'Timeout for establishing SSE connection',
|
sseTimeoutDescription: 'Timeout for establishing SSE connection',
|
||||||
extraParametersDescription: 'Additional parameters for configuring specific MCP server behavior',
|
extraParametersDescription: 'Additional parameters for configuring specific MCP server behavior',
|
||||||
|
timeoutMustBeNumber: 'Timeout must be a number',
|
||||||
|
timeoutNonNegative: 'Timeout cannot be negative',
|
||||||
|
sseTimeoutMustBeNumber: 'SSE timeout must be a number',
|
||||||
|
sseTimeoutNonNegative: 'SSE timeout cannot be negative',
|
||||||
updateSuccess: 'Updated successfully',
|
updateSuccess: 'Updated successfully',
|
||||||
testError: 'Connection test error',
|
updateFailed: 'Update failed: ',
|
||||||
},
|
},
|
||||||
pipelines: {
|
pipelines: {
|
||||||
title: 'Pipelines',
|
title: 'Pipelines',
|
||||||
|
|||||||
@@ -286,7 +286,6 @@ const jaJP = {
|
|||||||
},
|
},
|
||||||
mcp: {
|
mcp: {
|
||||||
title: 'MCP管理',
|
title: 'MCP管理',
|
||||||
description: 'Model Context Protocol (MCP) サーバーを管理してAI機能を拡張',
|
|
||||||
createServer: 'MCPサーバーを作成',
|
createServer: 'MCPサーバーを作成',
|
||||||
editServer: 'MCPサーバーを編集',
|
editServer: 'MCPサーバーを編集',
|
||||||
deleteServer: 'MCPサーバーを削除',
|
deleteServer: 'MCPサーバーを削除',
|
||||||
@@ -297,11 +296,11 @@ const jaJP = {
|
|||||||
serverMode: '接続モード',
|
serverMode: '接続モード',
|
||||||
stdio: 'Stdioモード',
|
stdio: 'Stdioモード',
|
||||||
sse: 'SSEモード',
|
sse: 'SSEモード',
|
||||||
serverConfig: 'MCPサーバー設定',
|
|
||||||
noServerInstalled: 'MCPサーバーが設定されていません',
|
noServerInstalled: 'MCPサーバーが設定されていません',
|
||||||
serverNameRequired: 'サーバー名は必須です',
|
serverNameRequired: 'サーバー名は必須です',
|
||||||
commandRequired: 'コマンドは必須です',
|
commandRequired: 'コマンドは必須です',
|
||||||
urlRequired: 'URLは必須です',
|
urlRequired: 'URLは必須です',
|
||||||
|
timeoutMustBePositive: 'タイムアウトは正の数でなければなりません',
|
||||||
command: 'コマンド',
|
command: 'コマンド',
|
||||||
args: '引数',
|
args: '引数',
|
||||||
env: '環境変数',
|
env: '環境変数',
|
||||||
@@ -313,13 +312,10 @@ const jaJP = {
|
|||||||
addHeader: 'ヘッダーを追加',
|
addHeader: 'ヘッダーを追加',
|
||||||
keyName: 'キー名',
|
keyName: 'キー名',
|
||||||
value: '値',
|
value: '値',
|
||||||
connected: '接続済み',
|
|
||||||
disconnected: '未接続',
|
|
||||||
error: 'エラー',
|
|
||||||
testConnection: '接続テスト',
|
|
||||||
testing: 'テスト中...',
|
testing: 'テスト中...',
|
||||||
testSuccess: '接続テストに成功しました',
|
testSuccess: '接続テストに成功しました',
|
||||||
testFailed: '接続テストに失敗しました:',
|
testFailed: '接続テストに失敗しました:',
|
||||||
|
testError: '接続テストエラー',
|
||||||
connectionSuccess: '接続に成功しました',
|
connectionSuccess: '接続に成功しました',
|
||||||
connectionFailed: '接続に失敗しました',
|
connectionFailed: '接続に失敗しました',
|
||||||
toolsFound: '個のツール',
|
toolsFound: '個のツール',
|
||||||
@@ -330,51 +326,36 @@ const jaJP = {
|
|||||||
getTaskFailed: 'タスクステータスの取得に失敗しました',
|
getTaskFailed: 'タスクステータスの取得に失敗しました',
|
||||||
noTaskId: 'タスクIDを取得できませんでした',
|
noTaskId: 'タスクIDを取得できませんでした',
|
||||||
deleteSuccess: '削除に成功しました',
|
deleteSuccess: '削除に成功しました',
|
||||||
|
deleteFailed: '削除に失敗しました:',
|
||||||
deleteError: '削除に失敗しました:',
|
deleteError: '削除に失敗しました:',
|
||||||
saveSuccess: '保存に成功しました',
|
saveSuccess: '保存に成功しました',
|
||||||
saveError: '保存に失敗しました:',
|
saveError: '保存に失敗しました:',
|
||||||
createSuccess: '作成に成功しました',
|
createSuccess: '作成に成功しました',
|
||||||
|
createFailed: '作成に失敗しました:',
|
||||||
createError: '作成に失敗しました:',
|
createError: '作成に失敗しました:',
|
||||||
|
loadFailed: '読み込みに失敗しました',
|
||||||
modifyFailed: '変更に失敗しました:',
|
modifyFailed: '変更に失敗しました:',
|
||||||
toolCount: 'ツール:{{count}}',
|
toolCount: 'ツール:{{count}}',
|
||||||
statusConnected: '接続済み',
|
statusConnected: '接続済み',
|
||||||
statusDisconnected: '未接続',
|
statusDisconnected: '未接続',
|
||||||
statusError: '接続エラー',
|
statusError: '接続エラー',
|
||||||
statusDisabled: '無効',
|
statusDisabled: '無効',
|
||||||
serverStatus: 'サーバーステータス',
|
|
||||||
marketplace: 'MCPマーケットプレイス',
|
|
||||||
searchServer: 'MCPサーバーを検索',
|
|
||||||
sortBy: '並び順',
|
|
||||||
mostStars: 'スター数順',
|
|
||||||
recentlyAdded: '最近追加',
|
|
||||||
recentlyUpdated: '最近更新',
|
|
||||||
loading: '読み込み中...',
|
loading: '読み込み中...',
|
||||||
noMatchingServers: '一致するMCPサーバーが見つかりません',
|
|
||||||
starCount: 'スター:{{count}}',
|
starCount: 'スター:{{count}}',
|
||||||
install: 'インストール',
|
install: 'インストール',
|
||||||
installing: 'インストール中...',
|
|
||||||
installSuccess: 'MCPサーバーのインストールに成功しました',
|
|
||||||
installFailed: 'MCPサーバーのインストールに失敗しました',
|
|
||||||
installFromGithub: 'GitHubからMCPサーバーをインストール',
|
installFromGithub: 'GitHubからMCPサーバーをインストール',
|
||||||
onlySupportGithub: '現在はGitHubからのインストールのみサポートしています',
|
|
||||||
enterGithubLink: 'GitHubリポジトリのリンクを入力',
|
|
||||||
add: '追加',
|
add: '追加',
|
||||||
name: '名前',
|
name: '名前',
|
||||||
nameExplained: '異なるMCPサーバーインスタンスを区別するために使用',
|
|
||||||
sseURL: 'SSE URL',
|
|
||||||
sseHeaders: 'SSEヘッダー',
|
|
||||||
nameRequired: '名前は必須です',
|
nameRequired: '名前は必須です',
|
||||||
sseURLRequired: 'SSE URLは必須です',
|
|
||||||
enterSSELink: 'SSE URLを入力',
|
|
||||||
timeoutRequired: 'タイムアウトは必須です',
|
|
||||||
headersExample: '例: Authorization: Bearer token123',
|
|
||||||
enterTimeout: 'タイムアウトをミリ秒単位で入力',
|
|
||||||
installFromSSE: 'SSEからインストール',
|
|
||||||
sseTimeout: 'SSEタイムアウト',
|
sseTimeout: 'SSEタイムアウト',
|
||||||
sseTimeoutDescription: 'SSE接続を確立するためのタイムアウト',
|
sseTimeoutDescription: 'SSE接続を確立するためのタイムアウト',
|
||||||
extraParametersDescription: 'MCPサーバーの特定の動作を設定するための追加パラメータ',
|
extraParametersDescription: 'MCPサーバーの特定の動作を設定するための追加パラメータ',
|
||||||
|
timeoutMustBeNumber: 'タイムアウトは数値である必要があります',
|
||||||
|
timeoutNonNegative: 'タイムアウトは負の数にできません',
|
||||||
|
sseTimeoutMustBeNumber: 'SSEタイムアウトは数値である必要があります',
|
||||||
|
sseTimeoutNonNegative: 'SSEタイムアウトは負の数にできません',
|
||||||
updateSuccess: '更新に成功しました',
|
updateSuccess: '更新に成功しました',
|
||||||
testError: '接続テスト出錯',
|
updateFailed: '更新に失敗しました:',
|
||||||
},
|
},
|
||||||
pipelines: {
|
pipelines: {
|
||||||
title: 'パイプライン',
|
title: 'パイプライン',
|
||||||
|
|||||||
@@ -272,7 +272,6 @@ const zhHans = {
|
|||||||
},
|
},
|
||||||
mcp: {
|
mcp: {
|
||||||
title: 'MCP管理',
|
title: 'MCP管理',
|
||||||
description: '管理Model Context Protocol (MCP) 服务器,扩展AI能力',
|
|
||||||
createServer: '创建MCP服务器',
|
createServer: '创建MCP服务器',
|
||||||
editServer: '编辑MCP服务器',
|
editServer: '编辑MCP服务器',
|
||||||
deleteServer: '删除MCP服务器',
|
deleteServer: '删除MCP服务器',
|
||||||
@@ -283,11 +282,11 @@ const zhHans = {
|
|||||||
serverMode: '连接模式',
|
serverMode: '连接模式',
|
||||||
stdio: 'Stdio模式',
|
stdio: 'Stdio模式',
|
||||||
sse: 'SSE模式',
|
sse: 'SSE模式',
|
||||||
serverConfig: 'MCP服务器配置',
|
|
||||||
noServerInstalled: '暂未配置任何MCP服务器',
|
noServerInstalled: '暂未配置任何MCP服务器',
|
||||||
serverNameRequired: '服务器名称不能为空',
|
serverNameRequired: '服务器名称不能为空',
|
||||||
commandRequired: '命令不能为空',
|
commandRequired: '命令不能为空',
|
||||||
urlRequired: 'URL不能为空',
|
urlRequired: 'URL不能为空',
|
||||||
|
timeoutMustBePositive: '超时时间必须是正数',
|
||||||
command: '命令',
|
command: '命令',
|
||||||
args: '参数',
|
args: '参数',
|
||||||
env: '环境变量',
|
env: '环境变量',
|
||||||
@@ -299,10 +298,6 @@ const zhHans = {
|
|||||||
addHeader: '添加请求头',
|
addHeader: '添加请求头',
|
||||||
keyName: '键名',
|
keyName: '键名',
|
||||||
value: '值',
|
value: '值',
|
||||||
connected: '已打开',
|
|
||||||
disconnected: '未打开',
|
|
||||||
error: '错误',
|
|
||||||
testConnection: '测试连接',
|
|
||||||
testing: '测试中...',
|
testing: '测试中...',
|
||||||
testSuccess: '连接测试成功',
|
testSuccess: '连接测试成功',
|
||||||
testFailed: '连接测试失败:',
|
testFailed: '连接测试失败:',
|
||||||
@@ -317,50 +312,36 @@ const zhHans = {
|
|||||||
getTaskFailed: '获取任务状态失败',
|
getTaskFailed: '获取任务状态失败',
|
||||||
noTaskId: '未获取到任务ID',
|
noTaskId: '未获取到任务ID',
|
||||||
deleteSuccess: '删除成功',
|
deleteSuccess: '删除成功',
|
||||||
|
deleteFailed: '删除失败:',
|
||||||
deleteError: '删除失败:',
|
deleteError: '删除失败:',
|
||||||
saveSuccess: '保存成功',
|
saveSuccess: '保存成功',
|
||||||
saveError: '保存失败:',
|
saveError: '保存失败:',
|
||||||
createSuccess: '创建成功',
|
createSuccess: '创建成功',
|
||||||
|
createFailed: '创建失败:',
|
||||||
createError: '创建失败:',
|
createError: '创建失败:',
|
||||||
|
loadFailed: '加载失败',
|
||||||
modifyFailed: '修改失败:',
|
modifyFailed: '修改失败:',
|
||||||
toolCount: '工具:{{count}}',
|
toolCount: '工具:{{count}}',
|
||||||
statusConnected: '已打开',
|
statusConnected: '已打开',
|
||||||
statusDisconnected: '未打开',
|
statusDisconnected: '未打开',
|
||||||
statusError: '连接错误',
|
statusError: '连接错误',
|
||||||
statusDisabled: '已禁用',
|
statusDisabled: '已禁用',
|
||||||
serverStatus: '服务器状态',
|
|
||||||
marketplace: 'MCP商店',
|
|
||||||
searchServer: '搜索MCP服务器',
|
|
||||||
sortBy: '排序方式',
|
|
||||||
mostStars: '最多星标',
|
|
||||||
recentlyAdded: '最近添加',
|
|
||||||
recentlyUpdated: '最近更新',
|
|
||||||
loading: '加载中...',
|
loading: '加载中...',
|
||||||
noMatchingServers: '没有匹配的MCP服务器',
|
|
||||||
starCount: '星标:{{count}}',
|
starCount: '星标:{{count}}',
|
||||||
install: '安装',
|
install: '安装',
|
||||||
installing: '安装中...',
|
|
||||||
installSuccess: 'MCP服务器安装成功',
|
|
||||||
installFailed: 'MCP服务器安装失败',
|
|
||||||
installFromGithub: '从Github安装MCP服务器',
|
installFromGithub: '从Github安装MCP服务器',
|
||||||
onlySupportGithub: '目前仅支持从Github安装MCP服务器',
|
|
||||||
enterGithubLink: '输入Github仓库链接',
|
|
||||||
add: '添加',
|
add: '添加',
|
||||||
name: '名称',
|
name: '名称',
|
||||||
nameExplained: '用于区分不同的MCP服务器实例',
|
|
||||||
sseURL: 'SSE URL',
|
|
||||||
sseHeaders: 'SSE Headers',
|
|
||||||
nameRequired: '名称不能为空',
|
nameRequired: '名称不能为空',
|
||||||
sseURLRequired: 'SSE URL不能为空',
|
|
||||||
enterSSELink: '输入SSE URL',
|
|
||||||
timeoutRequired: '超时时间不能为空',
|
|
||||||
headersExample: '示例: Authorization: Bearer token123',
|
|
||||||
enterTimeout: '输入超时时间,单位为毫秒',
|
|
||||||
installFromSSE: '从SSE安装',
|
|
||||||
sseTimeout: 'SSE超时时间',
|
sseTimeout: 'SSE超时时间',
|
||||||
sseTimeoutDescription: '用于建立SSE连接的超时时间',
|
sseTimeoutDescription: '用于建立SSE连接的超时时间',
|
||||||
extraParametersDescription: '额外参数,用于配置MCP服务器的特定行为',
|
extraParametersDescription: '额外参数,用于配置MCP服务器的特定行为',
|
||||||
|
timeoutMustBeNumber: '超时时间必须是数字',
|
||||||
|
timeoutNonNegative: '超时时间不能为负数',
|
||||||
|
sseTimeoutMustBeNumber: 'SSE超时时间必须是数字',
|
||||||
|
sseTimeoutNonNegative: 'SSE超时时间不能为负数',
|
||||||
updateSuccess: '更新成功',
|
updateSuccess: '更新成功',
|
||||||
|
updateFailed: '更新失败:',
|
||||||
},
|
},
|
||||||
pipelines: {
|
pipelines: {
|
||||||
title: '流水线',
|
title: '流水线',
|
||||||
|
|||||||
@@ -270,7 +270,6 @@ const zhHant = {
|
|||||||
},
|
},
|
||||||
mcp: {
|
mcp: {
|
||||||
title: 'MCP管理',
|
title: 'MCP管理',
|
||||||
description: '管理Model Context Protocol (MCP) 伺服器,擴展AI能力',
|
|
||||||
createServer: '建立MCP伺服器',
|
createServer: '建立MCP伺服器',
|
||||||
editServer: '編輯MCP伺服器',
|
editServer: '編輯MCP伺服器',
|
||||||
deleteServer: '刪除MCP伺服器',
|
deleteServer: '刪除MCP伺服器',
|
||||||
@@ -281,11 +280,11 @@ const zhHant = {
|
|||||||
serverMode: '連接模式',
|
serverMode: '連接模式',
|
||||||
stdio: 'Stdio模式',
|
stdio: 'Stdio模式',
|
||||||
sse: 'SSE模式',
|
sse: 'SSE模式',
|
||||||
serverConfig: 'MCP伺服器設定',
|
|
||||||
noServerInstalled: '暫未設定任何MCP伺服器',
|
noServerInstalled: '暫未設定任何MCP伺服器',
|
||||||
serverNameRequired: '伺服器名稱不能為空',
|
serverNameRequired: '伺服器名稱不能為空',
|
||||||
commandRequired: '命令不能為空',
|
commandRequired: '命令不能為空',
|
||||||
urlRequired: 'URL不能為空',
|
urlRequired: 'URL不能為空',
|
||||||
|
timeoutMustBePositive: '逾時時間必須是正數',
|
||||||
command: '命令',
|
command: '命令',
|
||||||
args: '參數',
|
args: '參數',
|
||||||
env: '環境變數',
|
env: '環境變數',
|
||||||
@@ -297,13 +296,10 @@ const zhHant = {
|
|||||||
addHeader: '新增請求標頭',
|
addHeader: '新增請求標頭',
|
||||||
keyName: '鍵名',
|
keyName: '鍵名',
|
||||||
value: '值',
|
value: '值',
|
||||||
connected: '已開啟',
|
|
||||||
disconnected: '未開啟',
|
|
||||||
error: '錯誤',
|
|
||||||
testConnection: '測試連接',
|
|
||||||
testing: '測試中...',
|
testing: '測試中...',
|
||||||
testSuccess: '連接測試成功',
|
testSuccess: '連接測試成功',
|
||||||
testFailed: '連接測試失敗:',
|
testFailed: '連接測試失敗:',
|
||||||
|
testError: '連接測試出錯',
|
||||||
connectionSuccess: '連接成功',
|
connectionSuccess: '連接成功',
|
||||||
connectionFailed: '連接失敗',
|
connectionFailed: '連接失敗',
|
||||||
toolsFound: '個工具',
|
toolsFound: '個工具',
|
||||||
@@ -314,51 +310,36 @@ const zhHant = {
|
|||||||
getTaskFailed: '獲取任務狀態失敗',
|
getTaskFailed: '獲取任務狀態失敗',
|
||||||
noTaskId: '未獲取到任務ID',
|
noTaskId: '未獲取到任務ID',
|
||||||
deleteSuccess: '刪除成功',
|
deleteSuccess: '刪除成功',
|
||||||
|
deleteFailed: '刪除失敗:',
|
||||||
deleteError: '刪除失敗:',
|
deleteError: '刪除失敗:',
|
||||||
saveSuccess: '儲存成功',
|
saveSuccess: '儲存成功',
|
||||||
saveError: '儲存失敗:',
|
saveError: '儲存失敗:',
|
||||||
createSuccess: '建立成功',
|
createSuccess: '建立成功',
|
||||||
|
createFailed: '建立失敗:',
|
||||||
createError: '建立失敗:',
|
createError: '建立失敗:',
|
||||||
|
loadFailed: '載入失敗',
|
||||||
modifyFailed: '修改失敗:',
|
modifyFailed: '修改失敗:',
|
||||||
toolCount: '工具:{{count}}',
|
toolCount: '工具:{{count}}',
|
||||||
statusConnected: '已開啟',
|
statusConnected: '已開啟',
|
||||||
statusDisconnected: '未開啟',
|
statusDisconnected: '未開啟',
|
||||||
statusError: '連接錯誤',
|
statusError: '連接錯誤',
|
||||||
statusDisabled: '已停用',
|
statusDisabled: '已停用',
|
||||||
serverStatus: '伺服器狀態',
|
|
||||||
marketplace: 'MCP商店',
|
|
||||||
searchServer: '搜尋MCP伺服器',
|
|
||||||
sortBy: '排序方式',
|
|
||||||
mostStars: '最多星標',
|
|
||||||
recentlyAdded: '最近新增',
|
|
||||||
recentlyUpdated: '最近更新',
|
|
||||||
loading: '載入中...',
|
loading: '載入中...',
|
||||||
noMatchingServers: '沒有找到符合的MCP伺服器',
|
|
||||||
starCount: '星標:{{count}}',
|
starCount: '星標:{{count}}',
|
||||||
install: '安裝',
|
install: '安裝',
|
||||||
installing: '安裝中...',
|
|
||||||
installSuccess: 'MCP伺服器安裝成功',
|
|
||||||
installFailed: 'MCP伺服器安裝失敗',
|
|
||||||
installFromGithub: '從Github安裝MCP伺服器',
|
installFromGithub: '從Github安裝MCP伺服器',
|
||||||
onlySupportGithub: '目前僅支援從Github安裝MCP伺服器',
|
|
||||||
enterGithubLink: '輸入Github儲存庫連結',
|
|
||||||
add: '新增',
|
add: '新增',
|
||||||
name: '名稱',
|
name: '名稱',
|
||||||
nameExplained: '用於區分不同的MCP伺服器實例',
|
|
||||||
sseURL: 'SSE URL',
|
|
||||||
sseHeaders: 'SSE Headers',
|
|
||||||
nameRequired: '名稱不能為空',
|
nameRequired: '名稱不能為空',
|
||||||
sseURLRequired: 'SSE URL不能為空',
|
|
||||||
enterSSELink: '輸入SSE URL',
|
|
||||||
timeoutRequired: '逾時時間不能為空',
|
|
||||||
headersExample: '範例: Authorization: Bearer token123',
|
|
||||||
enterTimeout: '輸入逾時時間,單位為毫秒',
|
|
||||||
installFromSSE: '從SSE安裝',
|
|
||||||
sseTimeout: 'SSE逾時時間',
|
sseTimeout: 'SSE逾時時間',
|
||||||
sseTimeoutDescription: '用於建立SSE連接的逾時時間',
|
sseTimeoutDescription: '用於建立SSE連接的逾時時間',
|
||||||
extraParametersDescription: '額外參數,用於設定MCP伺服器的特定行為',
|
extraParametersDescription: '額外參數,用於設定MCP伺服器的特定行為',
|
||||||
|
timeoutMustBeNumber: '逾時時間必須是數字',
|
||||||
|
timeoutNonNegative: '逾時時間不能為負數',
|
||||||
|
sseTimeoutMustBeNumber: 'SSE逾時時間必須是數字',
|
||||||
|
sseTimeoutNonNegative: 'SSE逾時時間不能為負數',
|
||||||
updateSuccess: '更新成功',
|
updateSuccess: '更新成功',
|
||||||
testError: '連接測試出錯'
|
updateFailed: '更新失敗:',
|
||||||
},
|
},
|
||||||
pipelines: {
|
pipelines: {
|
||||||
title: '流程線',
|
title: '流程線',
|
||||||
|
|||||||
Reference in New Issue
Block a user