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

Function describeTools

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

Source from the content-addressed store, hash-verified

403 });
404
405 const describeTools = () =>
406 Effect.promise(async (): Promise<ReadonlyArray<McpToolDef>> => {
407 const defs = await (await runtime()).listTools(serverName, callOptions);
408 connected = true;
409 return defs.map((tool: { name: string; description?: string }) => ({
410 name: tool.name,
411 description: tool.description ?? "",
412 }));
413 });
414
415 const call = (name: string, args: Record<string, unknown> = {}) =>
416 Effect.promise(async (): Promise<McpCallResult> => {

Callers

nothing calls this directly

Calls 1

runtimeFunction · 0.85

Tested by

no test coverage detected