feat: add edit and refresh functionality for MCP servers in settings tab (#680)

* feat: add edit and refresh functionality for MCP servers in settings tab

* feat: fix lint error and enhance MCP server dialog with validation and error handling

* fix: add missing newline at the end of en.json file

* feat: only refreshing specific servers

* feat: add validation messages for MCP server configuration and improve server update logic
This commit is contained in:
Qiyuan Jiao
2025-11-06 10:38:45 +08:00
committed by GitHub
parent fea585ae3d
commit a38c8584d7
4 changed files with 351 additions and 12 deletions

View File

@@ -52,8 +52,15 @@
"learnMore": "learn more about MCP.",
"enableDisable": "Enable/disable server",
"deleteServer": "Delete server",
"editServer": "Edit server",
"refreshServer": "Refresh server",
"editServerDescription": "Edit the MCP server configuration",
"editServerNote": "Update the server configuration in JSON format",
"disabled": "Disabled",
"new": "New"
"new": "New",
"invalidJson": "Invalid JSON format",
"validationFailed": "Validation failed",
"missingServerName": "Missing server name"
},
"about": {
"title": "About"
@@ -81,9 +88,9 @@
},
"chat": {
"page": {
"loading": "Loading DeerFlow...",
"welcomeUser": "Welcome, {username}",
"starOnGitHub": "Star DeerFlow on GitHub"
"loading": "Loading DeerFlow...",
"welcomeUser": "Welcome, {username}",
"starOnGitHub": "Star DeerFlow on GitHub"
},
"welcome": {
"greeting": "👋 Hello, there!",
@@ -231,4 +238,4 @@
"contributeNow": "Contribute Now"
}
}
}
}

View File

@@ -52,8 +52,15 @@
"learnMore": "了解更多关于 MCP 的信息。",
"enableDisable": "启用/禁用服务器",
"deleteServer": "删除服务器",
"editServer": "编辑服务器",
"refreshServer": "刷新服务器",
"editServerDescription": "编辑 MCP 服务器配置",
"editServerNote": "以 JSON 格式更新服务器配置",
"disabled": "已禁用",
"new": "新增"
"new": "新增",
"invalidJson": "无效的 JSON 格式",
"validationFailed": "验证失败",
"missingServerName": "缺少服务器名称"
},
"about": {
"title": "关于"