(name: string)
| 15 | * interference with the __ delimiter used in MCP tool names. |
| 16 | */ |
| 17 | export function normalizeNameForMCP(name: string): string { |
| 18 | let normalized = name.replace(/[^a-zA-Z0-9_-]/g, '_') |
| 19 | if (name.startsWith(CLAUDEAI_SERVER_PREFIX)) { |
| 20 | normalized = normalized.replace(/_+/g, '_').replace(/^_|_$/g, '') |
| 21 | } |
| 22 | return normalized |
| 23 | } |
| 24 |
no outgoing calls
no test coverage detected