AI Gateway MCP Servers
Update an MCP Server
Changed onUpdates the configuration of an existing MCP Server.
put/v1/ai-gateways/{gatewayId}/mcp-servers/{mcpServerIdOrName}
Request
- Base URLhttps://global.api.konghq.com
- Auth
- HTTP bearer
- or HTTP bearer
- or HTTP bearer
- or HTTP bearer
Path parameters
gatewayId, string uuid required
Contains a unique identifier used for this resource.
Example:5f9fd312-a987-4628-b4c5-bb4f4fddd5f7
The unique ID of the AI Gateway.
mcpServerIdOrName, string uuid required
Contains a unique identifier used for this resource.
Example:5f9fd312-a987-4628-b4c5-bb4f4fddd5f7
The unique ID of the MCP Server.
Request body
union required
AIGateway MCPServer Conversion Only required
OR
AIGateway MCPServer Conversion Listener required
OR
AIGateway MCPServer Listener required
OR
AIGateway MCPServer Passthrough Listener required
OR
AIGateway MCPServer Upstream Server required
Example request
{
"config": {
"route": {
"headers": {
"version": [
"v1",
"v2"
]
},
"hosts": [
"foo.example.com"
]
},
"url": "https://mcp.internal.kongair.com",
"upstream": {
"auth": {
"type": "aws",
"region": "us-east-1",
"access_key_id": "AKIAIOSFODNN7EXAMPLE"
}
},
"certificates": [
"my-certificate"
],
"ca_certificates": [
"my-ca-certificate"
]
},
"tools": [
{
"access": {
"acls": {
"allow": [
"gold-partner"
],
"deny": [
"bronze-partner"
],
"allow_when": [
"has(principal.metadata.tier) && principal.metadata.tier == 'partner'"
],
"deny_when": [
"has(principal.metadata.role) && principal.metadata.role != 'admin'"
]
}
},
"description": "Search for available flights",
"parameters": [
{
"name": "origin",
"in": "query",
"description": "The origin airport code.",
"required": true
}
]
}
],
"display_name": "Kong Air Flights",
"name": "kongair-flights",
"enabled": true,
"labels": {
"category": "finance"
},
"managed_by": {
"owner": "terraform"
},
"datastores": [
{
"name": "vault-konnect-prod"
}
],
"token_vault": {
"provider": "my-upstream-provider",
"subject_token_type": "access_token",
"credential": {
"inbound": {
"location": "header",
"name": "Authorization",
"prefix": "Bearer "
}
},
"cache": {
"redis": {
"host": "redis.internal",
"port": 6379
}
}
}
}Response
MCP Server updated successfully.
union required
intersection required
OR
intersection required
OR
intersection required
OR
intersection required
OR
intersection required
Example response
{
"id": "5f9fd312-a987-4628-b4c5-bb4f4fddd5f7",
"created_at": "2022-11-04T20:10:06.927Z",
"updated_at": "2022-11-04T20:10:06.927Z",
"config": {
"route": {
"headers": {
"version": [
"v1",
"v2"
]
},
"hosts": [
"foo.example.com"
]
},
"url": "https://mcp.internal.kongair.com",
"upstream": {
"auth": {
"type": "aws",
"region": "us-east-1",
"access_key_id": "AKIAIOSFODNN7EXAMPLE"
}
},
"certificates": [
"my-certificate"
],
"ca_certificates": [
"my-ca-certificate"
]
},
"tools": [
{
"access": {
"acls": {
"allow": [
"gold-partner"
],
"deny": [
"bronze-partner"
],
"allow_when": [
"has(principal.metadata.tier) && principal.metadata.tier == 'partner'"
],
"deny_when": [
"has(principal.metadata.role) && principal.metadata.role != 'admin'"
]
}
},
"description": "Search for available flights",
"parameters": [
{
"name": "origin",
"in": "query",
"description": "The origin airport code.",
"required": true
}
]
}
],
"display_name": "Kong Air Flights",
"name": "kongair-flights",
"enabled": true,
"labels": {
"category": "finance"
},
"managed_by": {
"owner": "terraform"
},
"datastores": [
{
"name": "vault-konnect-prod"
}
],
"token_vault": {
"provider": "my-upstream-provider",
"subject_token_type": "access_token",
"credential": {
"inbound": {
"location": "header",
"name": "Authorization",
"prefix": "Bearer "
}
},
"cache": {
"redis": {
"host": "redis.internal",
"port": 6379
}
}
}
}Changes
- breaking
the request property
oneOf[#/components/schemas/AIGatewayMCPServerConversionListener]/config/routebecame required - breaking
the request property
oneOf[#/components/schemas/AIGatewayMCPServerListener]/config/routebecame required - breaking
the request property
oneOf[#/components/schemas/AIGatewayMCPServerPassthroughListener]/config/routebecame required
70 more changes in this revision
- breaking