beancount-io: Skill for Claude Code

.agents/skills/qa-find-bugs-mcp/SKILL.md

qa-find-bugs-mcp is a skill for Claude Code, Codex from bex-co/beancount-io. It costs 108 tokens per session (3,947 once invoked), scanned A, original, MIT.

A command-line quality check for a remote MCP server. MCP is a protocol that lets programs discover and call tools over a network; this skill tests that service through its real HTTP endpoint.

In plain words
What is it for?
Use it to exercise the live MCP endpoint with JSON-RPC and MCP clients, reproduce bugs, trace their causes, and report separate findings.
Why use it?
It finds failures in network transport, login boundaries, tool discovery, responses, and agreement with the service's documented REST and GraphQL behavior.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: mentions Claude Code; installed under .agents/ (shared by several agents); mentions AGENTS.md.

This is bex-co/beancount-io's own configuration. It tells Claude Code and Codex how to work on beancount-io 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 beancount-io configures →

Needs its repository: it runs a file that does not travel with it, so clone the repository first. The line is node .agents/skills/qa-shared/scripts/qa-mcp.mjs [--credentials-file FILE] [--url URL] <command>.

Reuse

Borrowing it

Nothing to install: this file belongs to bex-co/beancount-io. 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/bex-co/beancount-io/main/.agents/skills/qa-find-bugs-mcp/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/bex-co/beancount-io

Made for: Claude Code, Codex.

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 qa-find-bugs-mcp

README.md
[![agentmods](https://agentmods.dev/badge/skills/bex-co/beancount-io/qa-find-bugs-mcp/github.svg)](https://agentmods.dev/skills/bex-co/beancount-io/qa-find-bugs-mcp)
Your own site
<a href="https://agentmods.dev/skills/bex-co/beancount-io/qa-find-bugs-mcp"><img src="https://agentmods.dev/badge/skills/bex-co/beancount-io/qa-find-bugs-mcp/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 qa-find-bugs-mcp

Your own site · 80×15
<a href="https://agentmods.dev/skills/bex-co/beancount-io/qa-find-bugs-mcp"><img src="https://agentmods.dev/badge/skills/bex-co/beancount-io/qa-find-bugs-mcp.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 108 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,947 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.00108 $0.03947
Opus 5.5 $0.00043 $0.01579
Sonnet 5.5 $0.00022 $0.00789
Haiku 4.5 $0.00011 $0.00395

Measured yesterday against content hash dc47207bb032, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

qa-find-bugs-mcp 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 yesterday.

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.

.agents/skills/qa-find-bugs-mcp/SKILL.md · 190 lines

How it starts

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

MCP QA bug hunt

Read the shared QA contract first, then backend-cluster/backend-v2/AGENTS.md, backend-cluster/backend-v2/docs/mcp.md (the customer contract: tools, resources, prompts, envelope, failure codes), ADR 0007 (docs/adrs/ADR007-backend-v2-mcp-surface.md, the endpoint contract) and ADR 0008 (surface parity). Exercise the real endpoint over HTTP; unit tests and source inspection support a finding but do not replace a live journey.

Arguments: optional base URL, journey names, ledger owner/name, wN, LAND=1, DRY_RUN=1. Default to https://beancount.io and report mode. A base URL changes the deployment under test; record the server name and version initialize reports and whether it matches local HEAD before calling a source fix missing from production. DRY_RUN=1 still allows disposable writes on a designated QA ledger needed to reproduce bugs.

Prepare targets and credentials

  • Record branch, HEAD, dirty files, Node version, target base URL, the initialize response's serverInfo and negotiated protocolVersion, the credential kind (API key or OAuth token), its scopes and pin, and the chosen synthetic ledger. Never record the credential itself.

  • The endpoint is POST {base}/api-gateway/mcp. Send Accept: application/json, text/event-stream, a JSON content type and MCP-Protocol-Version. Responses may be SSE-framed; parse data: lines rather than assuming one JSON document. The server is stateless: every POST is independent, initialize is not a prerequisite for a call, and there is no session id.

  • Make requests with the bundled helper so the credential never reaches argv, a transcript or a tool call:

    node .agents/skills/qa-shared/scripts/qa-mcp.mjs [--credentials-file FILE] [--url URL] <command>
    

    Commands: initialize, tools-list, resources-list (resources/list, the concrete instances), resource-templates-list (resources/templates/list), prompts-list, call <tool> [json], read <uri>, prompt <name> [json], rpc <method> [json], and raw --method GET|DELETE|POST [--accept TEXT] [--body TEXT] for transport checks. --anonymous omits the credential. It reads QA_MCP_TOKEN (falling back to BEANCOUNT_MCP_TOKEN) from the repo-root ./.env (preferred), the environment, or --credentials-file (not --env-file, which Node itself consumes after the script path; an explicit file wins over both), prints status, an allowlist of headers and the parsed JSON-RPC messages, redacts bcio_ prefixes and the token value, exits 2 for usage or credential problems and 3 for network failures or hangs. Run it from the repo root; --url defaults to the production endpoint and accepts HTTP only on loopback.

  • Use a user-designated QA credential: a bcio_ key minted on a dedicated QA account for a synthetic ledger, ideally one read/write key pinned to the ledger and one ledger.read key on the same ledger, both short-lived. The token lives in the repo-root ./.env unless the user names another file; ask for the variable names or file path, never for the value. The names are QA_MCP_TOKEN and QA_MCP_READ_ONLY_TOKEN, spelled exactly: mcp:conformance reads no other name for the read-only key (it prints a note when ./.env holds a near miss such as QA_MCP_TOKEN_READONLY, and a check that needs it skips). qa-mcp.mjs reads only QA_MCP_TOKEN, so run the read-only journey with the key relabelled in a pipe, off argv and off disk: --credentials-file <(sed -n 's/^QA_MCP_READ_ONLY_TOKEN=/QA_MCP_TOKEN=/p' .env). Do not mint keys on, or point tools at, a personal account or ledger. Browser cookies from qa-login.mjs are not MCP credentials; the endpoint refuses them by design.

  • Without a credential, continue the anonymous transport and discovery checks and mark every authenticated journey unverified.

  • Disposable writes, accounts and admin journeys belong on the already running local deploy/docker-mac stack (http://localhost:42601, see its README for ports and DEV_PREMIUM_USER_IDS for local key minting). Use it only when it is already up; .pm/DO_NOT_DO.md forbids provisioning a second stack for MCP testing. Label local results as local, with the backend image or HEAD they ran.

  • yarn mcp:conformance <base-url> [--ledger owner/name] inside backend-cluster/backend-v2/ runs ADR 0007's checklist and only observes; run it first against the target and treat a failed check as a candidate. It reads QA_MCP_TOKEN and QA_MCP_READ_ONLY_TOKEN from the repo-root ./.env (preferred) or the environment, so never pass --token or --read-only-token: those flags put the credential on argv. An unpinned credential needs --ledger owner/name for checks 5, 10, 17 and 19 (the write refusal, the result shape, the output schema and the undo preview); without it they skip. yarn mcp:agent-eval drives real Claude Code and Codex sessions and is billed; run it only when the user asks for client journeys.

  • Store evidence under the gitignored repo-root .internal/qa-<date>/: the exact helper command, sanitized request and response, status, headers and timings. Bound every request with a timeout; a hang is a result.

Read the full file on GitHub · 190 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. yesterday First seen · 190 lines · 108 tokens per session scan A dc47207bb032

Subscribe to this mod's changes

qa-find-bugs-mcp is a skill published in the GitHub repository bex-co/beancount-io (808 stars, last pushed yesterday), licensed MIT. It adds 108 tokens to every session and 3,947 once invoked, about $0.0004 per session on Opus 5.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-12-01.

Related

qa-find-bugs-mcp compared with skills from other repositories

qa-find-bugs-mcp next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
qa-find-bugs-mcpbex-co/beancount-ioSkill808yesterdayMITA108Claude Code, Codex
bookkeepingericrisco/rsc-harnessSkill695yesterdayMITA84Claude Code, Codex
flake-triageyschimke/compose-ai-toolsSkill130todayApache-2.0A70Claude Code
flutter-skillai-dashboad/flutter-skillSkill4163mo agoMITA73Claude Code, Codex
rledgerrustledger/rustledgerSkill442todayGPL-3.0A117Claude Code, Codex
flaky-tests-prokelvinkosbab/AppBootstrapAISkill82d agoMITA146Claude Code
countbean-accountingCPUtester5465/countbean-pluginSkill211mo agoMITA54Claude Code