MCPcopy Create free account
hub / github.com/cloudflare/mcp / pathToToolName

Function pathToToolName

src/openapi.ts:55–57  ·  view source on GitHub ↗
(method: string, path: string)

Source from the content-addressed store, hash-verified

53 * e.g. GET /accounts/{account_id}/workers/scripts → get_accounts_workers_scripts
54 */
55export function pathToToolName(method: string, path: string): string {
56 return `${method.toLowerCase()}_${pathToToolNameSuffix(path)}`
57}
58
59function pathToToolNameSuffix(path: string): string {
60 let cleaned = path

Callers 2

Calls 1

pathToToolNameSuffixFunction · 0.85

Tested by

no test coverage detected