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

Function mainConnection

e2e/cloud/connections-list-scope.test.ts:45–49  ·  view source on GitHub ↗
(listed: Record<string, unknown>)

Source from the content-addressed store, hash-verified

43
44/** The `main` connection from a `connections.list` sandbox return value. */
45const mainConnection = (listed: Record<string, unknown>): Record<string, unknown> | undefined => {
46 const connections = (listed as { connections?: ReadonlyArray<Record<string, unknown>> })
47 .connections;
48 return connections?.find((c) => c.name === "main");
49};
50
51const listCode = (integration: string, verbose: boolean) => `
52const res = await tools.executor.coreTools.connections.list(${JSON.stringify(

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected