MCPcopy Create free account
hub / github.com/codeaashu/claude-code / byName

Function byName

src/tools.ts:362–362  ·  view source on GitHub ↗
(a: Tool, b: Tool)

Source from the content-addressed store, hash-verified

360 // Avoid Array.toSorted (Node 20+) — we support Node 18. builtInTools is
361 // readonly so copy-then-sort; allowedMcpTools is a fresh .filter() result.
362 const byName = (a: Tool, b: Tool) => a.name.localeCompare(b.name)
363 return uniqBy(
364 [...builtInTools].sort(byName).concat(allowedMcpTools.sort(byName)),
365 'name',

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected