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

Function widgetsSpec

e2e/scenarios/tool-call-contract.test.ts:140–168  ·  view source on GitHub ↗
(baseUrl: string)

Source from the content-addressed store, hash-verified

138/** OpenAPI 3 spec with one no-auth operation (no securitySchemes ⇒ the
139 * integration is no-auth, so a `template: "none"` connection can call it). */
140const widgetsSpec = (baseUrl: string): string =>
141 JSON.stringify({
142 openapi: "3.0.3",
143 info: { title: "Widgets API", version: "1.0.0" },
144 servers: [{ url: baseUrl }],
145 paths: {
146 "/unavailable": {
147 get: {
148 operationId: "unavailableWidgets",
149 summary: "Unavailable widgets",
150 responses: { "200": { description: "widgets" } },
151 },
152 },
153 "/widgets/count": {
154 get: {
155 operationId: "countWidgets",
156 summary: "Count widgets",
157 responses: { "200": { description: "widget count" } },
158 },
159 },
160 "/widgets": {
161 get: {
162 operationId: "listWidgets",
163 summary: "List widgets",
164 responses: { "200": { description: "widgets" } },
165 },
166 },
167 },
168 });
169
170/** Create the no-auth connection through the gateway core tool — the same
171 * programmatic wire-up an agent performs. */

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected