Skip to content

About

Validate JSON MCP capability reports from files or stdin.

Topics

Resources

Contributing

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

mcp-server-doctor

mcp-server-doctor validates JSON MCP capability reports from a file or stdin and emits pass/fail output as text or JSON.

0.1.2 Highlights

  • CI users can now pass --strict to treat warnings as validation failures.
  • JSON summaries include the active strict-mode setting for auditability.

Install

python -m pip install .

CLI

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.json

Exit codes:

  • 0: validation passed
  • 1: validation failed, or warnings were present with --strict
  • 2: invalid input, unreadable file, or invalid JSON

Report Shape

The validator expects a JSON object that may include:

  • capabilities: object with tools, resources, and prompts booleans
  • tools: list of objects with name and inputSchema
  • resources: list of objects with uri
  • prompts: list of objects with name

Development

python -m unittest discover -s tests

About

Validate JSON MCP capability reports from files or stdin.

Topics

Resources

Contributing

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages