Follow Discord
Sweep 22 Oct 2026 · 04:32Z Build v2.1.308 527 read Stable v2.1.308 Latest v2.1.308 Next v2.1.308 Feeds RSS JSON llms.txt llms-full.txt Unofficial

Claude Code v2.1.242 ·

plugin eval can mock a plugin's MCP servers, with docs to match

Plugin evals can swap a plugin's MCP servers for fakes defined in a mocks folder.

Use it now Notable In Development
JSON All of v2.1.242
Use it nowTier: how much it should matter to you
4Useful: my rating, 1 to 5
4Signal: worth watching, 1 to 5
Plugin EvalArea: what it touches
In DevelopmentKind: in v2.1.242,
What probably matters to youSection of the release
What

Evaluation runs of a plugin can now swap that plugin's real MCP servers, the external tool servers a plugin declares, for fake ones defined as files under <eval dir>/mocks/, so an eval exercises tool calls without starting anything real. The mode is controlled by a new --mocks flag that defaults to record, and the bundled quick reference for plugin eval now carries a Mocks section describing the whole layout. The commands remain early access.

Details
  • --mocks record (the default) serves canned responses from mocks/<server>/<tool>.md; --mocks off spawns the real servers instead; any other value exits with "Error: --mocks must be record or off".
  • A responder file may carry an expect: guard on the input, which aborts the run with a record of the server, tool and reason when the call does not match.
  • Responders also support error: true to return a failure, and type: agent with its own abort conditions.
  • mocks/<server>/_tools.json supplies the saved tool list; without it a tool is served with a permissive schema and no description.
  • _server.md lets a single responder answer several tools for that server.
  • Directory and tool names must be valid tool-name segments, __ is rejected because it separates server name from tool name, and a directory is capped at 256 entries.
  • Mocks can shadow a server that the plugins under test declare, or stand alone with no real counterpart.
  • Grading gains mock_calls as a source, so a grader can assert on which mock tools were called, and the LLM judge can now grade image files.
  • The reference synopsis also lists --report, --publish-report and --no-publish.
  • Enabled per organization: when your organization is not enabled, the commands print an early-access line and exit with status 1.
Evidence

Mock stand-ins for MCP servers, from <eval dir>/mocks/ (record | off; default: record, --mocks record|off

Strings lifted out of the shipped bundle, so the claim above can be checked against them.

Read from
Names in the bundle--mocksplugin eval
Since it was published

The entry above is what we published on the day. These lines were added later, as Anthropic's own pages caught up, and they sit beside the original rather than replacing it.

Confirmed since Anthropic's documentation has since written up --mocks, on Plugins reference. | `--mocks <mode>` | `record` or `off`. See [Mock MCP servers](/docs/en/plugin-evals#mock-mcp-servers) | `record` | plugins-reference see the edit
Added since A small documentation edit on Create and distribute a plugin marketplace touched a line naming plugin eval after this was published. Test your marketplace before sharing. Validation checks file structure; to test whether a plugin changes what Claude does on realistic prompts, run its eval suite with [`claude plugin eval`](/docs/en/plugin-evals) before you publish a new … plugin-marketplaces see the edit
Confirmed since Anthropic's documentation has since written up plugin eval, on Claude Code changelog. * Added `claude plugin eval`: run a plugin's eval suite against Claude Code and get scored, reproducible results (JSON + HTML report); see `claude plugin eval --help` changelog see the edit
How sure we are
Two sources agreeTwo things we can check say the same as this entry.
Anthropic's documentation agreesAnthropic's documentation has since written up plugin eval, on Claude Code changelog.
The name it cites is new in this buildNew in this build: --mocks

See this entry in the whole of v2.1.242 →

Feedback