doctor
Diagnose database MCP setup issues that connectivity checks miss, including stale processes, config typos, exposed secrets, and dead client paths. Returns actionable findings with fixes.
Instructions
Diagnose the whole setup, not just connectivity — use when something is misbehaving and check_database alone doesn't explain why.
Runs every diagnostic: stale running server processes, newer PyPI release, connections.json key typos/types, secrets exposure (permissions, git), MCP client entries pointing at dead paths, and per-database connectivity with a credential-free fallback-port identity probe.
Returns meta and findings, each with check, status (ok|warn|fail|skipped),
detail and suggested_action, where suggested_action is machine-actionable:
reconnect_client, upgrade_package, swap_primary_port, fix_permissions, fix_config,
repair_client_config, fix_connection, install_doctor_extra, run_setup, report_bug,
or none — every finding that states a remedy names one. Fix what you can; report
the rest to the user verbatim. Output is sanitized — never contains DSNs, hosts,
or credentials. offline=true skips the PyPI lookup.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "doctor"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| offline | No | Skip the online check for a newer release on PyPI. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| meta | Yes | ||
| findings | Yes |