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

Function call

e2e/src/surfaces/mcp.ts:329–334  ·  view source on GitHub ↗
(name: string, args: Record<string, unknown> = {})

Source from the content-addressed store, hash-verified

327 });
328
329 const call = (name: string, args: Record<string, unknown> = {}) =>
330 Effect.promise(async (): Promise<McpCallResult> => {
331 const raw = await (await client()).callTool({ name, arguments: args });
332 const isError = Boolean((raw as { isError?: boolean })?.isError);
333 return { raw, text: textOf(raw), ok: !isError };
334 });
335
336 return {
337 listTools,

Callers 1

makeMcpSurfaceFunction · 0.70

Calls 3

runtimeFunction · 0.85
clientFunction · 0.70
textOfFunction · 0.70

Tested by

no test coverage detected