| 511 | |
| 512 | // Helper to get MCP status |
| 513 | const getMcpStatus = (client: MCPServerConnection): 'connected' | 'disabled' | 'pending' | 'needs-auth' | 'failed' => { |
| 514 | if (client.type === 'connected') return 'connected'; |
| 515 | if (client.type === 'disabled') return 'disabled'; |
| 516 | if (client.type === 'pending') return 'pending'; |
| 517 | if (client.type === 'needs-auth') return 'needs-auth'; |
| 518 | return 'failed'; |
| 519 | }; |
| 520 | |
| 521 | // Derive unified items from plugins and MCP servers |
| 522 | const unifiedItems = useMemo(() => { |