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

Function encodeMCPSlice

api/controller/mcp_output.go:69–75  ·  view source on GitHub ↗
(input []any)

Source from the content-addressed store, hash-verified

67}
68
69func encodeMCPSlice(input []any) []any {
70 result := make([]any, len(input))
71 for i, item := range input {
72 result[i] = encodeMCPValue(item)
73 }
74 return result
75}
76
77func encodeMCPReflectSlice(v reflect.Value) []any {
78 result := make([]any, v.Len())

Callers 1

encodeMCPValueFunction · 0.85

Calls 1

encodeMCPValueFunction · 0.85

Tested by

no test coverage detected