(state: McpServerState)
| 35 | } |
| 36 | |
| 37 | function statusIcon(state: McpServerState): string { |
| 38 | switch (state.status) { |
| 39 | case "connected": |
| 40 | return "✓" |
| 41 | case "connecting": |
| 42 | return "⋯" |
| 43 | case "failed": |
| 44 | return "✗" |
| 45 | case "needs-auth": |
| 46 | return "△" |
| 47 | case "disabled": |
| 48 | return "○" |
| 49 | } |
| 50 | } |
| 51 | |
| 52 | /** Build the action list for a server based on its current state. */ |
| 53 | function buildActions(state: McpServerState): string[] { |
no outgoing calls
no test coverage detected