Skip to main content

remove_claude_mcp_config

Function remove_claude_mcp_config 

Source
pub fn remove_claude_mcp_config() -> Result<Option<(PathBuf, bool)>>
Expand description

Remove sqz’s mcpServers.sqz entry from ~/.claude.json if we installed it (detected by the _sqz_managed sentinel). Leaves user-customised entries alone.

Returns Ok(Some((path, true))) when the entry was removed, Ok(Some((path, false))) when present but not managed by sqz, Ok(None) when the file doesn’t exist, Err(_) on read/write failure.