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

Function stringPtrValue

tools/mcp.go:432–437  ·  view source on GitHub ↗
(value *string)

Source from the content-addressed store, hash-verified

430 return out
431 case "array":
432 items := mapFromAny(schema["items"])
433 if len(items) == 0 {
434 return value
435 }
436 switch typed := value.(type) {
437 case []any:
438 out := make([]any, 0, len(typed))
439 for _, item := range typed {
440 out = append(out, coerceMCPValueForSchema(item, items, root))

Callers 1

trustedMCPConfigsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected