diff --git a/frontend/src/i18n/locales/en-US.ts b/frontend/src/i18n/locales/en-US.ts index f0b3b9b0..c8d14db9 100755 --- a/frontend/src/i18n/locales/en-US.ts +++ b/frontend/src/i18n/locales/en-US.ts @@ -4508,8 +4508,6 @@ export default { codeImport: { toggle: 'Import from code', hint: 'Paste a standard mcpServers JSON config to auto-fill the form', - placeholder: - '{\n "mcpServers": {\n "my-server": {\n "url": "https://example.com/sse"\n }\n }\n}', parse: 'Parse & Fill', editOverwriteHint: 'Importing overwrites the current form (saved credentials are unaffected; click Save to apply)', errors: { diff --git a/frontend/src/i18n/locales/ko-KR.ts b/frontend/src/i18n/locales/ko-KR.ts index 709c6694..70739792 100755 --- a/frontend/src/i18n/locales/ko-KR.ts +++ b/frontend/src/i18n/locales/ko-KR.ts @@ -4504,8 +4504,6 @@ export default { codeImport: { toggle: "코드에서 가져오기", hint: "표준 mcpServers JSON 설정을 붙여넣으면 양식이 자동으로 채워집니다", - placeholder: - '{\n "mcpServers": {\n "my-server": {\n "url": "https://example.com/sse"\n }\n }\n}', parse: "파싱 후 채우기", editOverwriteHint: "가져오기는 현재 양식을 덮어씁니다(저장된 자격 증명은 영향받지 않으며, 저장을 눌러야 적용됩니다)", errors: { diff --git a/frontend/src/i18n/locales/ru-RU.ts b/frontend/src/i18n/locales/ru-RU.ts index 88343b66..5b632c56 100755 --- a/frontend/src/i18n/locales/ru-RU.ts +++ b/frontend/src/i18n/locales/ru-RU.ts @@ -4156,8 +4156,6 @@ export default { codeImport: { toggle: 'Импорт из кода', hint: 'Вставьте стандартную JSON-конфигурацию mcpServers для автозаполнения формы', - placeholder: - '{\n "mcpServers": {\n "my-server": {\n "url": "https://example.com/sse"\n }\n }\n}', parse: 'Разобрать и заполнить', editOverwriteHint: 'Импорт перезапишет текущую форму (сохранённые учётные данные не затрагиваются; нажмите «Сохранить», чтобы применить)', errors: { diff --git a/frontend/src/i18n/locales/zh-CN.ts b/frontend/src/i18n/locales/zh-CN.ts index a2b7d10f..f900ef0f 100755 --- a/frontend/src/i18n/locales/zh-CN.ts +++ b/frontend/src/i18n/locales/zh-CN.ts @@ -4521,8 +4521,6 @@ export default { codeImport: { toggle: "从代码导入", hint: "粘贴标准 mcpServers JSON 配置,自动填充表单", - placeholder: - '{\n "mcpServers": {\n "my-server": {\n "url": "https://example.com/sse"\n }\n }\n}', parse: "解析并填充", editOverwriteHint: "导入会覆盖当前表单内容(不影响已保存的凭证,需点保存生效)", errors: { diff --git a/frontend/src/views/settings/components/McpServiceDialog.vue b/frontend/src/views/settings/components/McpServiceDialog.vue index b0d98c82..546961d4 100644 --- a/frontend/src/views/settings/components/McpServiceDialog.vue +++ b/frontend/src/views/settings/components/McpServiceDialog.vue @@ -76,7 +76,7 @@

{{ codeImportError }}

@@ -408,6 +408,13 @@ const emit = defineEmits() const formRef = ref() const submitting = ref(false) const { t } = useI18n() +const codeImportPlaceholder = `{ + "mcpServers": { + "my-server": { + "url": "https://example.com/sse" + } + } +}` const formData = ref({ name: '',