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

Function registerIntegration

e2e/cloud/connect-link-multi-org.test.ts:61–75  ·  view source on GitHub ↗
(client: Client, slug: IntegrationSlug)

Source from the content-addressed store, hash-verified

59/** Register an apiKey-authenticated integration under an EXACT slug, so both
60 * orgs can hold the same catalog identity. */
61const registerIntegration = (client: Client, slug: IntegrationSlug) =>
62 client.openapi.addSpec({
63 payload: {
64 spec: { kind: "blob", value: pingSpec },
65 slug,
66 baseUrl: "http://127.0.0.1:59999", // never contacted during registration
67 authenticationTemplate: [
68 {
69 slug: "apiKey",
70 type: "apiKey",
71 headers: { authorization: ["Bearer ", { type: "variable", name: "token" }] },
72 },
73 ],
74 },
75 });
76
77scenario(
78 "Connect · an org-scoped connect link lands a multi-org recipient in the SENDING org",

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected