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

Function removeConnectionsCode

e2e/scenarios/connect-handoff.test.ts:64–71  ·  view source on GitHub ↗
(slug: string)

Source from the content-addressed store, hash-verified

62// Selfhost scenarios share one workspace identity — leaked connections fail
63// other scenarios' zero-state assertions, so remove everything this one made.
64const removeConnectionsCode = (slug: string) => `
65const list = await tools.executor.coreTools.connections.list({});
66const mine = (list.ok ? list.data.connections : []).filter((c) => c.integration === ${JSON.stringify(slug)});
67for (const c of mine) {
68 await tools.executor.coreTools.connections.remove({ owner: c.owner, integration: c.integration, name: c.name });
69}
70return { removed: mine.length };
71`;
72
73const sendEmailCode = (slug: string, subject: string) => `
74const found = await tools.search({ namespace: ${JSON.stringify(slug)}, query: "send email", limit: 5 });

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected