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

Function call

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

Source from the content-addressed store, hash-verified

338 });
339
340 const call = (name: string, args: Record<string, unknown> = {}) =>
341 Effect.promise(async (): Promise<McpCallResult> => {
342 const raw = await (await client()).callTool({ name, arguments: args });
343 const isError = Boolean((raw as { isError?: boolean })?.isError);
344 return { raw, text: textOf(raw), ok: !isError };
345 });
346
347 return {
348 listTools,

Callers 1

makeMcpSurfaceFunction · 0.70

Calls 3

runtimeFunction · 0.85
clientFunction · 0.70
textOfFunction · 0.70

Tested by

no test coverage detected