MCP Preflight — Development skill for Claude Code
Check every MCP server config (Claude Code, Claude Desktop, Cursor, VS Code, Windsurf, Gemini CLI, Codex, OpenCode) for broken JSON, GUI PATH issues, stdout pollution, leaked secrets and failing hands.
How to install MCP Preflight
This entry records only its repository, not the path inside it, so there is no
exact command to give. Open akshay-th/mcp-preflight and copy the folder into
~/.claude/skills/, or the file into ~/.claude/agents/.
What MCP Preflight does
Check every MCP server config (Claude Code, Claude Desktop, Cursor, VS Code, Windsurf, Gemini CLI, Codex, OpenCode) for broken JSON, GUI PATH issues, stdout pollution, leaked secrets and failing handshakes.
Alternatives in Development
- Agentic Stack — One brain, many harnesses 2.2k ★
- Chops — 1,000+ macOS app to browse, edit, and manage skills across Claude Code, Cursor, Codex, Windsurf, and Amp 1.1k ★
- Claudecode — Open Source ClaudeCode Leaked 1k ★
README
mcp-preflight
**One command that checks every MCP server config on your machine and tells you why a server won't start, before your agent fails without saying why.**
MCP servers fail in a handful of recurring ways, and each client reports them differently or not at all:
| Symptom | Real cause | What mcp-preflight reports |
|---|---|---|
| All servers vanished from Cursor or Claude Desktop | One trailing comma in the config file | invalid-config with line and column |
spawn npx ENOENT in Claude Desktop, but it works in your terminal |
Node comes from nvm or Homebrew, and GUI apps get /usr/bin:/bin:/usr/sbin:/sbin |
gui-path, with the absolute path to use instead |
| Server "connected" but no tools, or random JSON errors | The server prints logs to stdout, the protocol channel | stdout-pollution (with --live) |
| Server exits immediately | Missing token or bad argument | live-exit, plus the last lines of its stderr |
Works today, breaks after nvm use 22 |
Command points into a version manager directory | version-manager |
npx fails on Windows |
npx is a .cmd shim, and spawning without a shell fails |
windows-cmd-shim, suggesting the cmd /c fix |
| Agent feels slow and dumb | One server adds 30k tokens of tool definitions to every request | context-heavy, from a token estimate per server |
| Token committed to git | API key pasted into env |
plaintext-secret (masked), and readable-secrets if the file mode is 644 |
Some tools check one client's schema in a browser, and some do live checks for a few clients. `mcp-preflight` covers **all eight major clients, including Codex's TOML and Gemini CLI**. It runs locally with zero dependencies and gives a CI-friendly exit code.
Usage
npx -y github:akshay-th/mcp-preflight # static checks, all clients
npx -y github:akshay-th/mcp-preflight --live # also start each server and run initialize + tools/list
npx -y github:akshay-th/mcp-preflight --live --si
Related Skills
Leaked Prompts
SYSTEM PROMPT TRANSPARENCY FOR ALL - CHATGPT, GEMINI, GROK, CLAUDE, PERPLEXITY, CURSOR, WINDSURF, DEVIN, REPLI
Codeword Silly Goose
A Claude skill that catches leaked secrets, refuses to repeat them, and calls you a silly goose until you rota
ClaudeG
Claude Code skill: guard rails against weakened tests, unverified 'fixed' claims, placeholders, destructive co
Hunt Secrets
Hunt leaked credentials for an ingested program (verified-only trufflehog + GH code search + noseyparker histo
Jt Launch
Launch — preflight, then a person launches in the panel and either keeps the client or hands the site over
Agentic Dev
Turns a checked-in plan.md into reviewed pull requests. Three cron-driven stages — slice into issues, write fa
Related Agents
10x Tool Calls
Cursor and Windsurf meter usage by requests and tool calls rather than tokens, which means a finished or stall
Cycle Clerk
Runs one scripts/cycle.sh or scripts/journal.sh command and returns its last stdout line verbatim. The Workflo
Gemini Subagent
Dispatches a prompt to gemini-cli (Google's parallel agent CLI) via scripts/gemini/invoke.sh and returns its s