Follow Discord
Sweep 27 Oct 2026 · 19:04Z Build v2.1.312 531 read Stable v2.1.308 Latest v2.1.312 Next v2.1.312 Feeds RSS JSON llms.txt llms-full.txt Unofficial

Claude Code v2.1.311 ·

New option to stop Claude Code writing per-server MCP debug log files

Setting CLAUDE_CODE_SKIP_MCP_DEBUG_LOG_FILES to true can stop Claude Code writing a debug log file for each MCP server

Use it now Notable No documentation found New Features
JSON All of v2.1.311
Use it nowTier: how much it should matter to you
5Useful: my rating, 1 to 5
2Signal: worth watching, 1 to 5
MCPArea: what it touches
New FeaturesKind: in v2.1.311,
What probably matters to youSection of the release

Unclear The second condition the variable depends on is not stated, so setting it may not take effect in every kind of session.

What

Claude Code now reads a new environment variable, CLAUDE_CODE_SKIP_MCP_DEBUG_LOG_FILES. An environment variable is a named value set in the shell or system that starts a program. MCP servers are add-on programs that give Claude extra tools, and Claude Code normally writes a separate debug log file for each one.

When this variable is set to true and one further internal condition is met, Claude Code still writes its normal debug line but skips the entry in that server's own log file. Before, every MCP log line went to that server's file.

Why

This can keep MCP debug log files off disk. That suits setups where Claude Code runs inside another program or without a person at the keyboard.

Read from
How sure we are
Something disagreesSomething we can check disagrees with this entry, or the writer said they could not settle it.
The writer flagged doubtThe second condition the variable depends on is not stated, so setting it may not take effect in every kind of session.
The name it cites is new in this buildNew in this build: CLAUDE_CODE_SKIP_MCP_DEBUG_LOG_FILES

See this entry in the whole of v2.1.311 →

Feedback