Jason
c985db8f3d
feat(mcp): implement unified MCP management for v3.7.0
BREAKING CHANGE: Migrate from app-specific MCP storage to unified structure
## Phase 1: Data Structure Migration
- Add McpApps struct with claude/codex/gemini boolean fields
- Add McpServer struct for unified server definition
- Add migration logic in MultiAppConfig::migrate_mcp_to_unified()
- Integrate automatic migration into MultiAppConfig::load()
- Support backward compatibility through Optional fields
## Phase 2: Backend Services Refactor
- Completely rewrite services/mcp.rs for unified management:
* get_all_servers() - retrieve all MCP servers
* upsert_server() - add/update unified server
* delete_server() - remove server
* toggle_app() - enable/disable server for specific app
* sync_all_enabled() - sync to all live configs
- Add single-server sync functions to mcp.rs:
* sync_single_server_to_claude/codex/gemini()
* remove_server_from_claude/codex/gemini()
- Add read_mcp_servers_map() to claude_mcp.rs and gemini_mcp.rs
- Add new Tauri commands to commands/mcp.rs:
* get_mcp_servers, upsert_mcp_server, delete_mcp_server
* toggle_mcp_app, sync_all_mcp_servers
- Register new commands in lib.rs
## Migration Strategy
- Detects old structure (mcp.claude/codex/gemini.servers)
- Merges into unified mcp.servers with apps markers
- Handles conflicts by merging enabled apps
- Clears old structures after migration
- Saves migrated config automatically
## Known Issues
- Old commands still need compatibility layer (WIP)
- toml_edit type conversion needs fixing (WIP)
- Frontend not yet implemented (Phase 3 pending)
Related: v3.6.2 -> v3.7.0
2025-11-14 12:51:24 +08:00
..
2025-09-26 20:18:11 +08:00
2025-09-14 21:55:41 +08:00
2025-11-14 12:51:24 +08:00
2025-11-12 23:38:43 +08:00
2025-09-23 20:55:30 +08:00
2025-08-23 19:59:29 +08:00
2025-08-27 11:00:53 +08:00
2025-11-13 15:15:58 +08:00
2025-11-13 15:15:58 +08:00
2025-11-11 23:57:21 +08:00