feat: enhance MCP server management and system settings

- Added functionality to save MCP server configurations as templates in the MCP Manager.
- Implemented new hooks for managing system settings including Chinese response, Windows platform, and Codex CLI enhancements.
- Updated API calls to support fetching and toggling system settings.
- Introduced UI components for displaying and managing response language settings and system status.
- Enhanced error handling and notifications for server deletion and template saving actions.
- Updated localization files for new settings and descriptions in English and Chinese.
This commit is contained in:
catlog22
2026-02-07 21:17:18 +08:00
parent d29527ae16
commit 2094c1085b
52 changed files with 2061 additions and 602 deletions

View File

@@ -6,6 +6,8 @@
"cliTools": "CLI 工具",
"display": "显示设置",
"language": "语言",
"responseLanguage": "回复语言设置",
"systemStatus": "系统状态",
"hooks": "Git 钩子",
"rules": "规则",
"about": "关于"
@@ -48,6 +50,35 @@
"displayLanguage": "显示语言",
"chooseLanguage": "选择界面的首选语言"
},
"responseLanguage": {
"title": "回复语言设置",
"chineseClaude": "中文回复",
"chineseClaudeDesc": "在 ~/.claude/CLAUDE.md 中启用中文回复准则",
"chineseCodex": "中文回复",
"chineseCodexDesc": "在 ~/.codex/AGENTS.md 中启用中文回复准则",
"windowsPlatform": "Windows 平台规范",
"windowsPlatformDesc": "在全局 CLAUDE.md 中启用 Windows 路径格式规范",
"cliEnhancement": "CLI 调用增强",
"cliEnhancementDesc": "为 Codex 启用多 CLI 工具调用功能",
"cliEnhancementHint": "配置文件变更后,点击刷新按钮更新内容",
"refreshConfig": "刷新配置",
"migrationWarning": "检测到旧格式,请关闭后重新启用以迁移",
"enabled": "已启用",
"disabled": "已禁用"
},
"systemStatus": {
"title": "系统状态",
"ccwInstall": "CCW 安装状态",
"installed": "已安装",
"incomplete": "不完整",
"notInstalled": "未安装",
"missingFiles": "缺失文件",
"runToFix": "运行以下命令修复",
"toolStatus": "工具可用性",
"available": "可用",
"unavailable": "不可用",
"checking": "检测中..."
},
"dataRefresh": {
"title": "数据刷新",
"autoRefresh": "自动刷新",

View File

@@ -65,5 +65,45 @@
"emptyState": {
"title": "未找到技能",
"message": "没有符合当前筛选条件的技能。"
},
"create": {
"title": "创建技能",
"location": "存储位置",
"locationProject": "项目技能",
"locationProjectHint": ".claude/skills/",
"locationUser": "全局技能",
"locationUserHint": "~/.claude/skills/",
"mode": "创建方式",
"modeImport": "导入文件夹",
"modeImportHint": "从现有文件夹导入技能",
"modeGenerate": "AI 生成",
"modeGenerateHint": "使用 AI 生成技能",
"sourcePath": "源文件夹路径",
"sourcePathPlaceholder": "输入技能文件夹的绝对路径",
"sourcePathHint": "文件夹中需要包含 SKILL.md 文件",
"customName": "自定义名称",
"customNamePlaceholder": "留空则使用原始名称",
"customNameHint": "可选,用于覆盖默认技能名称",
"skillName": "技能名称",
"skillNamePlaceholder": "输入技能名称",
"skillNameHint": "用作技能文件夹名称",
"descriptionLabel": "技能描述",
"descriptionPlaceholder": "描述这个技能应该做什么...",
"descriptionHint": "AI 将根据描述生成技能内容",
"generateInfo": "AI 将使用 CLI 工具生成技能",
"generateTimeHint": "生成过程可能需要一些时间",
"validate": "验证",
"import": "导入",
"generate": "生成",
"validating": "验证中...",
"validSkill": "验证通过",
"invalidSkill": "验证失败",
"creating": "创建中...",
"created": "技能 \"{name}\" 创建成功",
"createError": "创建技能失败",
"sourcePathRequired": "请输入源文件夹路径",
"skillNameRequired": "请输入技能名称",
"descriptionRequired": "请输入技能描述",
"validateFirst": "请先验证技能文件夹"
}
}