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

Function textOf

e2e/cloud/mcp-client-sessions.test.ts:53–57  ·  view source on GitHub ↗
(result: { content?: unknown; toolResult?: unknown })

Source from the content-addressed store, hash-verified

51};
52
53const textOf = (result: { content?: unknown; toolResult?: unknown }): string =>
54 ((result.content ?? []) as Array<{ type: string; text?: string }>)
55 .filter((part) => part.type === "text")
56 .map((part) => part.text)
57 .join("\n");
58
59const closeQuietly = (connected: Connected): Effect.Effect<void> =>
60 Effect.promise(() => connected.client.close().catch(() => undefined));

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected