- Symptom
- The MCP keeps using the old credentials after the file is fixedAn edit to ~/.claude.json is gone after Claude Code exits
- Cause
- MCP servers read their env when they start, so a running session keeps the old values. Editing ~/.claude.json while Claude Code is running can be overwritten when it exits.
- Fix
- Edit the file with Claude Code closed, or restart afterwards and confirm the change survived.
- Apply
Quit Claude Code, edit ~/.claude.json, start a new session, then check the value again.- Affected
- Claude Code, August 2026
Last verified 2026-08-03 · Confirmed by 0 builders