{"name":"--mocks","slug":"mocks","family":"cli","title":"CLI flags","noun":"CLI flag","description":"Plugin evals can swap a plugin's MCP servers for fakes defined in a mocks folder.","description_source":"entry","described_by":{"version":"2.1.242","anchor":"plugin-eval-can-mock-a-plugin-s-mcp-servers-with-docs-to-mat"},"presence":{"first_seen":"2.1.242","removed_in":null,"in_current_build":true,"newest_mined":"2.1.308","builds":56,"mined_builds":149,"first_cited":{"version":"2.1.242","released_at":"2026-08-24 19:16:14","spans":3}},"aliases":[],"entries":[{"version":"2.1.269","anchor":"new-cli-flags-for-the-plugin-eval-command-trust-plugin-an","heading":"New CLI flags for the plugin-eval command: --trust-plugin and --allow-real-servers","line":"`claude plugin eval` adds `--trust-plugin` for CI and `--allow-real-servers` to run real MCP servers without mocks","released_at":"2026-09-11 18:12:49","reason":"found in this entry's text"},{"version":"2.1.242","anchor":"plugin-eval-can-mock-a-plugin-s-mcp-servers-with-docs-to-mat","heading":"plugin eval can mock a plugin's MCP servers, with docs to match","line":"Plugin evals can swap a plugin's MCP servers for fakes defined in a mocks folder.","released_at":"2026-08-24 19:16:14","reason":"named in this entry, found in this entry's text"},{"version":"2.1.242","anchor":"eval-graders-can-inspect-calls-made-to-mock-tools","heading":"Eval graders can inspect calls made to mock tools","line":"Eval graders can inspect the calls that hit mock tools during a run.","released_at":"2026-08-24 19:16:14","reason":"named in this entry, found in this entry's text"},{"version":"2.1.242","anchor":"eval-runs-fail-loudly-when-managed-policy-blocks-the-mock-se","heading":"Eval runs fail loudly when managed policy blocks the mock servers","line":"Eval runs stop with a clear policy error when your org's MCP rules block the mock servers.","released_at":"2026-08-24 19:16:14","reason":"named in this entry, found in this entry's text"},{"version":"2.1.242","anchor":"mocked-mcp-servers-register-under-the-real-server-name-and-d","heading":"Mocked MCP servers register under the real server name and deny everything else","line":"Mock servers replace real ones by name, allow mocked tools and deny the rest; a mock_calls grader is added.","released_at":"2026-08-24 19:16:14","reason":"found in this entry's text"}],"entries_total":5,"docs":[{"source":"claude-code","path":"plugin-evals","title":"Test plugins with evals","documented":false},{"source":"claude-code","path":"plugins\/cli-reference","title":"Plugin commands reference","documented":false}],"docs_total":2,"gates":[],"related":[],"url":"https:\/\/changelogs.core-directive.com\/reference\/cli\/mocks","family_url":"https:\/\/changelogs.core-directive.com\/reference\/cli.json"}