helix.mcp: Skill for Claude Code

.squad/skills/mcp-exception-audit/SKILL.md

mcp-exception-audit is a skill for Claude Code, Codex from lewing/helix.mcp. It costs 0 tokens per session (2,931 once invoked), scanned A, original, MIT.

A review process for checking how MCP tool methods handle errors. MCP tool methods are functions that AI clients can call through the Model Context Protocol.

In plain words
What is it for?
Use it to list tool methods, classify their exception handling, and identify places that need consistent McpException wrapping.
Why use it?
It finds tools that expose raw, unclear, or inconsistent errors instead of returning the expected structured error type.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

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

Reuse

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.

Copy the file
curl -O https://raw.githubusercontent.com/lewing/helix.mcp/main/.squad/skills/mcp-exception-audit/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/lewing/helix.mcp

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 mcp-exception-audit

README.md
[![agentmods](https://agentmods.dev/badge/skills/lewing/helix.mcp/mcp-exception-audit/github.svg)](https://agentmods.dev/skills/lewing/helix.mcp/mcp-exception-audit)
Your own site
<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.

agentmods 80×15 button for mcp-exception-audit

Your own site · 80×15
<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>
Per session 0 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,931 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.00000 $0.02931
Opus 5 $0.00000 $0.01465
Sonnet 5 $0.00000 $0.00586
Haiku 4.5 $0.00000 $0.00293

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

Security

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.

.squad/skills/mcp-exception-audit/SKILL.md · 340 lines

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)

  1. Locate all tool classes:

    grep -r "\[McpServerToolType\]" src/
    
  2. Count total tools:

    grep -rn "\[McpServerTool(" src/ | wc -l
    
  3. 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?

Read the full file on GitHub · 340 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. 9d ago First seen · 340 lines · 0 tokens per session scan A 09c5f5048929

Subscribe to this mod's changes

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.

Related

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".

anton-abyzov/specweave · 43 tokens

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".

anton-abyzov/specweave · 42 tokens

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…

get-tmonier/argot · 129 tokens

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…

get-tmonier/argot · 110 tokens

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…

get-tmonier/argot · 131 tokens

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…

get-tmonier/argot · 78 tokens