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

Function getNonCodemodeToolMap

src/isolate-cache.ts:69–76  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

67
68/** Name lookup used by lazy non-Code-Mode tools/call dispatch. */
69export async function getNonCodemodeToolMap(): Promise<Map<string, NonCodemodeTool>> {
70 const tools = await getNonCodemodeTools()
71 if (nonCodemodeToolMap && nonCodemodeToolMapSource === tools) return nonCodemodeToolMap
72
73 nonCodemodeToolMap = new Map(tools.map((tool) => [tool.name, tool]))
74 nonCodemodeToolMapSource = tools
75 return nonCodemodeToolMap
76}
77
78/** The product list backing the `search` tool description. Empty if unseeded. */
79export async function getProducts(): Promise<string[]> {

Callers 1

registerNonCodemodeToolsFunction · 0.90

Calls 1

getNonCodemodeToolsFunction · 0.85

Tested by

no test coverage detected