renderCompactMCPHealth renders MCP health issues in compact form (only problems)
(health *MCPServerHealth)
| 369 | |
| 370 | // renderCompactMCPHealth renders MCP health issues in compact form (only problems) |
| 371 | func renderCompactMCPHealth(health *MCPServerHealth) { |
| 372 | if health == nil { |
| 373 | return |
| 374 | } |
| 375 | // Only render if there are unhealthy servers |
| 376 | hasIssues := false |
| 377 | for _, server := range health.Servers { |
| 378 | if server.Status != "healthy" { |
| 379 | hasIssues = true |
| 380 | break |
| 381 | } |
| 382 | } |
| 383 | if !hasIssues { |
| 384 | return |
| 385 | } |
| 386 | fmt.Fprintln(os.Stderr, " mcp_health:") |
| 387 | for _, server := range health.Servers { |
| 388 | if server.Status != "healthy" { |
| 389 | fmt.Fprintf(os.Stderr, " %s: %s\n", server.ServerName, server.Status) |
| 390 | } |
| 391 | } |
| 392 | } |
| 393 | |
| 394 | // renderCompactFirewall renders firewall analysis in compact form |
| 395 | func renderCompactFirewall(fa *FirewallAnalysis) { |