[BUG] macOs - Claude consumes massive diskspace (472GB) in ~/.claude/debug and ~/Library/Caches/claude-cli-nodejs/<project>/--mcp-logs-*
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?
My Apple M1 Max with a 1TB drive failed to update macOs last night due to low diskspace, which surprised me. I used DaisyDisk to dig into the issue and discovered folders taking up 472GB, both related to Claude CLI. ~/.claude/debug and ~/Library/Caches/claude-cli-nodejs/<project>/--mcp-logs-*
These are my configured MCPs
> claude mcp list
Checking MCP server health...
projectsFilesystem: npx -y @modelcontextprotocol/server-filesystem /Users/scott/projects - ✓ Connected
fetch-mcp: node /Users/scott/Documents/Cline/MCP/fetch-mcp/dist/index.js - ✗ Failed to connect
mcp-supermemory-ai: npx -y mcp-remote@latest https://mcp.supermemory.ai/EVUo7xW9DwG1xi7i5fvjM/sse - ✗ Failed to connect
brave-search: npx -y @modelcontextprotocol/server-brave-search - ✓ Connected
fudger-codebase: /Users/scott/projects/fudger-mcp/mcp-server /Users/scott/projects/fudger - ✓ Connected
fudger-svc-codebase: /Users/scott/projects/fudger-mcp/mcp-server /Users/scott/projects/fudger-svc - ✓ Connected
I don't use the --debug or --mcp-debug flags with Claude CLI.
I generally use it via JetBrains Claude CLI plugin and start up with the defaults.
I'm trying to consider the time-frame of the log accumulation, I think its been mostly over the past 4 or 5 months that I've heavily used Claude CLI as a regular tool in my dev toolbox.
This is a massive amount if disk space accumulation.
After investigation, today I added "cleanupPeriodDays": 4 to my ~/.claude/settings.json file
What Should Happen?
Claude should either clean up or otherwise better manage and surface debug and log storage accumulation
Error Messages/Logs
Your Disk Has < 5GB space remaining, unable to install OS updates
Steps to Reproduce
Use Claude Code via JetBrains on a regular, daily basis
Claude Model
Opus
Is this a regression?
I don't know
Last Working Version
_No response_
Claude Code Version
2.1.12 (Claude Code)
Platform
Anthropic API
Operating System
macOS
Terminal/Shell
iTerm2
Additional Information
_No response_
This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗