Agent Switch does not take over the ccswitch:// URL scheme. Provider, prompt, and skill links are previewed and then forwarded to CC Switch.
MCP links are different: Agent Switch can normalize an MCP deep link into agent-* tool definitions so CC Switch and native app configs only see wrapper-backed commands.
The CC Switch database is treated as an external mirror. Agent Switch writes only rows whose id starts with agent-.
Before writing, Agent Switch checks that mcp_servers has the expected columns:
idnameserver_configdescriptionhomepagedocstagsenabled_claudeenabled_codexenabled_geminienabled_opencodeenabled_hermes
If the schema does not match, database writes are blocked and reported by doctor.
Agent Switch writes only agent-owned MCP entries into:
- Claude Code JSON MCP config;
- Claude Desktop JSON MCP config;
- Codex TOML
mcp_serversentries; - Hermes YAML
mcp_serversentries.
Provider fields, CC Switch deployment mode, and unrelated MCP entries are preserved.