Health¶
health
¶
health.py — MCP server health probing via JSON-RPC handshake and environment diagnostics.
CheckResult
¶
Single diagnostic check result.
Create a check result.
| PARAMETER | DESCRIPTION |
|---|---|
label
|
Human-readable description of what was checked.
TYPE:
|
passed
|
Whether the check passed.
TYPE:
|
warning
|
If
TYPE:
|
fix_hint
|
Actionable command or instruction to resolve the issue.
TYPE:
|
Source code in src/crux_cli/health.py
probe_mcp_server
¶
Probe an MCP server via MCP initialize + tools/list handshake. Returns (status, reason).
Source code in src/crux_cli/health.py
probe_mcp_server_detailed
¶
Extended probe returning a dict with status, detail, tools_count, server_info.
Source code in src/crux_cli/health.py
26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 | |
check_python_version
¶
Check that the running Python meets the minimum version.
Source code in src/crux_cli/health.py
check_tool_installed
¶
Check that an external tool is on PATH.
Source code in src/crux_cli/health.py
check_directory_structure
¶
Verify that essential Crux directories exist.
Source code in src/crux_cli/health.py
check_registry_valid
¶
Verify the registry JSON is valid and parseable.
Source code in src/crux_cli/health.py
check_mcp_sources_present
¶
Check that cloned MCP source directories exist on disk.
Source code in src/crux_cli/health.py
check_build_artifacts
¶
Check that MCPs with build_cmd have their build artifacts.
Source code in src/crux_cli/health.py
check_crux_in_path
¶
Check that the crux binary is on PATH.
run_doctor_checks
¶
Run all doctor checks and return a flat list of results.