Follow Discord
Sweep 03 Dec 2026 · 19:13Z Build v2.1.336 553 read Stable v2.1.332 Latest v2.1.336 Next v2.1.336 Feeds RSS JSON llms.txt llms-full.txt Unofficial

Claude Code v2.1.335 ·

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 New Features
JSON All of v2.1.335
Use it nowTier: how much it should matter to you
5Useful: my rating, 1 to 5
3Signal: worth watching, 1 to 5
Env VarsArea: what it touches
New FeaturesKind: in v2.1.335,
What probably matters to youSection of the release

Unclear What reads this variable and what setting it does is not shown.

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.

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 doubtWhat reads this variable and what setting it does is not shown.
The name it cites is new in this buildNew in this build: CLAUDE_CODE_EVAL_MOCKED_TOOLS

See this entry in the whole of v2.1.335 →

Feedback