cadlens-mcp: Agent for Claude Code

.claude/agents/mcp-tool-tester.md

mcp-tool-tester is an agent for Claude Code from cadlens-co/cadlens-mcp. It costs 65 tokens per session (562 once invoked), scanned A, original, MIT.

An automated test agent for checking the command-line interface of the cadlens-mcp server. It builds the project, lists its tools, and checks their input formats and responses.

In plain words
What is it for?
Testing the seven CADLENS tools, checking JSON-RPC tool calls, validating input schemas, and optionally making a safe live request when an API key is available.
Why use it?
It catches build failures and changes that break the server's advertised tools without needing to start a full AI client.

Agent for Claude Code

Written for Claude Code: installed under .claude/.

This is cadlens-co/cadlens-mcp's own configuration. It tells Claude Code how to work on cadlens-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 cadlens-mcp configures →

Reuse

Borrowing it

Nothing to install: this file belongs to cadlens-co/cadlens-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/cadlens-co/cadlens-mcp/main/.claude/agents/mcp-tool-tester.md
Clone the repo
git clone --depth 1 https://github.com/cadlens-co/cadlens-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 mcp-tool-tester

README.md
[![agentmods](https://agentmods.dev/badge/agents/cadlens-co/cadlens-mcp/mcp-tool-tester/github.svg)](https://agentmods.dev/agents/cadlens-co/cadlens-mcp/mcp-tool-tester)
Your own site
<a href="https://agentmods.dev/agents/cadlens-co/cadlens-mcp/mcp-tool-tester"><img src="https://agentmods.dev/badge/agents/cadlens-co/cadlens-mcp/mcp-tool-tester/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 mcp-tool-tester

Your own site · 80×15
<a href="https://agentmods.dev/agents/cadlens-co/cadlens-mcp/mcp-tool-tester"><img src="https://agentmods.dev/badge/agents/cadlens-co/cadlens-mcp/mcp-tool-tester.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 65 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 562 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 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.00065 $0.00562
Opus 5 $0.00032 $0.00281
Sonnet 5 $0.00013 $0.00112
Haiku 4.5 $0.00006 $0.00056

Measured 12d ago against content hash 684c647a93fb, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-12, from the pricing page.

Security

Grade A, and why

mcp-tool-tester scanned grade A with 0 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 12d 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.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.claude/agents/mcp-tool-tester.md · 39 lines

What it actually says

You are an MCP stdio harness. Your job is to detect regressions in the cadlens-mcp tool surface without launching Claude or any external MCP client.

Process

  1. Build: npm run build. Abort if it fails — that's a typecheck/compile issue, not a tool issue. Surface the error verbatim.
  2. List tools: pipe a tools/list JSON-RPC request to the built binary and parse the response. Expect exactly these 7 tool names:
    • cadlens_parse_file
    • cadlens_parse_url
    • cadlens_get_job
    • cadlens_get_result
    • cadlens_refresh_image_url
    • cadlens_list_jobs
    • cadlens_delete_job Use npm run smoke if it exists.
  3. Call a safe read-only tool: against the user-provided CADLENS_API_KEY (or skip if unset), invoke cadlens_list_jobs via a tools/call JSON-RPC request. Verify the response has content[0].type === 'text' and that the text parses as JSON with a jobs array. Skip live calls if the user did not provide a key.
  4. Verify inputSchema shape for each tool: every entry under tools must have name, description, inputSchema.type === 'object'. Tools with required params declare them in required.
  5. Report: a table of tool / present / inputSchema OK / live-call OK (if attempted). Surface any mismatch as a failure.

Example JSON-RPC payloads

{"jsonrpc":"2.0","id":1,"method":"tools/list"}
{"jsonrpc":"2.0","id":2,"method":"tools/call","params":{"name":"cadlens_list_jobs","arguments":{}}}

Pipe these as a single newline-delimited stream. The MCP stdio transport requires Content-Length-framed messages — prefer npm run smoke over hand-rolled framing if it exists.

Things to avoid

  • Don't make destructive calls (cadlens_delete_job).
  • Don't fabricate success — if the binary times out, say so and capture stderr.
  • Don't modify code. You're a tester, not an implementer.
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. 12d ago First seen · 39 lines · 65 tokens per session scan A 684c647a93fb

Subscribe to this mod's changes

mcp-tool-tester is an agent published in the GitHub repository cadlens-co/cadlens-mcp (1 stars, last pushed 1mo ago), licensed MIT. It adds 65 tokens to every session and 562 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other agents, from other repositories

integration-testing-orchestrator

Use this agent when you need to coordinate end-to-end testing across multiple components, optimize build systems, validate deployments, or ensure proper integration between eBPF programs, Rust collector, and frontend components. Examples: Context: User has made changes to both eBPF programs and Rust collector and…

eunomia-bpf/agentsight · 0 tokens

test-engineer

Expert in testing, TDD, and test automation. Use for writing tests, improving coverage, debugging test failures. Triggers on test, spec, coverage, jest, pytest, playwright, e2e, unit test.

ashrafmusa/agenticana · 49 tokens

e2e-tester

Use for end-to-end and smoke testing of critical user paths across viewports. Pairs with a browser-automation MCP (for example Playwright) when one is available.

mnzralee/claude-multi-agent-architecture · 41 tokens

qa-tester

Use when the task is a verifiable browser interaction with a binary pass/fail outcome — login flow, submit form, attach file, verify message appears. Returns a verdict + evidence. Do NOT use for tasks needing user decisions mid-flow (region selection, domain pick, etc.).

DevZonayed/Mochi · 60 tokens

visual-diagram-verifier

Use this agent when the architecture-designer:design or architecture-designer:review skill has opened the browser preview (Step 8 / step 4d) and wants to check whether diagrams actually render without visually overlapping elements — a real, rendered-geometry check using the chrome-devtools-mcp or firefox-devtools-mcp…

sembraniteam/claude-plugins · 112 tokens

qa-engineer

Converts Excel test case reports into verified Playwright E2E scripts with real selectors.

odarino/haren · 21 tokens