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

Function addSpecCode

e2e/scenarios/no-auth-connection.test.ts:76–83  ·  view source on GitHub ↗
(slug: string)

Source from the content-addressed store, hash-verified

74});
75
76const addSpecCode = (slug: string) => `
77const added = await tools.executor.openapi.addSpec({
78 spec: { kind: "blob", value: ${JSON.stringify(NPM_DOWNLOADS_SPEC)} },
79 slug: ${JSON.stringify(slug)},
80 baseUrl: "https://api.npmjs.org",
81});
82return added.ok ? { ok: true, slug: added.data.slug, toolCount: added.data.toolCount } : { ok: false, error: added.error };
83`;
84
85// THE call under test: a no-auth connection with no credential origin at all.
86const createNoAuthConnectionCode = (slug: string) => `

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected