Borrowing it
Nothing to install: this file belongs to lewing/helix.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/lewing/helix.mcp/main/.squad/skills/mcp-exception-audit/SKILL.mdgit clone --depth 1 https://github.com/lewing/helix.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/skills/lewing/helix.mcp/mcp-exception-audit)<a href="https://agentmods.dev/skills/lewing/helix.mcp/mcp-exception-audit"><img src="https://agentmods.dev/badge/skills/lewing/helix.mcp/mcp-exception-audit/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/skills/lewing/helix.mcp/mcp-exception-audit"><img src="https://agentmods.dev/badge/skills/lewing/helix.mcp/mcp-exception-audit.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.00000 | $0.02931 |
| Opus 5 | $0.00000 | $0.01465 |
| Sonnet 5 | $0.00000 | $0.00586 |
| Haiku 4.5 | $0.00000 | $0.00293 |
Grade A, and why
mcp-exception-audit 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 9d 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.
How it starts
The opening of the file, as written. The whole thing — 340 lines — stays where its author put it; the contents beside it link to each section on GitHub.
MCP Exception Audit Skill
Purpose: Audit a set of MCP tool methods for exception handling hygiene and McpException wrapping compliance.
Scope: Any MCP server with tool methods (classes decorated with [McpServerToolType] or methods decorated with [McpServerTool]).
Effort: ~2 hours for a typical MCP tool set (20–30 tools)
Audience: Product Analysts performing code quality audits; Architects reviewing exception handling patterns; Implementation teams verifying compliance with established patterns (e.g., BinlogMcp, HelixTool).
Methodology
Phase 1: Enumeration (15 min)
-
Locate all tool classes:
grep -r "\[McpServerToolType\]" src/ -
Count total tools:
grep -rn "\[McpServerTool(" src/ | wc -l -
Extract tool metadata (name, file, line):
grep -rn "\[McpServerTool(" src/ | cut -d: -f1,2 | sort
Deliverable: List of all tool names, file paths, and line numbers.
Phase 2: Classification (1.5 hours)
For each tool method, walk the code and classify by exception posture:
| Posture | Definition | Pattern | Fix Needed? |
|---|---|---|---|
| A | Pre-wrapped | Has try/catch that throws McpException |
No |
| B | Raw throw | No try/catch; raw .NET exceptions propagate uncaught |
Yes |
| C | Implicit | No explicit throw, but calls can fail uncaught |
Yes |
| D | Swallowed | Catches and returns error object instead of throwing | Depends on architecture |
| E | Mixed | Multiple strategies on different code paths | Yes |
Classification checklist per method:
□ Parameter validation (pre-call)
- How are required parameters validated?
- What exception type is thrown for invalid input?
- Is it McpException or raw ArgumentException?
□ Service/I/O calls (try/catch)
- Are service calls wrapped in try/catch?
- What exception types are caught?
- Are exceptions re-thrown as McpException?
□ Config/guard checks
- Are configuration failures surfaced as McpException?
- Or are they silently ignored?
□ Return paths
- Does the method always throw on error?
- Or does it return error objects instead?
□ Context-specific handling
- Are semantic errors (e.g., "not found") detected and enhanced with hints?
- Or is there a broad one-size-fits-all catch?
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.
- 9d ago First seen · 340 lines · 0 tokens per session scan A 09c5f5048929
mcp-exception-audit is a skill published in the GitHub repository lewing/helix.mcp (4 stars, last pushed yesterday), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 2,931 tokens. 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.
Other skills, from other repositories
review
Adversarial fresh-context review of an increment before it ships. Every finding cites path:line and is re-verified. Use when saying "review", "grill this", or "critique the implementation".
sw-review
Adversarial fresh-context review of an increment before it ships; every finding cites path:line and is re-verified. Use for "review this", "critique the implementation", "review before closing".
argot-setup
Set argot up for a repository end to end — audit its history, decide what should shape its voice, fit, verify the fit actually catches things, tune the rules its own history says are noisy, and wire the places it runs (pre-write hook, pre-commit, MCP, CI). One sitting, one decision at a time, each proposed with the…
argot-check
Score your working changes with argot — flag code foreign to this repo's own patterns (unfamiliar dependencies, APIs, constructs), functions the repo already has, code filed in the wrong place, imports that break the repo's layering, and tests weakened, disabled, or deleted alongside a production change — before…
argot-write-rule
Codify a repo convention argot's built-ins don't cover into a scripted custom rule — a .argot/rules/NAME/rule.toml manifest plus a sandboxed Rhai script that fires exactly like a built-in, gated on a green fixture suite before it ever sees a real diff. Use when the user asks to "write an argot rule for X", "codify…
argot-review-pr
Review a specific pull request (or diff range) against this repo's learned patterns with argot, without checking it out — flag dependencies, APIs, and constructs foreign to how the repo is written, duplicated functions, misfiled code, layering breaks, and tests weakened, disabled, or deleted alongside a production…