mcpField
C
ctx-doctor

ctx-doctor

github.com/mksgluAgent workflows32.7k1.6k installsUpdated today
Repository

About ctx-doctor

ctx-doctor is a skill for running Context Mode diagnostics and presenting the status report in the conversation. It uses the `ctx_doctor` MCP tool, with a CLI fallback if that call fails.

Key features

  1. 01Run server-side diagnostics
  2. 02Show plain-text status results
  3. 03Use CLI fallback if MCP fails

Use cases

  1. 01Check Context Mode status
  2. 02Display diagnostic results across clients

MCP support

Calls the `ctx_doctor` MCP tool to run checks server-side; the skill documents a CLI fallback if the tool call fails.

Install

Copy the command and run it in a terminal.

$npx skills add https://github.com/mksglu/context-mode --skill ctx-doctor

After installing, type/ctx-doctorin Claude Code to confirm it loaded.

Details

From the project README

Context Mode Doctor

Run diagnostics and display results directly in the conversation.

Instructions

  1. Call the ctx_doctor MCP tool directly. It runs all checks server-side and returns a plain-text status report.
  2. Display the results verbatim — they are already formatted with plain-text status prefixes: [OK] PASS, [FAIL] FAIL, [WARN] WARN. Renderer-safe (no markdown task-list syntax) for cross-client compatibility (e.g., Z.ai GLM).
  3. Fallback (only if MCP tool call fails): Derive the plugin root from this skill's base directory (go up 2 levels — remove /skills/ctx-doctor), then run with Bash:
    CLI="<PLUGIN_ROOT>/cli.bundle.mjs"; [ ! -f "$CLI" ] && CLI="<PLUGIN_ROOT>/build/cli.js"; node "$CLI" doctor
    
    Re-display results verbatim with the same [OK]/[FAIL]/[WARN] prefixes.

Comments

Markdown supported