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

Function greetSpec

e2e/scenarios/openapi-integration.test.ts:28–42  ·  view source on GitHub ↗
(baseUrl: string)

Source from the content-addressed store, hash-verified

26
27/** OpenAPI 3 spec with a single GET /greet operation. */
28const greetSpec = (baseUrl: string): string =>
29 JSON.stringify({
30 openapi: "3.0.3",
31 info: { title: "Greet API", version: "1.0.0" },
32 servers: [{ url: baseUrl }],
33 paths: {
34 "/greet": {
35 get: {
36 operationId: "getGreeting",
37 summary: "Return a greeting message",
38 responses: { "200": { description: "A greeting" } },
39 },
40 },
41 },
42 });
43
44scenario(
45 "OpenAPI · registering a spec exposes its operations as tools",

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected