[BUG] After modifying the mcpServer in the configuration and restarting the claude code, there are hundreds of configuration files, and the dead loop

Resolved 💬 3 comments Opened Aug 18, 2025 by fxzer Closed Jan 6, 2026

Environment

  • Platform (select one):
  • [ ] Anthropic API
  • [ ] AWS Bedrock
  • [ ] Google Vertex AI
  • [ ] Other: <!-- specify -->
  • Claude CLI version: <!-- output of claude --version -->
  • Operating System: <!-- e.g. macOS 14.3, Windows 11, Ubuntu 22.04 -->
  • Terminal: <!-- e.g. iTerm2, Terminal App -->

Bug Description

修改完配置里的 mcpServer 重启 claude code 后,配置文件多了上百个,死循环
After modifying the mcpServer in the configuration and restarting the claude code, there are hundreds of configuration files, and the dead loop
<!-- A clear and concise description of the bug -->

<img width="846" height="841" alt="Image" src="https://github.com/user-attachments/assets/d70e9448-eff6-4d01-8551-90603dfb1f86" />

Steps to Reproduce

  1. <!-- First step -->
  2. <!-- Second step -->
  3. <!-- And so on... -->

Expected Behavior

<!-- What you expected to happen -->

Actual Behavior

<!-- What actually happened -->

Additional Context

<!-- Add any other context about the problem here, such as screenshots, logs, etc. -->

View original on GitHub ↗

This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗