Cleaning Up Duplicate Servers
If you upgraded to v0.1.3 and see duplicate servers (same name but different IDs), you can use the automated cleanup tools on the Debug page.
Automated Cleanup (v0.1.5+)
Recommended: Use the automated cleanup tools on the Debug page (/debug):
- Go to the Debug page (
/debug) - Click "๐ Scan for Duplicates" to identify duplicate servers
- Click "๐๏ธ Remove Duplicates" to automatically remove them
- Click "๐ Sync Records" to ensure installation records are correct
- Click "๐งน Clean Orphans" to remove any orphaned records
- Verify on your agent page that servers show correctly
See Debug Cleanup Tools for detailed documentation on the automated tools.
Manual Cleanup (if needed)
If you prefer to manually clean up duplicates, follow these steps:
Why Duplicates Exist
Before v0.1.3, when the app auto-discovered servers from your config files:
- It found your config entry (e.g.,
github) - Searched registries and found a match (with ID like
mcp_12js8Hu2bw) - Installed it with the registry's ID
- Created installation tracking with the config ID
After v0.1.3, it now:
- Uses the config file's ID for consistency
- This created a second server with ID
github - Result: Two servers with the same name but different IDs
How to Identify Duplicates
- Go to the Debug page (
/debug) - Look at "All Installed Servers"
- Find servers with the same name but different IDs:
Github (mcp_12js8Hu2bw) โ Old one Github (github) โ New one
How to Remove Duplicates
Step 1: Identify Which to Keep
Check the "Installation Records" section on the Debug page:
- If it shows:
github โ claudecode- Keep the one with IDgithub - If it shows:
mcp_12js8Hu2bw โ claudecode- Keep the one with IDmcp_12js8Hu2bw
Rule: Keep the server whose ID matches the installation record.
Step 2: Remove the Duplicate
- Go to "Installed Servers" page
- Find the duplicate server (the one NOT in the installation records)
- Click the trash icon ๐๏ธ to uninstall it
- Confirm the removal
Step 3: Verify
- Go back to the Debug page
- Check "All Installed Servers" - Should only show one now
- Navigate to your agent page (e.g.,
/agents/claudecode) - Verify the server shows correctly - Should be "โ Enabled"
Example Cleanup
Debug page shows:
All Installed Servers:
- Github (mcp_12js8Hu2bw)
- Github (github)
Installation Records:
- github โ claudecode
Action:
- Remove:
Github (mcp_12js8Hu2bw)โ This one is NOT in installation records - Keep:
Github (github)โ This one IS in installation records
After cleanup:
All Installed Servers:
- Github (github)
Installation Records:
- github โ claudecode
Alternative: Remove Both and Let It Reinstall
If you're unsure which to keep:
- Go to "Installed Servers"
- Remove BOTH duplicates
- Restart the app
- Wait 5 seconds for the background worker
- The app will automatically reinstall from your config with the correct ID
Prevention
After v0.1.3, duplicates won't be created anymore because:
- The background worker checks for existing servers by name before installing
- The UI sync uses existing servers instead of creating new ones
- Only one server per name will be created going forward
Still Have Issues?
If you still see duplicates or problems after cleanup:
- Check the Debug page for sync errors
- Check console logs for error messages
- Restart the app and try again
- Report the issue with:
- Debug page screenshot
- Console logs
- Your config file (sanitize sensitive data)