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

Function stringValueFromMap

tools/mcp.go:425–430  ·  view source on GitHub ↗
(m map[string]any, key, fallback string)

Source from the content-addressed store, hash-verified

423 for key, rawValue := range valueMap {
424 if propSchema := mapFromAny(props[key]); len(propSchema) > 0 {
425 out[key] = coerceMCPValueForSchema(rawValue, propSchema, root)
426 } else {
427 out[key] = rawValue
428 }
429 }
430 return out
431 case "array":
432 items := mapFromAny(schema["items"])
433 if len(items) == 0 {

Callers 2

ExecuteMethod · 0.85
RegisterMCPToolsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected