Hmbown/CodeWhale · error
Failed to parse MCP config {}; file contents were omitted
Error message
Failed to parse MCP config {}; file contents were omitted What it means
Error "Failed to parse MCP config {}; file contents were omitted" thrown in Hmbown/CodeWhale.
Source
Thrown at crates/tui/src/lib.rs:8735
" args: serve --mcp{}",
workspace.map_or(String::new(), |ws| format!(" --workspace {ws}"))
);
println!();
println!("Tip: Use `codewhale mcp validate` to test the connection.");
println!(" Use `codewhale serve --http` for the HTTP/SSE runtime API instead.");
Ok(())
}
}
}
fn load_mcp_config(path: &Path) -> Result<McpConfig> {
if !path.exists() {
return Ok(McpConfig::default());
}
let contents = std::fs::read_to_string(path)
.map_err(|e| anyhow::anyhow!("Failed to read MCP config {}: {}", path.display(), e))?;
let cfg: McpConfig = serde_json::from_str(&contents).map_err(|_| {
anyhow::anyhow!(
"Failed to parse MCP config {}; file contents were omitted",
codewhale_config::quote_os_path(path)
)
})?;
Ok(cfg)
}
/// Diagnostic status for an MCP server entry.
#[derive(Debug)]
enum McpServerDoctorStatus {
Ok(String),
Warning(String),
Error(String),
}
impl McpServerDoctorStatus {
fn legacy_status(&self) -> &'static str {
match self {View on GitHub (pinned to 8880682c63)
When it happens
Trigger: Thrown at crates/tui/src/lib.rs:8735 when the library encounters an invalid state.
Common situations: See trigger scenarios.
Understand the failure class
- Parsing and encoding errors: unexpected token, malformed input — why parsers reject input and how to find the real culprit.
AI-assisted analysis of Hmbown/CodeWhale@8880682c63 (2026-08-16).
Data as JSON: /api/errors/a3ba90ddbf6ca73f.
Report an issue: GitHub.