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

Function describeTools

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

Source from the content-addressed store, hash-verified

392 });
393
394 const describeTools = () =>
395 Effect.promise(async (): Promise<ReadonlyArray<McpToolDef>> => {
396 const defs = await (await runtime()).listTools(serverName, callOptions);
397 connected = true;
398 return defs.map((tool: { name: string; description?: string }) => ({
399 name: tool.name,
400 description: tool.description ?? "",
401 }));
402 });
403
404 const call = (name: string, args: Record<string, unknown> = {}) =>
405 Effect.promise(async (): Promise<McpCallResult> => {

Callers

nothing calls this directly

Calls 1

runtimeFunction · 0.85

Tested by

no test coverage detected