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

Function call

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

Source from the content-addressed store, hash-verified

344 });
345
346 const call = (name: string, args: Record<string, unknown> = {}) =>
347 Effect.promise(async (): Promise<McpCallResult> => {
348 const raw = await (await client()).callTool({ name, arguments: args });
349 const isError = Boolean((raw as { isError?: boolean })?.isError);
350 return { raw, text: textOf(raw), ok: !isError };
351 });
352
353 return {
354 listTools,

Callers 1

makeMcpSurfaceFunction · 0.70

Calls 3

runtimeFunction · 0.85
clientFunction · 0.70
textOfFunction · 0.70

Tested by

no test coverage detected