MCPcopy Create free account
hub / github.com/github/gh-aw / renderCompactMCPHealth

Function renderCompactMCPHealth

pkg/cli/audit_report_render.go:371–392  ·  view source on GitHub ↗

renderCompactMCPHealth renders MCP health issues in compact form (only problems)

(health *MCPServerHealth)

Source from the content-addressed store, hash-verified

369
370// renderCompactMCPHealth renders MCP health issues in compact form (only problems)
371func 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
395func renderCompactFirewall(fa *FirewallAnalysis) {

Callers 1

renderConsoleFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected