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

Function call

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

Source from the content-addressed store, hash-verified

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

Callers 1

Calls 2

sendMethod · 0.65
getMethod · 0.65

Tested by

no test coverage detected