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

Function startConnectionCode

e2e/scenarios/oauth-client-handoff.test.ts:282–297  ·  view source on GitHub ↗
(input: {
  readonly slug: string;
  readonly integration: string;
  readonly connection: string;
  readonly template: string;
})

Source from the content-addressed store, hash-verified

280`;
281
282const startConnectionCode = (input: {
283 readonly slug: string;
284 readonly integration: string;
285 readonly connection: string;
286 readonly template: string;
287}) => `
288const started = await tools.executor.coreTools.oauth.start({
289 client: ${JSON.stringify(input.slug)},
290 clientOwner: "org",
291 owner: "org",
292 name: ${JSON.stringify(input.connection)},
293 integration: ${JSON.stringify(input.integration)},
294 template: ${JSON.stringify(input.template)},
295});
296return started.ok ? { ok: true, status: started.data.status } : { ok: false, error: started.error };
297`;
298
299const requireOAuthClientCredential = (credential: IssuedCredential) =>
300 Effect.gen(function* () {

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected