doctor
Diagnose MCP database setups when connectivity checks miss the cause: scan processes, package updates, config typos, secret permissions, client paths, and per-database access for actionable 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 findings as {check, status: ok|warn|fail|skipped, detail, 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 |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |