claude doctor: System Diagnostics and Health Checks
claude doctor: Diagnostic Tool for Claude Code
When encountering authentication issues, tool execution failures, or slow network connections, run claude doctor to analyze system health.
Running Diagnostics
claude doctor
What It Checks
- Authentication Status: Verifies valid API keys or OAuth session tokens.
- Node & Environment: Checks Node.js runtime version compatibility.
- MCP Server Connectivity: Tests response times for all registered Model Context Protocol endpoints.
- Git Repository State: Ensures permissions for reading/writing local workspace files.
Output Example
[✓] API Key status: Valid
[✓] Node.js version: v20.11.0 (Supported)
[✓] Git Repository: /var/www/html/magento
[!] MCP Server 'postgres': Connection timed out (Check DB host)