Skip to main content

claude_user_json_path

Function claude_user_json_path 

Source
pub fn claude_user_json_path() -> Option<PathBuf>
Expand description

Compute the path of the user-level ~/.claude.json config.

This is where Claude Code stores its mcpServers map. Registering sqz-mcp here makes it available to every Claude Code session on this machine. Matches what @JCKodel had to configure manually in issue #12 — sqz init should do this for them.

Returns None if the home directory cannot be resolved (very unusual — typically only in sandboxes or broken environments).