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

Function doctor_check_settings

src/agents/roo_code.rs:177–202  ·  view source on GitHub ↗

Check Roo Code's `cline_mcp_settings.json` has tracedecay MCP server registered.

(dc: &mut DoctorCounters, home: &Path)

Source from the content-addressed store, hash-verified

175
176/// Check Roo Code's `cline_mcp_settings.json` has tracedecay MCP server registered.
177fn doctor_check_settings(dc: &mut DoctorCounters, home: &Path) {
178 let settings_path = roo_ext_dir(home).join("settings/cline_mcp_settings.json");
179
180 if !settings_path.exists() {
181 dc.warn(&format!(
182 "{} not found — run `tracedecay install --agent roo-code` if you use Roo Code",
183 settings_path.display()
184 ));
185 return;
186 }
187
188 let settings = load_json_file(&settings_path);
189 let server = settings.get("mcpServers").and_then(|v| v.get("tracedecay"));
190
191 if server.and_then(|v| v.as_object()).is_some() {
192 dc.pass(&format!(
193 "MCP server registered in {}",
194 settings_path.display()
195 ));
196 } else {
197 dc.fail(&format!(
198 "MCP server NOT registered in {} — run `tracedecay install --agent roo-code`",
199 settings_path.display()
200 ));
201 }
202}

Callers 1

healthcheckMethod · 0.70

Calls 6

roo_ext_dirFunction · 0.85
load_json_fileFunction · 0.85
existsMethod · 0.80
warnMethod · 0.80
passMethod · 0.80
failMethod · 0.80

Tested by

no test coverage detected