mockzilla-mcp: Instructions file for Claude Code

CLAUDE.md

mockzilla-mcp CLAUDE.md is an instructions file for Claude Code from mockzilla/mockzilla-mcp. It costs 3,210 tokens per session, scanned C, original, MIT.

Development instructions for mockzilla-mcp, a local server that lets AI tools connect to Mockzilla through standard input and output. It describes the server layout, local and hosted tools, and how to add a local tool.

In plain words
What is it for?
Use it when developing, extending, installing, or troubleshooting mockzilla-mcp, including adding handlers, working with local services, or forwarding requests to the hosted service.
Why use it?
It gives contributors the project rules and file responsibilities needed to change the server safely. It also explains which operations need authentication and which run locally.

Instructions file for Claude Code

Written for Claude Code: the file is CLAUDE.md. Also seen: mentions CLAUDE.md.

This is mockzilla/mockzilla-mcp's own configuration. It tells Claude Code how to work on mockzilla-mcp itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything mockzilla-mcp configures →

Reuse

Borrowing it

Nothing to install: this file belongs to mockzilla/mockzilla-mcp. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/mockzilla/mockzilla-mcp/main/CLAUDE.md
Clone the repo
git clone --depth 1 https://github.com/mockzilla/mockzilla-mcp

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for mockzilla-mcp CLAUDE.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/mockzilla/mockzilla-mcp/claude-md/github.svg)](https://agentmods.dev/instructions/mockzilla/mockzilla-mcp/claude-md)
Your own site
<a href="https://agentmods.dev/instructions/mockzilla/mockzilla-mcp/claude-md"><img src="https://agentmods.dev/badge/instructions/mockzilla/mockzilla-mcp/claude-md/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for mockzilla-mcp CLAUDE.md

Your own site · 80×15
<a href="https://agentmods.dev/instructions/mockzilla/mockzilla-mcp/claude-md"><img src="https://agentmods.dev/badge/instructions/mockzilla/mockzilla-mcp/claude-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 3,210 This file is loaded in full into every session.
When invoked 3,210 The same file — it is already loaded in full.
Security scan C 2 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.03210 $0.03210
Opus 5.5 $0.01284 $0.01284
Sonnet 5.5 $0.00642 $0.00642
Haiku 4.5 $0.00321 $0.00321

Measured 28d ago against content hash 2a8b2c93ec03, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade C, and why

mockzilla-mcp CLAUDE.md scanned grade C with 2 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 28d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Recursive force deletehighDestructive command

rm -rf with a variable or a broad path is one typo away from removing the wrong tree.

clean slate: `rm -rf ~/.cache/mockzilla-mcp`. To test the cache

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

- **`curl -H 'X-Mockzilla-Replay:'` sends nothing.** curl reads a
CLAUDE.md · 288 lines

How it starts

The opening of the file, as written. The whole thing — 288 lines — stays where its author put it; the contents beside it link to each section on GitHub.

mockzilla-mcp

Stdio MCP server bridging Claude Desktop / Cursor / etc. to mockzilla. Pure-JS, no build step, ESM, Node ≥ 18.

Layout

bin/cli.js     JSON-RPC entry: stdin loop, dispatch, signal handlers.
lib/tools.js   The local tool registry (descriptions + handler refs).
lib/install.js check_cli, install_cli, resolveMockzilla, cache helpers.
lib/local.js   serve_locally, stop_locally, info, lint, simplify, pack,
               generate, child tracking.
lib/discover.js discover_specs (filesystem scan + spec summaries).
lib/history.js  request_history (list) and diagnose_requests (analysis),
               both read from the running server's /.history API.
lib/replay.js   setup_replay (writes a replay block into config.yml) and
               list_replays, reading /.replay.
lib/github.js  publish_to_github and friends: push mocks to the user's own
               repo so the Mockzilla action deploys them. Drives their `gh`.
lib/docs.js    mockzilla_docs_{topics,read,search}, served from the packaged
               docs/ (MOCKZILLA_DOCS_DIR points at another build).
docs/          Built by `make build`, not in git. Ships in the npm tarball.
lib/version.js Bridge version + npm registry update check (bridge_status).
lib/auth.js    Hosted-plane login: OAuth in the browser, saved tokens, refresh.
lib/proxy.js   Hosted-plane forwarding with the saved login or MOCKZILLA_TOKEN.
lib/hosted.js  Hosted tool definitions packed at build, listed before login.
lib/util.js    Tiny shared helpers (shellEscape).

bin/cli.js is the only file the npm bin entry runs. It owns the JSON-RPC loop and delegates everything else.

Publishing to GitHub

lib/github.js is the only part of the bridge that writes outside this machine. It drives the user's own gh, pushes to a repository they name, and the deployed URL is public whatever the repo's visibility. So: visibility has no default, the repo is never invented, an existing services folder is merged into rather than replaced, and an existing workflow is never overwritten.

Read the full file on GitHub · 288 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 28d ago Changed · +9 lines · +156 tokens per session 2a8b2c93ec03
  2. 1mo ago Changed · +53 lines · +675 tokens per session 0daef54a6e51
  3. 1mo ago Changed · +15 lines · +214 tokens per session 1d516037be9a
  4. 1mo ago Changed · +41 lines · +598 tokens per session 57c62c9000e4
  5. 2mo ago First seen · 170 lines · 1,567 tokens per session scan C 5e8f0aa5c2af

Subscribe to this mod's changes

mockzilla-mcp CLAUDE.md is an instructions file published in the GitHub repository mockzilla/mockzilla-mcp (5 stars, last pushed 28d ago), licensed MIT. It adds 3,210 tokens to every session, about $0.0128 per session on Opus 5.5. A static security scan graded it C with 2 findings (recursive force delete, makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

mockzilla-mcp CLAUDE.md compared with instructions from other repositories

mockzilla-mcp CLAUDE.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
mockzilla-mcp CLAUDE.mdmockzilla/mockzilla-mcpInstructions file528d agoMITC3,210Claude Code
vscode buildNext.instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA9,719GitHub Copilot
next.js AGENTS.mdvercel/next.jsInstructions file143kyesterdayMITA7,461Codex, OpenCode
langchain AGENTS.mdlangchain-ai/langchainInstructions file149kyesterdayMITA4,680Codex, OpenCode
vscode oss-third-party-notices.instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA5,516GitHub Copilot
vscode copilot-instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA3,093GitHub Copilot
deepseek-harness AGENTS.mddeepseek-ai/deepseek-harnessInstructions file274k2d agoMITA4,313Codex, OpenCode