MCPcopy Create free account
hub / github.com/UsefulSoftwareCo/executor / call

Function call

packages/hosts/mcp/src/artifacts-tools.test.ts:276–280  ·  view source on GitHub ↗
(id: number, method: string, params: Record<string, unknown>)

Source from the content-addressed store, hash-verified

274 };
275 await clientTransport.start();
276 const call = async (id: number, method: string, params: Record<string, unknown>) => {
277 await clientTransport.send({ jsonrpc: "2.0", id, method, params });
278 await vi.waitFor(() => expect(responses.has(id)).toBe(true));
279 return responses.get(id) ?? {};
280 };
281
282 const listed = (await call(1, "tools/list", {})) as {
283 tools: Array<{ name: string }>;

Callers 1

Calls 2

sendMethod · 0.65
getMethod · 0.65

Tested by

no test coverage detected