MCPcopy Index your code
hub / github.com/codeaashu/claude-code / normalizeNameForMCP

Function normalizeNameForMCP

src/services/mcp/normalization.ts:17–23  ·  view source on GitHub ↗
(name: string)

Source from the content-addressed store, hash-verified

15 * interference with the __ delimiter used in MCP tool names.
16 */
17export 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

Callers 14

isComputerUseMCPServerFunction · 0.85
findMcpServerConnectionFunction · 0.85
client.tsFile · 0.85
persistBlobToTextBlockFunction · 0.85
processMCPResultFunction · 0.85
filterToolsByServerFunction · 0.85
commandBelongsToServerFunction · 0.85
excludeToolsByServerFunction · 0.85
getMcpPrefixFunction · 0.85
buildMcpToolNameFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected