MCPcopy Create free account
hub / github.com/Noumena-Network/code / resolveUserFacingName

Function resolveUserFacingName

src/tools/toolInventory.ts:72–79  ·  view source on GitHub ↗
(tool: Tool | undefined)

Source from the content-addressed store, hash-verified

70}
71
72function resolveUserFacingName(tool: Tool | undefined): string | null {
73 if (!tool) return null
74 try {
75 return normalizeUserFacingName(tool.userFacingName(undefined))
76 } catch {
77 return tool.name
78 }
79}
80
81function sortToolNames(names: Iterable<string>): string[] {
82 return sortToolsByPolicy([...new Set(names)].map(name => ({ name }))).map(

Callers 1

buildToolInventoryFunction · 0.85

Calls 1

normalizeUserFacingNameFunction · 0.85

Tested by

no test coverage detected