MCPcopy Create free account
hub / github.com/GongShichen/LuminaCode / Reset

Method Reset

agent/loop.go:318–332  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

316 e.mcpInitialized = false
317}
318
319func (e *CoreExecutionEngine) clearMCPTrustFuture(ch chan bool) {
320 e.mu.Lock()
321 if e.mcpTrustCh == ch {
322 e.mcpTrustCh = nil
323 }
324 e.mu.Unlock()
325}
326
327func (e *CoreExecutionEngine) disconnectMCP(ctx context.Context) {
328 e.mcpMu.Lock()
329 defer e.mcpMu.Unlock()
330 clients, _ := e.mcpContext["mcp_clients"].(map[string]*mcp.McpClient)
331 for _, client := range clients {
332 client.Disconnect(ctx)
333 }
334 e.mcpContext = nil
335 e.mcpInitialized = false

Calls 3

disconnectMCPMethod · 0.95
ClearAllMethod · 0.80
CancelMethod · 0.45