fix: mcp test error

This commit is contained in:
wangcham
2025-10-30 15:01:25 +00:00
parent 4c5139e9ff
commit f2647316a5
5 changed files with 5 additions and 1 deletions

View File

@@ -608,7 +608,7 @@ export default function PluginConfigPage() {
toast.success(t('models.testSuccess')); toast.success(t('models.testSuccess'));
}) })
.catch(() => { .catch(() => {
toast.error(t('models.testError')); toast.error(t('mcp.testError'));
}) })
.finally(() => { .finally(() => {
setMcpTesting(false); setMcpTesting(false);

View File

@@ -366,6 +366,7 @@ const enUS = {
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',
updateSuccess: 'Updated successfully', updateSuccess: 'Updated successfully',
testError: 'Connection test error',
}, },
pipelines: { pipelines: {
title: 'Pipelines', title: 'Pipelines',

View File

@@ -368,6 +368,7 @@ const jaJP = {
sseTimeoutDescription: 'SSE接続を確立するためのタイムアウト', sseTimeoutDescription: 'SSE接続を確立するためのタイムアウト',
extraParametersDescription: 'MCPサーバーの特定の動作を設定するための追加パラメータ', extraParametersDescription: 'MCPサーバーの特定の動作を設定するための追加パラメータ',
updateSuccess: '更新に成功しました', updateSuccess: '更新に成功しました',
testError: '接続テスト出錯',
}, },
pipelines: { pipelines: {
title: 'パイプライン', title: 'パイプライン',

View File

@@ -306,6 +306,7 @@ const zhHans = {
testing: '测试中...', testing: '测试中...',
testSuccess: '连接测试成功', testSuccess: '连接测试成功',
testFailed: '连接测试失败:', testFailed: '连接测试失败:',
testError: '连接测试出错',
connectionSuccess: '连接成功', connectionSuccess: '连接成功',
connectionFailed: '连接失败', connectionFailed: '连接失败',
toolsFound: '个工具', toolsFound: '个工具',

View File

@@ -352,6 +352,7 @@ const zhHant = {
sseTimeoutDescription: '用於建立SSE連接的逾時時間', sseTimeoutDescription: '用於建立SSE連接的逾時時間',
extraParametersDescription: '額外參數用於設定MCP伺服器的特定行為', extraParametersDescription: '額外參數用於設定MCP伺服器的特定行為',
updateSuccess: '更新成功', updateSuccess: '更新成功',
testError: '連接測試出錯'
}, },
pipelines: { pipelines: {
title: '流程線', title: '流程線',