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

Method disconnectMCP

agent/loop.go:277–286  ·  view source on GitHub ↗
(ctx context.Context)

Source from the content-addressed store, hash-verified

275
276 event := NewStreamEvent("permission_needed", "mcp_project_trust", map[string]any{
277 "mcp_trust_request": pending,
278 "dangerous": true,
279 "risk": "high",
280 })
281 if !sendStream(ctx, out, event) {
282 e.clearMCPTrustFuture(ch)
283 return
284 }
285
286 granted := false
287 select {
288 case granted = <-ch:
289 case <-ctx.Done():

Callers 3

ResetMethod · 0.95
ShutdownMethod · 0.95
ClearMCPMethod · 0.95

Calls 1

DisconnectMethod · 0.80

Tested by

no test coverage detected