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

Function removeConnectionsCode

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

Source from the content-addressed store, hash-verified

118`;
119
120const removeConnectionsCode = (slug: string) => `
121const list = await tools.executor.coreTools.connections.list({});
122const mine = (list.ok ? list.data.connections : []).filter((c) => c.integration === ${JSON.stringify(slug)});
123for (const c of mine) {
124 await tools.executor.coreTools.connections.remove({ owner: c.owner, integration: c.integration, name: c.name });
125}
126return { removed: mine.length };
127`;
128
129/** Run `execute`, auto-approving any policy-paused execution, and parse the
130 * sandbox's JSON return value. */

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected