Submit New Version
Records a new McpVersion for a listing the caller can edit and marks it the listing's latest version, unmarking whichever version was previously latest. This is the 'submit a new version' path PUT /{listing_id} refers callers to once a public listing is published and can no longer be edited directly - unlike that route, this one has no such restriction, so it also covers adding a first version to a listing that was created without one.
Authorization
OAuth2AuthorizationCodeBearer AuthorizationBearer <token>
In: header
Path Parameters
listing_id*Listing Id
Format
uuidQuery Parameters
verify_locally?Verify Locally
Default
trueRequest Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Body for POST /mcp/{listing_id}/versions.
Response Body
application/json
application/json
curl -X POST "https://example.com/v1/mcp/497f6eca-6276-4993-bfeb-53cbbbba6f08/versions" \ -H "Content-Type: application/json" \ -d '{ "version": "string" }'{ "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "version": "string", "changelog": "string", "install_command": "string", "config_json": {}, "min_node_version": "string", "is_latest": false, "published_at": "2019-08-24T14:15:22Z"}{ "detail": [ { "loc": [ "string" ], "msg": "string", "type": "string" } ]}