MCPcopy
hub / github.com/codeaashu/claude-code / useMcpReconnect

Function useMcpReconnect

src/services/mcp/MCPConnectionManager.tsx:17–23  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

15}
16const MCPConnectionContext = createContext<MCPConnectionContextValue | null>(null);
17export 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}
24export function useMcpToggleEnabled() {
25 const context = useContext(MCPConnectionContext);
26 if (!context) {

Callers 3

MCPRemoteServerMenuFunction · 0.85
MCPReconnectFunction · 0.85
MCPStdioServerMenuFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected