mcp-server-doctor validates JSON MCP capability reports from a file or stdin and emits pass/fail output as text or JSON.
- CI users can now pass
--strictto treat warnings as validation failures. - JSON summaries include the active strict-mode setting for auditability.
python -m pip install .mcp-server-doctor report.json
cat report.json | mcp-server-doctor --format json
cat report.json | mcp-server-doctor --format json --strict
python -m mcp_server_doctor --format text < report.jsonExit codes:
0: validation passed1: validation failed, or warnings were present with--strict2: invalid input, unreadable file, or invalid JSON
The validator expects a JSON object that may include:
capabilities: object withtools,resources, andpromptsbooleanstools: list of objects withnameandinputSchemaresources: list of objects withuriprompts: list of objects withname
python -m unittest discover -s tests