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

Function callNonCodemodeTool

tests/non-codemode-worker.test.ts:63–67  ·  view source on GitHub ↗

POST a non-codemode tools/call to the real worker.

(token: string, name: string, args: Record<string, unknown>)

Source from the content-addressed store, hash-verified

61 inputSchema: { properties?: Record<string, unknown>; required?: string[] }
62 }>
63 }
64 }
65 return result.result?.tools ?? []
66}
67
68/** POST a non-codemode tools/call to the real worker. */
69async function callNonCodemodeTool(token: string, name: string, args: Record<string, unknown>) {
70 const base = mcpToolCallRequest(token, name, args)

Callers 1

Calls 3

mcpToolCallRequestFunction · 0.90
parseMcpResultFunction · 0.90
fetchMethod · 0.65

Tested by

no test coverage detected