(v reflect.Value)
| 75 | } |
| 76 | |
| 77 | func 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 | |
| 85 | func encodeMCPReflectMap(v reflect.Value) map[string]any { |
| 86 | result := make(map[string]any, v.Len()) |
no test coverage detected