extend: mcp-doctor — flag MCP servers that won't start (health complement to mcp-audit)#6
Open
deemwario wants to merge 1 commit into
Open
extend: mcp-doctor — flag MCP servers that won't start (health complement to mcp-audit)#6deemwario wants to merge 1 commit into
deemwario wants to merge 1 commit into
Conversation
The health complement to mcp-audit (which covers SECURITY). A configured MCP server whose command isn't installed fails SILENTLY — Claude Code just shows no tools from it, with no error. mcp-doctor reads your mcpServers and answers 'will this start?' Flags: command not on PATH / not an executable (CMD_NOT_FOUND), a server with neither command nor url (NO_COMMAND_OR_URL), malformed remote url (BAD_URL), referenced env var not set (ENV_UNSET — name only, value never read), and npx/uvx/bunx lazy-fetch (LOW). Bad JSON shapes become findings, never tracebacks. Exit 0/1/2; --json for CI. Static by construction — resolves the command + validates config; never starts a server or hits the network, and says so. Does NOT duplicate mcp-audit's secret/egress checks. - single-file python3, stdlib only; test_mcp-doctor.sh 16/16 green. - house-style README with the deemwar.com/contact CTA. MIT.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Extend:
mcp-doctor— flag MCP servers that won't start#ossengine cycle 15 —
extend the family, additive, no owner gate. The health complement tomcp-audit.Why
mcp-auditcovers MCP security (secrets, egress). Nothing covered health: a configured MCP server whose command isn't installed fails silently — Claude Code just shows no tools from it, no error.mcp-doctorreads yourmcpServersand answers "will this start?"What it does (static — never starts a server or hits the network)
CMD_NOT_FOUND(HIGH) —commandnot on PATH and not an executable fileNO_COMMAND_OR_URL(HIGH) — server with neither a command nor a urlBAD_URL(HIGH) — malformed remote server urlENV_UNSET(MED, heuristic) — a referenced env var isn't set (name only — value never read/printed)LAZY_FETCH(LOW, heuristic) —npx/uvx/bunxfetched on first runExit
0/1/2;--jsonfor CI; always-printed honest disclaimer. Does not duplicate mcp-audit's security checks.Verification (independently re-run)
test_mcp-doctor.sh— 16/16 green.--json→{source, findings, summary, disclaimer}.deemwar.com/contactCTA. MIT.Self-discovering CI (PR #2) picks up
test_mcp-doctor.shon merge.🤖 Generated with Claude Code