Under the hood
Eval mocks now explicitly check managed MCP server policy before starting
What
Claude Code's internal evaluation harness (the "eval" system used for testing) now has two specific errors for when a mock MCP server (a stand-in for a real MCP server, used in testing) can't be started:
MockWithholdPolicyError: thrown when an organization'sallowedMcpServers/deniedMcpServerspolicy would block the empty withholding stand-in from startingMockEnterpriseExclusiveError: thrown when a machine'smanaged-mcp.jsonfile gives the organization exclusive control over MCP servers, meaning eval mocks can't run on that machine at all
Why
This makes eval failures caused by enterprise MCP policy restrictions clearer and easier to diagnose, instead of failing in a generic or confusing way.