Skip to content

MCP server logs (stderr/stdout) are not rotated - can fill disk space #7723

@piotrlo

Description

@piotrlo

Pre-submit Checks

Describe the bug

Warp captures MCP server stderr/stdout to ~/Library/Group Containers/.../dev.warp.Warp-Stable/mcp/*.log but does NOT rotate these logs, unlike Warp's own logs in ~/Library/Logs/warp.log* which are properly rotated.

Result: Verbose MCP servers can fill disk space. In my case: 20GB in 5 days from iMCP heartbeat logging.

To reproduce

  1. Add verbose MCP server (e.g., iMCP with debug logging)
  2. Use Warp normally for several days
  3. Check: du -sh ~/Library/Group\ Containers/2BBY89MBSN.dev.warp/Library/Application\ Support/dev.warp.Warp-Stable/mcp/
  4. Observe unbounded log growth

Related: mattt/iMCP#105

Expected behavior

MCP logs should be rotated like Warp's own logs:

  • Max file size (e.g., 100MB)
  • Keep last N rotations (e.g., 5)
  • Automatic cleanup
  • Total directory size limit

Comparison:

  • ✅ Warp logs: warp.log, warp.log.old.0, warp.log.old.1, etc. (rotated)
  • ❌ MCP logs: No rotation → unbounded growth

Industry practice:

  • VS Code rotates LSP server logs
  • JetBrains IDEs limit external process logs

Screenshots, videos, and logs

No response

Operating system (OS)

macOS

Operating system and version

15.6.0

Shell Version

zsh 5.9 (arm64-apple-darwin24.0)

Current Warp version

v0.2025.10.01.08.12.stable_02

Regression

No, this bug or issue has existed throughout my experience using Warp

Recent working Warp date

No response

Additional context

Related Issues:

Does this block you from using Warp daily?

Yes, this issue prevents me from using Warp daily.

Is this an issue only in Warp?

Yes, I confirmed that this only happens in Warp, not other terminals.

Warp Internal (ignore): linear-label:b9d78064-c89e-4973-b153-5178a31ee54e

None

Metadata

Metadata

Assignees

Labels

area:mcpMCP server integrations, tool connections, and resource providers.bugSomething isn't working.ready-to-implementThe issue is ready for implementation work.triagedIssue has received an initial automated triage pass.

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions