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

Function createConnectionCode

e2e/scenarios/tool-call-contract.test.ts:172–180  ·  view source on GitHub ↗
(slug: string)

Source from the content-addressed store, hash-verified

170/** Create the no-auth connection through the gateway core tool — the same
171 * programmatic wire-up an agent performs. */
172const createConnectionCode = (slug: string) => `
173const created = await tools.executor.coreTools.connections.create({
174 owner: "org",
175 name: "public",
176 integration: ${JSON.stringify(slug)},
177 template: "none",
178});
179return JSON.stringify(created.ok ? { ok: true } : { ok: false, error: created.error });
180`;
181
182scenario(
183 "Tool calls · a live tool answers, and every misaddressed call fails with tool_not_found, never an internal error",

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected