You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix: prevent sync config from destroying externally-managed configs (#204)
* fix: prevent sync config from overwriting externally-managed .mcp.json
When the database has no MCP servers for a project, sync was replacing
the mcpServers key with an empty object, destroying hand-configured
servers. Now skips the overwrite when DB returns no servers.
Fixes#191
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
* fix: prevent sync config from destroying externally-managed configs + import .mcp.json on project add
Fixes#191 (reopened) — Sync Config was still overwriting .mcp.json, claude.json,
opencode.json, and other editor configs with empty settings when a project had no
MCPs in the app's database.
Root cause: The previous fix (3064d5f) only guarded write_project_config() and
write_global_config(), but missed write_project_to_claude_json() and all other
editor config writers (OpenCode, Copilot, Cursor, Gemini, Codex).
Changes:
- Guard all 7 config writers against overwriting with empty MCP data
- Import MCPs from .mcp.json when a project is added (so externally-configured
servers appear in the UI instead of showing an empty project)
- Fix has_mcp_file check (was looking at .claude/.mcp.json, now checks .mcp.json
in project root per the official spec)
- Add missing Tauri commands: open_folder, update_project_editor_type
Co-Authored-By: Claude Opus 4 <noreply@anthropic.com>
---------
Co-authored-by: Tyler Gray <tylerg@emergentsoftware.net>
Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
0 commit comments