Borrowing it
Nothing to install: this file belongs to developerz-ai/ui-debugger-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.
curl -O https://raw.githubusercontent.com/developerz-ai/ui-debugger-mcp/main/CLAUDE.mdgit clone --depth 1 https://github.com/developerz-ai/ui-debugger-mcpWrote 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.
[](https://agentmods.dev/instructions/developerz-ai/ui-debugger-mcp/claude-md)<a href="https://agentmods.dev/instructions/developerz-ai/ui-debugger-mcp/claude-md"><img src="https://agentmods.dev/badge/instructions/developerz-ai/ui-debugger-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.
<a href="https://agentmods.dev/instructions/developerz-ai/ui-debugger-mcp/claude-md"><img src="https://agentmods.dev/badge/instructions/developerz-ai/ui-debugger-mcp/claude-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.04447 | $0.04447 |
| Opus 5.5 | $0.01779 | $0.01779 |
| Sonnet 5.5 | $0.00889 | $0.00889 |
| Haiku 4.5 | $0.00445 | $0.00445 |
Grade B, and why
ui-debugger-mcp CLAUDE.md scanned grade B with 1 finding 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 8d 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.
Reads MCP configurationmediumAgent snooping
mcp.json carries server URLs and auth tokens; reading it lets a mod discover and abuse other integrations.
- `.mcp.json` — how to LAUNCH server (command, model API key + base url). Gitignored. Secret. How it starts
The opening of the file, as written. The whole thing — 312 lines — stays where its author put it; the contents beside it link to each section on GitHub.
UI Debugger MCP
Bun · TypeScript · Vercel AI SDK · OpenAI-compatible router (OpenRouter default). MCP server that debugs UIs autonomously.
Smart agent hands a goal (a "story") to a small fast agent inside this server. The small agent drives the target, gathers evidence, reports findings. Smart agent fixes code, asks again. Loop until the UI works. No human clicking.
Goal: stuff WORKS + LOOKS NICE. Three actors (docs/idea/models.md):
- smart agent — the boss (Claude/caller): sets goals, fixes code, loops.
- fast guy — the driver (fast, text-only, blind): controls the target.
- vision guy — the eyes (multimodal): describes screenshots, judges looks.
Response Rules
- Execute. No preamble.
- Lead with action or answer.
- Terse. Fragments OK.
What this is
- MCP server (stdio). Ships as npm package, run via
npx/bunx. - The agent brain runs inside the server (Vercel AI SDK). Not the caller's.
- Session keyed by current dir (cwd). One project = one session.
- One debug run at a time (persistent Chrome profile locks the profile).
Reference repos (read for patterns, don't copy blind)
../ai-task-master— build template: Bun + TS + Vercel AI SDK, subagent-as-tool, MCP, Zod, Biome.../gold-standards-in-ai/docs— house rules: few fat tools, SRP, custom errors, compressed config.../../sebyx07/claude-code-bible/docs— deeper handbook.?debug-ai=truelogin bypass pattern.
Architecture
src/main.ts— CLI entry (help/version/init/status/stop).src/boot.ts— server boot: owner-lock gate → config → workspace → provider/models → stdio MCP server.src/mcp/— MCP server, tool defs (few fat tools, NOT one-per-action).src/agent/— debug agent (Vercel AI SDK loop). The fast guy (driver) + the vision guy (eyes vialook). Models per role via OpenAI-compatible router (OpenRouter default). Defaults: deepseek (text), qwen (image).prompts/— OUR system prompts: in-repo, versioned, tested, provider-agnostic. NEVER rely on a 3rd-party model's defaults. Written compressed — they are resent every step (../../sebyx07/claude-code-bible/docs/11-compressed-config.md).
src/adapters/— target control behind one shared contract.browser/— web via CDP (headless default). ✅ shipped.desktop/— X11/Wayland windows. Covers desktop app AND mobile emulator. ✅ shipped.android/— ADB + uiautomator. ✅ shipped.
src/session/— cwd-keyed session, per-project workspace, state.src/config/— load the project config (.dz/ui-debugger/ui-debugger-mcp.jsonfirst, root.ui-debugger-mcp.jsonfallback), resolve model/targets.src/services/— business logic. Thin handlers, logic here.src/errors.ts— custom error classes (baseUiDebuggerError+ConfigError/AdapterError/AuthError/AgentError/WorkspaceError/ProviderError/ etc.). No genericError.
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.
- 8d ago Changed · +6 lines · +132 tokens per session 55fd2d75dc8d
- 9d ago Changed · +26 lines · +401 tokens per session ad25ba70af16
- 11d ago Changed · +24 lines · +381 tokens per session 4b4c1585a410
- 1mo ago Changed · +3 lines · +57 tokens per session db18f69ace25
- 2mo ago Changed · +6 lines · +111 tokens per session 227cee992404
- 2mo ago First seen · 247 lines · 3,365 tokens per session scan B a765d5d23b7a
ui-debugger-mcp CLAUDE.md is an instructions file published in the GitHub repository developerz-ai/ui-debugger-mcp (2 stars, last pushed yesterday), licensed MIT. It adds 4,447 tokens to every session, about $0.0178 per session on Opus 5.5. A static security scan graded it B with 1 finding (reads mcp configuration). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.
ui-debugger-mcp CLAUDE.md compared with instructions from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| ui-debugger-mcp CLAUDE.mddeveloperz-ai/ui-debugger-mcp | Instructions file | 2 | yesterday | MIT | B | 4,447 | Claude Code |
| vscode buildNext.instructions.mdmicrosoft/vscode | Instructions file | 195k | yesterday | MIT | A | 9,719 | GitHub Copilot |
| next.js AGENTS.mdvercel/next.js | Instructions file | 143k | yesterday | MIT | A | 7,461 | Codex, OpenCode |
| langchain AGENTS.mdlangchain-ai/langchain | Instructions file | 149k | yesterday | MIT | A | 4,680 | Codex, OpenCode |
| vscode oss-third-party-notices.instructions.mdmicrosoft/vscode | Instructions file | 195k | yesterday | MIT | A | 5,516 | GitHub Copilot |
| vscode copilot-instructions.mdmicrosoft/vscode | Instructions file | 195k | yesterday | MIT | A | 3,093 | GitHub Copilot |
| deepseek-harness AGENTS.mddeepseek-ai/deepseek-harness | Instructions file | 274k | 2d ago | MIT | A | 4,313 | Codex, OpenCode |