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_TOOLSto a comma-separated list of itsmockedTools. - 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_MOVEandCLAUDE_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.
Names in the bundleCLAUDE_CODE_EVAL_MOCKED_TOOLS
Something disagreesSomething we can check disagrees with this entry, or the writer said they could not settle it.
The writer flagged doubt
What reads this variable and what setting it does is not shown.
The name it cites is new in this build
New in this build: CLAUDE_CODE_EVAL_MOCKED_TOOLS