Skip to content

[Bug]: Sync Config destroys .mcp.json #191

Description

@slazarov

Describe the bug

App does not load .mcp.json. Sync Config destroys .mcp.json. Leaves only:

{
"mcpServers": {}
}

Steps to reproduce

  1. Open a project.
  2. .mcp.json is not loaded
  3. Click Sync Config
  4. Empties the existing .mcp.json

Expected behavior

Loads the project's .mcp.json

Screenshots

No response

Operating System

macOS (Apple Silicon)

App Version

3.8.0

Debug logs

[2026-04-11 13:12:03.529] [INFO] [debug] App version: 3.8.0
[2026-04-11 13:12:03.529] [INFO] [debug] Platform: macos
[2026-04-11 13:12:03.529] [INFO] [debug] Debug mode restored from persisted state
[2026-04-11 13:12:04.016] [INFO] [frontend] [Debug] App started with debug mode enabled
[2026-04-11 13:12:04.055] [INFO] [frontend] [spinnerVerbLibrary] Loading spinner verbs...
[2026-04-11 13:12:04.057] [INFO] [frontend] [spinnerVerbLibrary] Loaded 0 verbs, mode=append
[2026-04-11 13:12:05.260] [INFO] [frontend] [sessionStore] Loaded 11 projects
[2026-04-11 13:12:12.644] [INFO] [frontend] [claudeSettingsLibrary] Loading settings...
[2026-04-11 13:12:12.645] [INFO] [frontend] [claudeSettingsLibrary] Loaded settings
[2026-04-11 13:12:12.668] [INFO] [frontend] [hookLibrary] Getting hooks for project id=16
[2026-04-11 13:12:32.738] [INFO] [frontend] [projectsStore] Syncing config for project id=16
[2026-04-11 13:12:32.747] [INFO] [frontend] [projectsStore] Synced config for project id=16
[2026-04-11 13:12:46.881] [INFO] [frontend] [projectsStore] Loading projects...
[2026-04-11 13:12:46.886] [INFO] [frontend] [projectsStore] Loaded 29 projects
[2026-04-11 13:12:46.886] [INFO] [frontend] [claudeSettingsLibrary] Loading settings...
[2026-04-11 13:12:46.889] [INFO] [frontend] [claudeSettingsLibrary] Loaded settings

Additional context

No response

Checklist

  • I have searched existing issues to ensure this bug hasn't been reported
  • I am using the latest version of the app
  • I have attached debug logs (Settings > Global Settings > Debug Mode)

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions