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

Function addSpecCode

e2e/scenarios/connect-handoff-session.test.ts:31–37  ·  view source on GitHub ↗
(slug: string, specUrl: string)

Source from the content-addressed store, hash-verified

29// does, and the platform derives the paste-a-token auth method from the
30// spec's security scheme.
31const addSpecCode = (slug: string, specUrl: string) => `
32const added = await tools.executor.openapi.addSpec({
33 spec: { kind: "url", url: ${JSON.stringify(specUrl)} },
34 slug: ${JSON.stringify(slug)},
35});
36return added.ok ? { ok: true, slug: added.data.slug, toolCount: added.data.toolCount } : { ok: false, error: added.error };
37`;
38
39const createHandoffCode = (slug: string) => `
40const handoff = await tools.executor.coreTools.connections.createHandoff({

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected