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

Function indexToolInventory

src/tools/toolInventory.ts:146–150  ·  view source on GitHub ↗
(
  entries: readonly ToolInventoryEntry[],
)

Source from the content-addressed store, hash-verified

144}
145
146export function indexToolInventory(
147 entries: readonly ToolInventoryEntry[],
148): Map<string, ToolInventoryEntry> {
149 return new Map(entries.map(entry => [entry.name, entry]))
150}
151
152export function summarizeToolInventory(
153 entries: readonly ToolInventoryEntry[],

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected