mcp-tool-debugging

mcp-tool-debugging is a skill for Claude Code, Codex from Arasz/ai-raccoon. It costs 20 tokens per session (1,270 once invoked), scanned A, original, MIT.

A troubleshooting method for MCP tool calls. MCP is a protocol that lets programs call tools through a structured connection.

In plain words
What is it for?
Use it when an MCP call fails, times out, or hangs by comparing a direct handler call with the call through the MCP connection.
Why use it?
It helps identify whether a failure comes from the connection, message formatting, tool code, or installed package version instead of guessing.

Skill for Claude CodeCodex

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

Good fit Use it when an MCP call fails, times out, or hangs by comparing a direct handler call with the call through the MCP connection.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/arasz/ai-raccoon/mcp-tool-debugging
Install

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.

Any agent
npx skills add Arasz/ai-raccoon --skill mcp-tool-debugging
Clone the repo
git clone --depth 1 https://github.com/Arasz/ai-raccoon

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-tool-debugging

README.md
[![agentmods](https://agentmods.dev/badge/skills/arasz/ai-raccoon/mcp-tool-debugging/github.svg)](https://agentmods.dev/skills/arasz/ai-raccoon/mcp-tool-debugging)
Your own site
<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.

agentmods 80×15 button for mcp-tool-debugging

Your own site · 80×15
<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>
Per session 20 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,270 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. 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.00020 $0.01270
Opus 5.5 $0.00008 $0.00508
Sonnet 5.5 $0.00004 $0.00254
Haiku 4.5 $0.00002 $0.00127

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

Security

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)`.
.ai-badger/skills/learned/software-development/mcp-tool-debugging/SKILL.md · 96 lines

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 with missing 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 a ContextGraph object, AttributeError: 'ContextGraph' object has no attribute 'get'. Look for an adapter (graph.to_kg_dict()) and convert before handing off.

Read the full file on GitHub · 96 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. yesterday First seen · 96 lines · 20 tokens per session scan A 4630b1c6482a

Subscribe to this mod's changes

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.

Related

mcp-tool-debugging compared with skills from other repositories

mcp-tool-debugging next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
mcp-tool-debuggingArasz/ai-raccoonSkill7todayMITA20Claude Code, Codex
debugariaxhan/kernel-claudeSkill16yesterdayMITA64Claude Code
agentsight-bugfixalibaba/anolisaSkill68813d agoApache-2.0A67Claude Code, Codex
ascend-moe-optimizer-auto-traceXiaoLuoLYG/GODSkill1.3k11d agoApache-2.0A170Claude Code, Codex
observabilityPrismer-AI/PrismerCloudSkill1.4k1mo agoMITA67Claude Code
compiler-cb1e8e4bFuRongJun-1999/dsh-memorySkill778todayMITA110Claude Code
code-reviewShy2593666979/AgentChatSkill9433d agoMITA41Claude Code, Codex