(name string)
| 230 | } |
| 231 | |
| 232 | func sanitizeMCPModelName(name string) string { |
| 233 | safe := regexp.MustCompile(`[^a-zA-Z0-9]`).ReplaceAllString(name, "_") |
| 234 | if safe == "" { |
| 235 | return "McpDynamicInput" |
| 236 | } |
| 237 | if safe[0] >= '0' && safe[0] <= '9' { |
| 238 | return "_" + safe |
| 239 | } |
| 240 | return safe |
| 241 | } |
| 242 | |
| 243 | func mcpFieldTitle(name string) string { |
| 244 | if name == "" { |
no outgoing calls
no test coverage detected