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

Function textOf

e2e/src/surfaces/mcp.ts:189–198  ·  view source on GitHub ↗
(result: unknown)

Source from the content-addressed store, hash-verified

187}
188
189const textOf = (result: unknown): string => {
190 const content = (result as { content?: Array<{ type: string; text?: string }> })?.content;
191 if (Array.isArray(content)) {
192 return content
193 .filter((part) => part.type === "text")
194 .map((part) => part.text)
195 .join("\n");
196 }
197 return typeof result === "string" ? result : JSON.stringify(result);
198};
199
200interface TokenResponse {
201 readonly access_token?: string;

Callers 1

callFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected