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

Function call

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

Source from the content-addressed store, hash-verified

267 };
268 await clientTransport.start();
269 const call = async (id: number, method: string, params: Record<string, unknown>) => {
270 await clientTransport.send({ jsonrpc: "2.0", id, method, params });
271 await vi.waitFor(() => expect(responses.has(id)).toBe(true));
272 return responses.get(id) ?? {};
273 };
274
275 const listed = (await call(1, "tools/list", {})) as {
276 tools: Array<{ name: string }>;

Callers 1

Calls 2

sendMethod · 0.65
getMethod · 0.65

Tested by

no test coverage detected