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

Function call

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

Source from the content-addressed store, hash-verified

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

Callers 1

Calls 2

sendMethod · 0.65
getMethod · 0.65

Tested by

no test coverage detected