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-tests/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-tests)<a href="https://agentmods.dev/skills/lewing/helix.mcp/mcp-exception-tests"><img src="https://agentmods.dev/badge/skills/lewing/helix.mcp/mcp-exception-tests/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-tests"><img src="https://agentmods.dev/badge/skills/lewing/helix.mcp/mcp-exception-tests.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.00485 |
| Opus 5 | $0.00000 | $0.00243 |
| Sonnet 5 | $0.00000 | $0.00097 |
| Haiku 4.5 | $0.00000 | $0.00049 |
Grade A, and why
mcp-exception-tests 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 — 48 lines — stays where its author put it; the contents beside it link to each section on GitHub.
MCP Exception Tests Skill
Purpose: Add unhappy-path tests proving MCP tool methods convert service failures into user-visible McpException messages instead of silent/null MCP failures.
Standing rule
Every [McpServerTool] method must have at least one direct MCP tool test for an exception path. Prefer service failures over guard-only cases when the tool calls network/file services.
Test pattern
- Instantiate the real MCP tool (
AzdoMcpTools,HelixMcpTools, etc.) with mocked service seams (IAzdoApiClient,IHelixApiClient). - Configure the mock to return a faulted task or throw the target exception.
- Invoke the MCP tool method directly.
- Assert
McpExceptionand a non-empty, actionable message containing both the tool action and underlying cause.
var ex = await Assert.ThrowsAsync<McpException>(() => tool.Builds());
Assert.False(string.IsNullOrWhiteSpace(ex.Message));
Assert.Contains("list builds", ex.Message, StringComparison.OrdinalIgnoreCase);
Assert.Contains("AzDO unavailable", ex.Message, StringComparison.OrdinalIgnoreCase);
Exception families to cover
HttpRequestException: useTask.FromException<T>on the API mock; these should be active tests on current code.AggregateException: use a faulted task whose exception is anAggregateExceptionwrapping the underlying cause; this models Bug B'sTask.WhenAllboundary.TaskCanceledException/OperationCanceledException: useTask.FromException<T>to model timeouts/cancellation; these require centralized MCP exception handling if current per-tool filters do not catch them.
Skips before centralization
If Ripley's centralized handler has not landed, add contract tests with:
[Fact(Skip = "Requires Ripley Bug B MCP exception centralization for issue #61 (...)")]
Do not weaken assertions just to make tests pass. The skipped test documents the required contract; unskip after centralization merges.
Quality bar
A weak test only asserts Assert.Throws. A good MCP exception test asserts:
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 · 48 lines · 0 tokens per session scan A 49a3f653d66e
mcp-exception-tests is a skill published in the GitHub repository lewing/helix.mcp (4 stars, last pushed today), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 485 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
author-test
Generate a test given sample. Parameters: C# SDK repository root; Package name: one of Azure.AI.Projects, Azure.AI.Projects.Agents or Azure.AI.Extensions.OpenAI; the sample to use as a starting point for the test.
migrate-xunit-to-xunit-v3
Migrate .NET test projects from xUnit.net v2 to xunit.v3 and fix v3 breaks. Use for package/CPM conversion, OutputType=Exe, preserving the VSTest or MTP runner (including projects currently using YTest.MTP.XUnit2), incompatible TFMs, async void tests, string-to-Type attributes, custom Fact/Theory/BeforeAfterTest…
crap-score
Calculates CRAP (Change Risk Anti-Patterns) for a named .NET method, class, or file. USE FOR: explicit CRAP calculation or coverage-and-complexity risk within that named target, including which tests to prioritize. DO NOT USE FOR: project-wide coverage/CRAP, plateaus, or project-wide blockers/priorities…
nunit
Write, run, or repair .NET tests that use NUnit. Use when a repo uses NUnit, [Test], [TestCase], [TestFixture], or NUnit3TestAdapter for VSTest or Microsoft.Testing.Platform execution. USE FOR: writing or reviewing NUnit tests; using [Test], [TestCase], [TestFixture], [SetUp], [TearDown] attributes; configuring…
merge-queue-readiness
Pre-queue merge-group CI simulation. Triggered before adding a PR to a GitHub merge queue. Prevents merge-queue kick-outs from integration test failures.
restore-internals-seams-in-finally-blocks-after-each-test
When delegating a task affected by this skill, include.