()
| 22 | return context.reconnectMcpServer; |
| 23 | } |
| 24 | export function useMcpToggleEnabled() { |
| 25 | const context = useContext(MCPConnectionContext); |
| 26 | if (!context) { |
| 27 | throw new Error("useMcpToggleEnabled must be used within MCPConnectionManager"); |
| 28 | } |
| 29 | return context.toggleMcpServer; |
| 30 | } |
| 31 | interface MCPConnectionManagerProps { |
| 32 | children: ReactNode; |
| 33 | dynamicMcpConfig: Record<string, ScopedMcpServerConfig> | undefined; |
no outgoing calls
no test coverage detected