curl --request PUT \
--url https://{tenant}/api/mcps/{apiId} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"openapi": "3.0.3",
"info": {
"title": "MCP Proxy Sample",
"version": "1.0.0"
},
"paths": {},
"components": {},
"servers": [
{
"url": "/mcp-sample/"
}
],
"x-tyk-api-gateway": {
"info": {
"name": "mcp-sample",
"state": {
"active": true
}
},
"server": {
"listenPath": {
"strip": true,
"value": "/mcp-sample/"
},
"authentication": {
"enabled": true,
"securitySchemes": {
"authToken": {
"enabled": true
}
}
}
},
"upstream": {
"url": "http://localhost:7878/mcp"
},
"middleware": {
"global": {
"contextVariables": {
"enabled": true
},
"trafficLogs": {
"enabled": true
}
},
"mcpTools": {},
"operations": {}
}
}
}
'