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

Function startCode

e2e/scenarios/oauth-setup-failure-cause.test.ts:80–96  ·  view source on GitHub ↗
(input: {
  readonly client: string;
  readonly integration: string;
  readonly connection: string;
})

Source from the content-addressed store, hash-verified

78`;
79
80const startCode = (input: {
81 readonly client: string;
82 readonly integration: string;
83 readonly connection: string;
84}) => `
85const started = await tools.executor.coreTools.oauth.start({
86 client: ${JSON.stringify(input.client)},
87 clientOwner: "org",
88 owner: "org",
89 name: ${JSON.stringify(input.connection)},
90 integration: ${JSON.stringify(input.integration)},
91 template: "oauth2",
92});
93return started.ok
94 ? { ok: true, status: started.data.status }
95 : { ok: false, code: started.error.code, message: started.error.message };
96`;
97
98// ---------------------------------------------------------------------------
99// oauth.probe — a broken discovery endpoint reports WHAT failed.

Calls

no outgoing calls

Tested by

no test coverage detected