Create MCP version
Changed onCreates the latest version. Currently, a MCP only has a single version. Returns 409 if a version already exists.
Request
- Base URLhttps://global.api.konghq.com
- Auth
- HTTP bearer
- or HTTP bearer
- or HTTP bearer
- or HTTP bearer
Path parameters
The unique identifier of the MCP.
Request body
Schema to create an MCP version.
User-supplied version label.
Example request
{
"version": "1.0.0",
"tools": [
{
"name": "my-tool"
}
],
"resources": [
{
"name": "my-resource"
}
],
"remotes": [
{
"type": "streamable-http",
"url": "https://api.example.com/mcp"
}
],
"packages": [
{
"registry": {
"type": "npm",
"base_url": "https://registry.npmjs.org"
},
"identifier": "@modelcontextprotocol/server-brave-search",
"version": "1.0.2",
"file_sha256": "fe333e598595000ae021bd27117db32ec69af6987f507ba7a63c90638ff633ce",
"transport": {
"type": "stdio"
},
"runtime": {
"hint": "npx",
"arguments": [
{
"type": "positional",
"value_hint": "file_path"
}
]
},
"package_arguments": [
{
"type": "positional",
"value_hint": "file_path"
}
],
"environment_variables": [
{
"choices": [],
"name": "SOME_VARIABLE"
}
]
}
]
}Response
Response schema for MCP versions.
An MCP version resource.
The unique identifier of the version.
User-supplied version label.
An ISO-8601 timestamp representation of entity creation date.
An ISO-8601 timestamp representation of entity update date.
Example response
{
"id": "9c4a1b2c-3d4e-5f60-7182-93a4b5c6d7e8",
"version": "1.0.0",
"tools": [
{
"name": "my-tool"
}
],
"resources": [
{
"name": "my-resource"
}
],
"remotes": [
{
"type": "streamable-http",
"url": "https://api.example.com/mcp"
}
],
"packages": [
{
"registry": {
"type": "npm",
"base_url": "https://registry.npmjs.org"
},
"identifier": "@modelcontextprotocol/server-brave-search",
"version": "1.0.2",
"file_sha256": "fe333e598595000ae021bd27117db32ec69af6987f507ba7a63c90638ff633ce",
"transport": {
"type": "stdio"
},
"runtime": {
"hint": "npx",
"arguments": [
{
"type": "positional",
"value_hint": "file_path"
}
]
},
"package_arguments": [
{
"type": "positional",
"value_hint": "file_path"
}
],
"environment_variables": [
{
"choices": [],
"name": "SOME_VARIABLE"
}
]
}
],
"created_at": "2022-11-04T20:10:06.927Z",
"updated_at": "2022-11-04T20:10:06.927Z"
}Changes
- breaking
added to the
invalid_parameters/itemsresponse propertyoneOflist for the response status - warning
added the new
key_invalidenum value to theinvalid_parameters/items/oneOf[#/components/schemas/InvalidParameterStandard]/ruleresponse property for the response status - warning
added the new
uniqueenum value to theinvalid_parameters/items/oneOf[#/components/schemas/InvalidParameterStandard]/ruleresponse property for the response status
- breaking