(input map[string]any)
| 49 | } |
| 50 | |
| 51 | func encodeMCPMap(input map[string]any) map[string]any { |
| 52 | result := make(map[string]any, len(input)) |
| 53 | for key, value := range input { |
| 54 | if isMCPIDField(key) { |
| 55 | if encodedValue, ok := encodeMCPIDValue(value); ok { |
| 56 | result[key] = encodedValue |
| 57 | continue |
| 58 | } |
| 59 | if encodedValues, ok := encodeMCPIDSlice(value); ok { |
| 60 | result[key] = encodedValues |
| 61 | continue |
| 62 | } |
| 63 | } |
| 64 | result[key] = encodeMCPValue(value) |
| 65 | } |
| 66 | return result |
| 67 | } |
| 68 | |
| 69 | func encodeMCPSlice(input []any) []any { |
| 70 | result := make([]any, len(input)) |
no test coverage detected