MCPcopy Create free account
hub / github.com/Zoo-Code-Org/Zoo-Code / normalizeForComparison

Function normalizeForComparison

src/utils/mcp-name.ts:27–29  ·  view source on GitHub ↗
(name: string)

Source from the content-addressed store, hash-verified

25 * @returns The normalized name with all hyphens converted to underscores
26 */
27export function normalizeForComparison(name: string): string {
28 return name.replace(/-/g, "_")
29}
30
31/**
32 * Normalize an MCP tool name by converting underscore separators back to hyphens.

Callers 4

mcp-name.spec.tsFile · 0.90
normalizeMcpToolNameFunction · 0.85
isMcpToolFunction · 0.85
toolNamesMatchFunction · 0.85

Calls 1

replaceMethod · 0.65

Tested by

no test coverage detected