()
| 15 | } |
| 16 | const MCPConnectionContext = createContext<MCPConnectionContextValue | null>(null); |
| 17 | export function useMcpReconnect() { |
| 18 | const context = useContext(MCPConnectionContext); |
| 19 | if (!context) { |
| 20 | throw new Error("useMcpReconnect must be used within MCPConnectionManager"); |
| 21 | } |
| 22 | return context.reconnectMcpServer; |
| 23 | } |
| 24 | export function useMcpToggleEnabled() { |
| 25 | const context = useContext(MCPConnectionContext); |
| 26 | if (!context) { |
no outgoing calls
no test coverage detected