Skip to main content
PUT
/
api
/
mcps
/
{apiId}
Update an MCP Proxy definition.
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": {}
    }
  }
}
'
{
  "ID": "<string>",
  "Message": "<string>",
  "Meta": "<unknown>",
  "Status": "<string>"
}

Authorizations

Authorization
string
header
required

The Tyk Dashboard API Access Credentials

Path Parameters

apiId
string
required

MCP Proxy definition ID.

Body

application/json
x-tyk-api-gateway
object

Response

MCP Proxy definition updated.

ID
string
Message
string
Meta
any
Status
string