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

Function removeConnectionsCode

e2e/scenarios/no-auth-connection.test.ts:133–140  ·  view source on GitHub ↗
(slug: string)

Source from the content-addressed store, hash-verified

131`;
132
133const removeConnectionsCode = (slug: string) => `
134const list = await tools.executor.coreTools.connections.list({});
135const mine = (list.ok ? list.data.connections : []).filter((c) => c.integration === ${JSON.stringify(slug)});
136for (const c of mine) {
137 await tools.executor.coreTools.connections.remove({ owner: c.owner, integration: c.integration, name: c.name });
138}
139return { removed: mine.length };
140`;
141
142/** Run `execute`, auto-approving any policy-paused execution, and parse the
143 * sandbox's JSON return value. */

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected