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

Function textOf

e2e/cloud/mcp-browser-resume-page.test.ts:39–48  ·  view source on GitHub ↗
(result: unknown)

Source from the content-addressed store, hash-verified

37const emailOf = (identity: Identity): string => identity.credentials?.email ?? identity.label;
38
39const textOf = (result: unknown): string =>
40 (
41 ((result as { readonly content?: unknown }).content ?? []) as ReadonlyArray<{
42 readonly type: string;
43 readonly text?: string;
44 }>
45 )
46 .filter((part) => part.type === "text")
47 .map((part) => part.text ?? "")
48 .join("\n");
49
50const openBrowserApprovalSession = async (mcpUrl: string, bearer: string): Promise<Connected> => {
51 const url = new URL(mcpUrl);

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected