Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx skills add Arasz/ai-raccoon --skill mcp-tool-debugginggit clone --depth 1 https://github.com/Arasz/ai-raccoonWrote 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/arasz/ai-raccoon/mcp-tool-debugging)<a href="https://agentmods.dev/skills/arasz/ai-raccoon/mcp-tool-debugging"><img src="https://agentmods.dev/badge/skills/arasz/ai-raccoon/mcp-tool-debugging/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/arasz/ai-raccoon/mcp-tool-debugging"><img src="https://agentmods.dev/badge/skills/arasz/ai-raccoon/mcp-tool-debugging.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.00020 | $0.01270 |
| Opus 5.5 | $0.00008 | $0.00508 |
| Sonnet 5.5 | $0.00004 | $0.00254 |
| Haiku 4.5 | $0.00002 | $0.00127 |
Grade A, and why
mcp-tool-debugging scanned grade A with 1 finding 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.
Runs shell commandslowCapability
Expected in a hook, worth knowing in a rule or an instructions file.
- Shell out: `subprocess.run([interpreter, "-c", snippet], timeout=10)`. How it starts
The opening of the file, as written. The whole thing — 96 lines — stays where its author put it; the contents beside it link to each section on GitHub.
MCP tool debugging
A method for "the MCP tool call fails / errors / hangs" that separates the four places a failure can live: the client transport, the server's stdio framing, the handler's argument shape, and the installed package version. Proven on the semantica export_graph case (2026-08-20): every format broken, client timeouts at 300s while direct calls returned in <1s.
The four checks, in order
1. Reproduce the handler directly — bypass MCP entirely
Run the server's handler in the server's own interpreter, with the exact args the tool receives:
# in the installed package's venv python
from semantica import mcp_server
print(mcp_server._tool_export_graph({"format": "json"}))
The comparison that decides the next step:
- Direct call works, MCP call fails → transport/framing problem (step 2).
- Direct call fails too → handler bug (step 3) or package bug (step 4).
2. Stdio framing: stdout IS the protocol
Over stdio MCP, stdout carries JSON-RPC. ANY other stdout output — rich progress bars, print () debug lines, logos — interleaves with the framing and hangs the client, usually until its exact timeout (observed: 300s) while the same call returns in <1s directly.
- Grep the handler path for console renderers (
rich,tqdm,print). - Look for a kill switch env var — semantica has
SEMANTICA_DISABLE_PROGRESS=1, verified to silence the tracker. Set it in the server process at import time. - When the library owns the server entrypoint, patch upstream to force the var; when you own the launcher config, add it to the server's
env.
3. Handler argument shape vs the API signature
Read the actual signature of the thing the handler calls:
- Missing required positional arg:
JSONExporter().export(graph)failed withmissing 1 required positional argument: 'file_path'— the handler never passed the arg the method needs. - Type mismatch: passing an object where a dict is expected —
RDFExporter().export_to_rdf(graph, ...)received aContextGraphobject,AttributeError: 'ContextGraph' object has no attribute 'get'. Look for an adapter (graph.to_kg_dict()) and convert before handing off.
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.
- yesterday First seen · 96 lines · 20 tokens per session scan A 4630b1c6482a
mcp-tool-debugging is a skill published in the GitHub repository Arasz/ai-raccoon (7 stars, last pushed today), licensed MIT. It adds 20 tokens to every session and 1,270 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 1 finding (runs shell commands). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-12-05.
mcp-tool-debugging compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| mcp-tool-debuggingArasz/ai-raccoon | Skill | 7 | today | MIT | A | 20 | Claude Code, Codex |
| debugariaxhan/kernel-claude | Skill | 16 | yesterday | MIT | A | 64 | Claude Code |
| agentsight-bugfixalibaba/anolisa | Skill | 688 | 13d ago | Apache-2.0 | A | 67 | Claude Code, Codex |
| ascend-moe-optimizer-auto-traceXiaoLuoLYG/GOD | Skill | 1.3k | 11d ago | Apache-2.0 | A | 170 | Claude Code, Codex |
| observabilityPrismer-AI/PrismerCloud | Skill | 1.4k | 1mo ago | MIT | A | 67 | Claude Code |
| compiler-cb1e8e4bFuRongJun-1999/dsh-memory | Skill | 778 | today | MIT | A | 110 | Claude Code |
| code-reviewShy2593666979/AgentChat | Skill | 943 | 3d ago | MIT | A | 41 | Claude Code, Codex |