MCPcopy Create free account
hub / github.com/53AI/53AIHub / encodeMCPReflectSlice

Function encodeMCPReflectSlice

api/controller/mcp_output.go:77–83  ·  view source on GitHub ↗
(v reflect.Value)

Source from the content-addressed store, hash-verified

75}
76
77func encodeMCPReflectSlice(v reflect.Value) []any {
78 result := make([]any, v.Len())
79 for i := 0; i < v.Len(); i++ {
80 result[i] = encodeMCPValue(v.Index(i).Interface())
81 }
82 return result
83}
84
85func encodeMCPReflectMap(v reflect.Value) map[string]any {
86 result := make(map[string]any, v.Len())

Callers 1

encodeMCPValueFunction · 0.85

Calls 1

encodeMCPValueFunction · 0.85

Tested by

no test coverage detected