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

Function call

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

Source from the content-addressed store, hash-verified

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

Callers 1

Calls 2

sendMethod · 0.65
getMethod · 0.65

Tested by

no test coverage detected