| 1 | import { useAppSelector } from "../../../../../redux/hooks"; |
| 2 | |
| 3 | export const McpSectionTooltip = () => { |
| 4 | const mcpServers = useAppSelector( |
| 5 | (store) => store.config.config.mcpServerStatuses, |
| 6 | ); |
| 7 | |
| 8 | const numServers = mcpServers.length; |
| 9 | const numActiveServers = mcpServers.filter( |
| 10 | (server) => server.status === "connected", |
| 11 | ).length; |
| 12 | |
| 13 | return ( |
| 14 | <div> |
| 15 | <span>{`MCP Servers (${numActiveServers}/${numServers} active)`}</span> |
| 16 | </div> |
| 17 | ); |
| 18 | }; |