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

Function FormatMCPTrustTarget

ui/runtime.go:454–463  ·  view source on GitHub ↗
(request []map[string]any)

Source from the content-addressed store, hash-verified

452 kind = "mcp_trust_permission"
453 } else if req, ok := normalizeSandboxSetupRequest(event.Metadata["sandbox_setup_request"]); ok {
454 toolName = "wsl-sandbox-setup"
455 targetSummary = sandboxSetupTarget(req, event.Metadata["tool_call"])
456 summaryLines = []string{truncateString(firstNonEmpty(stringFromAny(req["reason"]), targetSummary), 200)}
457 kind = "sandbox_setup_permission"
458 }
459 actionLabels := append([]string{}, luminacli.Phase1PermissionActionLabels...)
460 if kind == "sandbox_setup_permission" {
461 actionLabels = []string{"Install sandbox", "Install sandbox", "Run locally"}
462 }
463 return map[string]any{
464 "kind": kind,
465 "tool_name": toolName,
466 "target_summary": targetSummary,

Callers 2

Calls 3

joinAnySliceFunction · 0.85
stringFromAnyFunction · 0.70
firstNonEmptyFunction · 0.70

Tested by

no test coverage detected