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

Function isMcpTool

src/utils/mcp-name.ts:74–77  ·  view source on GitHub ↗
(toolName: string)

Source from the content-addressed store, hash-verified

72 * @returns true if the tool name starts with "mcp--" or "mcp__", false otherwise
73 */
74export function isMcpTool(toolName: string): boolean {
75 const normalized = normalizeForComparison(toolName)
76 return normalized.startsWith(`${MCP_TOOL_PREFIX}__`)
77}
78
79/**
80 * Sanitize a name to be safe for use in API function names.

Callers 5

mcp-name.spec.tsFile · 0.90
mapResponseToolsMethod · 0.90
buildRequestBodyMethod · 0.90
buildRequestBodyMethod · 0.90
convertToolsForOpenAIFunction · 0.90

Calls 1

normalizeForComparisonFunction · 0.85

Tested by

no test coverage detected