MCPcopy Create free account
hub / github.com/ScriptedAlchemy/tracedecay / doctor_check_settings

Function doctor_check_settings

src/agents/kilo.rs:181–206  ·  view source on GitHub ↗
(dc: &mut DoctorCounters, home: &Path)

Source from the content-addressed store, hash-verified

179// ---------------------------------------------------------------------------
180
181fn 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}

Callers 1

healthcheckMethod · 0.70

Calls 6

kilo_config_pathFunction · 0.85
load_jsonc_fileFunction · 0.85
existsMethod · 0.80
warnMethod · 0.80
passMethod · 0.80
failMethod · 0.80

Tested by

no test coverage detected