Claude Code v2.1.335 · 2 Dec 2026
Plugin evals can mock MCP tools and block calls to the real server
A new CLAUDE_CODE_EVAL_MOCKED_TOOLS variable lets plugin evals mark MCP tools as mocked and refuse calls that would reach the real server
Group of 2 Use it now Notable
No documentation found Improvements
Copy link
Copy markdown
JSON
All of v2.1.335
Use it now Tier: how much it should matter to you
5 Useful: my rating, 1 to 5
3 Signal: worth watching, 1 to 5
Plugins Area: what it touches
Improvements Kind: in v2.1.335, 02 Dec 26
What probably matters to you Section of the release
What
An eval is a scripted test run, here used to test plugins. MCP is the standard Claude Code uses to talk to outside tool servers. A new environment variable, CLAUDE_CODE_EVAL_MOCKED_TOOLS , lets an eval mark some of those tools as mocked, meaning stood in for by fakes:
When an eval config is present, the eval runner sets CLAUDE_CODE_EVAL_MOCKED_TOOLS to a comma-separated list of its mockedTools.
When Claude Code decides whether a tool may run, it reads that variable. If the tool's MCP source is not "dynamic", its name is on the list, and the call is not coming from an agent hook, the call is refused with "Plugin eval refused this call because the tool is mocked and its name leads to the real MCP server" followed by the server name.
The variable is also added to a list of environment variable names alongside CLAUDE_CODE_EVAL_CONFINED , CLAUDE_CODE_TELEPORT_MOVE and CLAUDE_CODE_MANAGED_SETTINGS_PATH . What that list is used for was not traced.
Why
In practice this keeps a plugin test from reaching a real MCP server when the tool was meant to be faked. Ordinary use of Claude Code is not affected.
How sure we are
One source agrees One thing we can check says the same as this entry.
The name it cites is new in this build New in this build: CLAUDE_CODE_EVAL_MOCKED_TOOLS
See this entry in the whole of v2.1.335 →
2 Dec 2026 · 454 entries, this one is #3.
Use it now20 You'll notice251 Nothing to try yet36 Under the hood147
Open the release →
Names in this entry
env CLAUDE_CODE_EVAL_MOCKED_TOOLS Claude Code now lists CLAUDE_CODE_EVAL_MOCKED_TOOLS alongside its other evaluation-related environment variables
env CLAUDE_CODE_EVAL_CONFINED In confined evaluation runs, publishing re-checks a file's identity before reading it.
env CLAUDE_CODE_TELEPORT_MOVE Moving a session to the cloud now refuses sessions in a git worktree and warns first that loops, scheduled tasks and goals will stop
env CLAUDE_CODE_MANAGED_SETTINGS_PATH Admin and managed settings now merge their env blocks instead of one replacing the other; you can opt out.
Is this right?
0
0
Feedback
What's wrong with this entry?
Hard to understand Too vague Looks wrong Not relevant to me Too long Missing the detail I wanted Duplicate of another card
Clear Learned something new I can act on this Good catch
Related
Other releases about the same thing. Found by shared names or similar wording; neither means one caused the other.
← Previous · 2 of 454
New Interrupt hook event, with interrupts marked by who caused them
Use it now Hooks
In v2.1.335 What probably matters to you release-page order
Next → · 4 of 454
New claude remote-control --only-plugins serves only chosen plugins to cloud chats
Use it now Remote Control