diff --git a/frontend/src/i18n/locales/en-US.ts b/frontend/src/i18n/locales/en-US.ts
index 60dc07c7..7c9ff319 100755
--- a/frontend/src/i18n/locales/en-US.ts
+++ b/frontend/src/i18n/locales/en-US.ts
@@ -6719,8 +6719,10 @@ export default {
rateLimitLabel: 'Max calls per minute',
rateLimitHint: 'Applies to all tool calls on this endpoint; clients get a rate-limit error above it.',
sectionConnect: 'Connection',
+ stepConfig: 'Configure',
+ stepConnect: 'Connect',
+ snippetsLabel: 'Client configuration',
connectHintExisting: 'The token was shown once at creation (current token starts with {hint}…). Rotate the token to get a new one.',
- showSnippets: 'Show client configuration',
tokenDialogTitle: 'Endpoint ready, save the token',
connectDialogTitle: 'Connect to this endpoint',
tokenOnce: 'This token is shown only once. Copy it now and store it somewhere safe.',
diff --git a/frontend/src/i18n/locales/ja-JP.ts b/frontend/src/i18n/locales/ja-JP.ts
index 21a8c69a..dfb15ad3 100644
--- a/frontend/src/i18n/locales/ja-JP.ts
+++ b/frontend/src/i18n/locales/ja-JP.ts
@@ -6719,8 +6719,10 @@ export default {
rateLimitLabel: '1 分あたりの最大呼び出し数',
rateLimitHint: 'このエンドポイントのすべてのツール呼び出しに適用されます。',
sectionConnect: '接続情報',
+ stepConfig: '設定',
+ stepConnect: '接続',
+ snippetsLabel: 'クライアント設定',
connectHintExisting: 'トークンは作成時に一度だけ表示されました(現在のトークンは {hint}… で始まります)。再取得するにはローテーションしてください。',
- showSnippets: 'クライアント設定例を表示',
tokenDialogTitle: 'エンドポイントの準備完了。トークンを保存してください',
connectDialogTitle: 'このエンドポイントに接続',
tokenOnce: 'このトークンは一度しか表示されません。今すぐコピーして安全に保管してください。',
diff --git a/frontend/src/i18n/locales/ko-KR.ts b/frontend/src/i18n/locales/ko-KR.ts
index 69f163f2..4658d752 100755
--- a/frontend/src/i18n/locales/ko-KR.ts
+++ b/frontend/src/i18n/locales/ko-KR.ts
@@ -747,8 +747,10 @@ export default {
rateLimitLabel: '분당 최대 호출 수',
rateLimitHint: '이 엔드포인트의 모든 도구 호출에 적용되며, 초과 시 클라이언트는 제한 오류를 받습니다.',
sectionConnect: '연결 정보',
+ stepConfig: '설정',
+ stepConnect: '연결',
+ snippetsLabel: '클라이언트 설정',
connectHintExisting: '토큰은 생성 시 한 번만 표시되었습니다(현재 토큰은 {hint}…로 시작). 새 토큰이 필요하면 교체하세요.',
- showSnippets: '클라이언트 설정 예시 보기',
tokenDialogTitle: '엔드포인트 준비 완료, 토큰을 저장하세요',
connectDialogTitle: '이 엔드포인트에 연결',
tokenOnce: '이 토큰은 한 번만 표시됩니다. 지금 복사하여 안전하게 보관하세요.',
diff --git a/frontend/src/i18n/locales/ru-RU.ts b/frontend/src/i18n/locales/ru-RU.ts
index 6de9098c..07724a9e 100755
--- a/frontend/src/i18n/locales/ru-RU.ts
+++ b/frontend/src/i18n/locales/ru-RU.ts
@@ -747,8 +747,10 @@ export default {
rateLimitLabel: 'Максимум вызовов в минуту',
rateLimitHint: 'Применяется ко всем вызовам инструментов этой конечной точки; при превышении клиент получает ошибку.',
sectionConnect: 'Подключение',
+ stepConfig: 'Настройка',
+ stepConnect: 'Подключение',
+ snippetsLabel: 'Конфигурация клиента',
connectHintExisting: 'Токен показывался один раз при создании (текущий начинается с {hint}…). Чтобы получить новый, выполните ротацию.',
- showSnippets: 'Показать примеры конфигурации клиента',
tokenDialogTitle: 'Конечная точка готова, сохраните токен',
connectDialogTitle: 'Подключение к конечной точке',
tokenOnce: 'Токен показывается только один раз. Скопируйте его сейчас и сохраните в надёжном месте.',
diff --git a/frontend/src/i18n/locales/zh-CN.ts b/frontend/src/i18n/locales/zh-CN.ts
index 767a1802..72ac4b3f 100755
--- a/frontend/src/i18n/locales/zh-CN.ts
+++ b/frontend/src/i18n/locales/zh-CN.ts
@@ -747,8 +747,10 @@ export default {
rateLimitLabel: '每分钟最多调用次数',
rateLimitHint: '对该端点所有工具调用的总限制,超出后客户端会收到限流提示。',
sectionConnect: '连接信息',
+ stepConfig: '配置',
+ stepConnect: '连接',
+ snippetsLabel: '客户端配置',
connectHintExisting: '令牌只在创建时展示(当前令牌前缀 {hint}…)。如需重新获取,请轮换令牌。',
- showSnippets: '查看客户端配置示例',
tokenDialogTitle: '端点已就绪,请保存令牌',
connectDialogTitle: '连接此端点',
tokenOnce: '令牌只展示这一次,关闭后无法再次查看。请立即复制并妥善保存。',
diff --git a/frontend/src/views/integrations/McpServerIntegrationSettings.vue b/frontend/src/views/integrations/McpServerIntegrationSettings.vue
index 800fc2a9..1d5872fc 100644
--- a/frontend/src/views/integrations/McpServerIntegrationSettings.vue
+++ b/frontend/src/views/integrations/McpServerIntegrationSettings.vue
@@ -80,159 +80,175 @@
v-model:visible="showDrawer"
class="mcp-endpoint-drawer"
:title="editing ? $t('integrations.mcpserver.editTitle') : $t('integrations.mcpserver.createTitle')"
- :description="$t('integrations.mcpserver.drawerDesc')"
+ :description="drawerStepDescription"
icon="tools"
storage-key="setting-drawer:mcp-endpoint"
width="600px"
:confirm-loading="saving"
- :confirm-text="editing ? $t('common.save') : $t('integrations.mcpserver.create')"
+ :confirm-text="drawerConfirmText"
:hide-footer="!isAdmin"
- @confirm="saveForm"
+ :close-on-overlay-click="!freshToken"
+ @confirm="handleDrawerConfirm"
@cancel="closeDrawer"
>
- {{ $t('integrations.mcpserver.kbScopeHint') }}{{ $t('integrations.mcpserver.sectionBasic') }}
- {{ $t('integrations.mcpserver.sectionScope') }}
-
{{ $t('integrations.mcpserver.toolsHint') }}
-{{ tool.name }}
-
- {{ $t(`integrations.mcpserver.tools.${tool.name}Desc`) }}
+ +{{ $t('integrations.mcpserver.kbScopeHint') }}
+{{ $t('integrations.mcpserver.toolsHint') }}
+{{ tool.name }}
+
+ {{ $t(`integrations.mcpserver.tools.${tool.name}Desc`) }}
+{{ $t('integrations.mcpserver.toolsRequired') }}
- +{{ $t('integrations.mcpserver.toolsRequired') }}
+ -{{ $t('integrations.mcpserver.defaultAgentHint') }}
-{{ $t('integrations.mcpserver.rateLimitHint') }}
-{{ $t('integrations.mcpserver.connectHintExisting', { hint: editing.token_hint }) }}
- -{{ $t('integrations.mcpserver.connectPlaceholderHint') }}
- -{{ $t(`integrations.mcpserver.snippet.${snippet.key}Desc`) }}
- -+ {{ $t('integrations.mcpserver.connectHintExisting', { hint: editing.token_hint }) }} +
+ +{{ $t('integrations.mcpserver.connectPlaceholderHint') }}
+{{ $t(`integrations.mcpserver.snippet.${snippet.key}Desc`) }}
+ +