$echo '{
< "openApiSpec": "openapi: 3.0.3\\ninfo:\\n title: Swagger Petstore\\n description: A sample API that uses a petstore as an example\\n version: 1.0.0\\nservers:\\n - url: https://petstore3.swagger.io/api/v3\\npaths:\\n /pet:\\n post:\\n tags:\\n - pet\\n summary: Add a new pet to the store\\n operationId: addPet\\n requestBody:\\n required: true\\n content:\\n application/json:\\n schema:\\n $ref: '\''#/components/schemas/Pet'\''\\n responses:\\n '\''200'\'':\\n description: Successful operation\\n content:\\n application/json:\\n schema:\\n $ref: '\''#/components/schemas/Pet'\''\\n put:\\n tags:\\n - pet\\n summary: Update an existing pet\\n operationId: updatePet\\n requestBody:\\n required: true\\n content:\\n application/json:\\n schema:\\n $ref: '\''#/components/schemas/Pet'\''\\n responses:\\n '\''200'\'':\\n description: Successful operation\\n content:\\n application/json:\\n schema:\\n $ref: '\''#/components/schemas/Pet'\''\\n /pet/findByStatus:\\n get:\\n tags:\\n - pet\\n summary: Finds Pets by status\\n operationId: findPetsByStatus\\n parameters:\\n - name: status\\n in: query\\n description: Status values that need to be considered for filter\\n required: true\\n schema:\\n type: array\\n items:\\n type: string\\n enum:\\n - available\\n - pending\\n - sold\\n responses:\\n '\''200'\'':\\n description: successful operation\\n content:\\n application/json:\\n schema:\\n type: array\\n items:\\n $ref: '\''#/components/schemas/Pet'\''\\n /pet/{petId}:\\n get:\\n tags:\\n - pet\\n summary: Find pet by ID\\n operationId: getPetById\\n parameters:\\n - name: petId\\n in: path\\n required: true\\n schema:\\n type: integer\\n format: int64\\n responses:\\n '\''200'\'':\\n description: successful operation\\n content:\\n application/json:\\n schema:\\n $ref: '\''#/components/schemas/Pet'\''\\n delete:\\n tags:\\n - pet\\n summary: Deletes a pet\\n operationId: deletePet\\n parameters:\\n - name: petId\\n in: path\\n required: true\\n schema:\\n type: integer\\n format: int64\\n responses:\\n '\''200'\'':\\n description: Pet deleted\\ncomponents:\\n schemas:\\n Pet:\\n type: object\\n required:\\n - name\\n properties:\\n id:\\n type: integer\\n format: int64\\n nullable: true\\n name:\\n type: string\\n example: doggie\\n status:\\n type: string\\n enum:\\n - available\\n - pending\\n - sold\\n default: available\\n",
< "format": "yaml",
< "projectName": "petstore-mcp"
<}' |
<apify call vamsi-krishna/openapi-to-mcp-server-generator --silent --output-dataset