[BUG]claude.json silently overwritten when file contains block comments (/* */)..LOST my COMPLETE MCP SERVES
Status Closed — not planned
Reported on v2.1.142
Maintainer reply None cached
Activity 2 comments · opened Jun 18, 2026 · closed Aug 11, 2026
Preflight Checklist
- [x] I have searched existing issues and this hasn't been reported yet
- [x] This is a single bug report (please file separate reports for different bugs)
- [x] I am using the latest version of Claude Code
What's Wrong?
Config silently wiped. No error shown. All MCP servers lost permanently.
What Should Happen?
Config silently wiped. No error shown. All MCP servers lost permanently.
Error Messages/Logs
Steps to Reproduce
Have a working ~/.claude.json with MCP server config
Add / comment / block anywhere in the file
Save the file
Restart Claude Code
Claude Model
Sonnet (default)
Is this a regression?
I don't know
Last Working Version
_No response_
Claude Code Version
2.1.142 (Claude Code)
Platform
Anthropic API
Operating System
macOS
Terminal/Shell
Terminal.app (macOS)
Additional Information
_No response_
This issue has 2 comments on GitHub. Read the full discussion on GitHub ↗