From mokata
Repairs the mokata MCP server when its tools aren't connecting — checks registration, fixes it, and prompts restart of Claude Code.
How this skill is triggered — by the user, by Claude, or both
Slash command
/mokata:mcp-repairWhen to use
Engage when the user reports mokata's MCP server or tools aren't working — e.g. "mokata mcp isn't working / isn't connected / failed to start", "the mokata MCP server won't start", "mokata's tools are missing / don't show up / aren't available", or "/mcp doesn't list mokata". This REPAIRS an already-installed mokata by re-checking and re-writing its Claude Code registration, then tells the user to restart Claude Code. Do NOT engage for first-time setup or initial wiring — use /mokata:setup for that; this is repair of an existing install, not initial installation.
The summary Claude sees in its skill listing — used to decide when to auto-load this skill
> **mokata Agent Skill.** This is mokata's `mcp-repair` capability, surfaced so Claude can engage it
mokata Agent Skill. This is mokata's
mcp-repaircapability, surfaced so Claude can engage it automatically when the moment fits. It runs the SAME protocol as the/mokata:mcp-repaircommand, from one shared source — follow that protocol directly here; do not hand off to a parallel flow. mokata's non-negotiables still hold: durable writes are human-gated (preview, then explicit approval), and this capability's own gate is never silently skipped.
⛭ mokata mcp-repair active — gate: re-check and rewrite the MCP registration, then you restart Claude Code
The user thinks mokata's MCP tools aren't connecting. Your job: diagnose → repair → re-verify →
report, using ONLY the existing mokata mcp CLI (it already does the real handshake and the
merge-safe, idempotent registration). Then be honest about the one thing you cannot do from inside
the session — restart Claude Code — because a newly-registered MCP server only loads on the
next Claude Code launch.
${CLAUDE_PLUGIN_ROOT} is NOT expanded inside command bodies, so discover the bundled engine:
Read the cached plugin root: cat ~/.mokata/plugin-root → ROOT.
If that file is missing/empty, search the Claude Code plugins directory for a mokata plugin
containing src/mokata/__init__.py and set ROOT to it. (If a mokata CLI is on PATH, use
it directly.)
Build the engine command with the absolute interpreter:
PY="$(command -v python3 || command -v python)"
ENGINE="PYTHONPATH=\"$ROOT/src\" \"$PY\" -m mokata"
Run the real initialize handshake against whatever is currently registered:
eval "$ENGINE mcp status"
mokata-mcp: CONNECTED ✓ → nothing is broken. Tell the user the server is already
connected and stop (no write). If they still don't see the tools, the fix is almost always a
restart of Claude Code — say so.NOT CONNECTED ✗ (…) / NOT REGISTERED ✗ → note the specific cause the command
printed (e.g. not_registered, command_not_found, sdk_absent, timeout) and go to step 3.
sdk_absent, the repair is NOT a re-registration — the MCP SDK needs
Python ≥ 3.10. Relay the command's own one-line fix (pip install -U mokata on ≥ 3.10) and
stop; do not pretend install will fix it.mokata mcp install writes/repairs the Claude Code registration (.mcp.json, or
~/.claude.json for user scope), resolving mokata-mcp to an absolute path. It is merge-safe
(never touches your other MCP servers or keys) and idempotent (safe to run again). Tell the
user you're about to repair the registration, then run it:
eval "$ENGINE mcp install"
# user-scope registration instead of this project only:
# eval "$ENGINE mcp install --scope user"
Confirm the repair actually took, using the same handshake:
eval "$ENGINE mcp status"
In one short block, tell the user plainly:
/mcp should list
mokata as connected.If the re-check still fails after a good install, do NOT loop — report the exact failure code and
the one-line fix the command gave, and let the user act on it.
| Excuse | Reality |
|---|---|
| "I'll set it up fresh from scratch." | This is REPAIR, not first-time setup — use /mokata:setup to install. |
| "I'll rewrite the config file directly." | The registration rewrite is a gated config write, not a silent edit. |
| "It's fixed — no need to restart." | Name the one step left: the user restarts Claude Code so it re-reads the registration. |
Evidence, not "seems right" — check every box or say which is unmet and why:
CAN
MUST NOT
DEPENDS ON
Grounding:
(gate: …)boundaries are enforced by that gate in code;(advisory)ones are protocol discipline this skill follows, not a hard block.
npx claudepluginhub jasgujral/mokata-oss --plugin mokataDiagnoses and fixes MCP server connection issues between Claude Code, Claude Desktop, and MCP servers. Covers Windows argument parsing, authentication failures, transport issues, and platform-specific debugging.
Guides MCP server integration in Claude Code plugins via .mcp.json or plugin.json configs for stdio, SSE, HTTP types, enabling external services as tools.
Installs and configures MCP servers for the insight-wave ecosystem — clones git-based MCPs, patches Claude Desktop config, and verifies everything works without manual JSON editing.