Finding
When bootc returns invalid JSON, the MCP error is: invalid character 'x' looking for beginning of value
An AI agent can't help the user with that.
Fix
Wrap errors at the system layer:
if err := json.Unmarshal(data, &s); err != nil {
return nil, fmt.Errorf("bootc status returned unparseable JSON (is bootc up to date?): %w", err)
}
Apply to all parse errors in internal/system/*.go.
Labels: enhancement, priority:low
Finding
When bootc returns invalid JSON, the MCP error is:
invalid character 'x' looking for beginning of valueAn AI agent can't help the user with that.
Fix
Wrap errors at the system layer:
Apply to all parse errors in
internal/system/*.go.Labels: enhancement, priority:low