feat(mcp): add enabled count to panel info section

- Add enabledCount calculation using useMemo for performance
- Display format: "X MCP server(s) configured · Y enabled"
- Add i18n keys: mcp.enabledCount for zh and en
- Real-time updates when toggling server enabled status
This commit is contained in:
Jason
2025-10-12 12:16:15 +08:00
parent 664efc7456
commit 3bd70b9508
3 changed files with 8 additions and 1 deletions

View File

@@ -275,6 +275,7 @@
"editCodexServer": "Edit Codex MCP",
"configPath": "Config Path",
"serverCount": "{{count}} MCP server(s) configured",
"enabledCount": "{{count}} enabled",
"template": {
"fetch": "Quick Template: mcp-fetch"
},

View File

@@ -275,6 +275,7 @@
"editCodexServer": "编辑 Codex MCP",
"configPath": "配置路径",
"serverCount": "已配置 {{count}} 个 MCP 服务器",
"enabledCount": "已启用 {{count}} 个",
"template": {
"fetch": "快速模板mcp-fetch"
},