(dc: &mut DoctorCounters, home: &Path)
| 179 | // --------------------------------------------------------------------------- |
| 180 | |
| 181 | fn doctor_check_settings(dc: &mut DoctorCounters, home: &Path) { |
| 182 | let config_path = kilo_config_path(home); |
| 183 | |
| 184 | if !config_path.exists() { |
| 185 | dc.warn(&format!( |
| 186 | "{} not found — run `tracedecay install --agent kilo` if you use Kilo CLI", |
| 187 | config_path.display() |
| 188 | )); |
| 189 | return; |
| 190 | } |
| 191 | |
| 192 | let settings = load_jsonc_file(&config_path); |
| 193 | let server = settings.get("mcp").and_then(|v| v.get("tracedecay")); |
| 194 | |
| 195 | if server.and_then(|v| v.as_object()).is_some() { |
| 196 | dc.pass(&format!( |
| 197 | "MCP server registered in {}", |
| 198 | config_path.display() |
| 199 | )); |
| 200 | } else { |
| 201 | dc.fail(&format!( |
| 202 | "MCP server NOT registered in {} — run `tracedecay install --agent kilo`", |
| 203 | config_path.display() |
| 204 | )); |
| 205 | } |
| 206 | } |
no test coverage detected