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 Tools",
"display": "Display Settings",
"language": "Language",
"responseLanguage": "Response Language",
"systemStatus": "System Status",
"hooks": "Git Hooks",
"rules": "Rules",
"about": "About"
@@ -48,6 +50,35 @@
"displayLanguage": "Display Language",
"chooseLanguage": "Choose your preferred language for the interface"
},
"responseLanguage": {
"title": "Response Language Settings",
"chineseClaude": "Chinese Response",
"chineseClaudeDesc": "Enable Chinese response guidelines in ~/.claude/CLAUDE.md",
"chineseCodex": "Chinese Response",
"chineseCodexDesc": "Enable Chinese response guidelines in ~/.codex/AGENTS.md",
"windowsPlatform": "Windows Platform",
"windowsPlatformDesc": "Enable Windows path format conventions in global CLAUDE.md",
"cliEnhancement": "CLI Enhancement",
"cliEnhancementDesc": "Enable multi-CLI tool invocation for Codex",
"cliEnhancementHint": "After config changes, click refresh to update content",
"refreshConfig": "Refresh Config",
"migrationWarning": "Old format detected, please disable and re-enable to migrate",
"enabled": "Enabled",
"disabled": "Disabled"
},
"systemStatus": {
"title": "System Status",
"ccwInstall": "CCW Installation",
"installed": "Installed",
"incomplete": "Incomplete",
"notInstalled": "Not Installed",
"missingFiles": "Missing Files",
"runToFix": "Run to fix",
"toolStatus": "Tool Availability",
"available": "Available",
"unavailable": "Unavailable",
"checking": "Checking..."
},
"dataRefresh": {
"title": "Data Refresh",
"autoRefresh": "Auto Refresh",

View File

@@ -65,5 +65,45 @@
"emptyState": {
"title": "No Skills Found",
"message": "No skills match your current filter."
},
"create": {
"title": "Create Skill",
"location": "Location",
"locationProject": "Project Skills",
"locationProjectHint": ".claude/skills/",
"locationUser": "Global Skills",
"locationUserHint": "~/.claude/skills/",
"mode": "Creation Mode",
"modeImport": "Import Folder",
"modeImportHint": "Import skill from existing folder",
"modeGenerate": "AI Generate",
"modeGenerateHint": "Generate skill using AI",
"sourcePath": "Source Folder Path",
"sourcePathPlaceholder": "Enter absolute path to skill folder",
"sourcePathHint": "Folder must contain a SKILL.md file",
"customName": "Custom Name",
"customNamePlaceholder": "Leave empty to use original name",
"customNameHint": "Optional, overrides default skill name",
"skillName": "Skill Name",
"skillNamePlaceholder": "Enter skill name",
"skillNameHint": "Used as the skill folder name",
"descriptionLabel": "Skill Description",
"descriptionPlaceholder": "Describe what this skill should do...",
"descriptionHint": "AI will generate skill content based on this description",
"generateInfo": "AI will use CLI tools to generate the skill",
"generateTimeHint": "Generation may take some time",
"validate": "Validate",
"import": "Import",
"generate": "Generate",
"validating": "Validating...",
"validSkill": "Validation passed",
"invalidSkill": "Validation failed",
"creating": "Creating...",
"created": "Skill \"{name}\" created successfully",
"createError": "Failed to create skill",
"sourcePathRequired": "Please enter source folder path",
"skillNameRequired": "Please enter skill name",
"descriptionRequired": "Please enter skill description",
"validateFirst": "Please validate the skill folder first"
}
}