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

Function registerIntegration

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

Source from the content-addressed store, hash-verified

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

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected