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

Function listTools

e2e/src/surfaces/mcp.ts:340–344  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

338 };
339
340 const listTools = () =>
341 Effect.promise(async () => {
342 const listed = await (await client()).listTools();
343 return listed.tools.map((tool) => tool.name);
344 });
345
346 const call = (name: string, args: Record<string, unknown> = {}) =>
347 Effect.promise(async (): Promise<McpCallResult> => {

Callers

nothing calls this directly

Calls 2

runtimeFunction · 0.85
clientFunction · 0.70

Tested by

no test coverage detected