Skip to main content

Management API: MCP Proxy Management

You're reading API Gateway 2026.10.0. The newest release is 1.2.0. Go to the newest release

CRUD operations for MCPProxies

Create a new MCPProxy​

POST /mcp-proxies

Code samples


curl -X POST http://localhost:9090/api/management/v1/mcp-proxies \
-u {username}:{password} \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-d @payload.json

Add a new MCPProxy to the Gateway.

Payload

{
"apiVersion": "gateway.api-platform.wso2.com/v1",
"kind": "Mcp",
"metadata": {
"name": "everything-mcp-v1.0"
},
"spec": {
"displayName": "Everything",
"version": "v1.0",
"context": "/everything",
"specVersions": [
"2025-06-18"
],
"upstream": {
"url": "http://everything:3001"
},
"tools": [],
"resources": [],
"prompts": []
}
}

Authentication​

This operation requires Basic Auth authentication. Required roles: `admin`, `developer`

Parameters​

NameInTypeRequiredDescription
bodybodyMCPProxyConfigurationRequesttruenone

Example responses

201 Response

{
"apiVersion": "gateway.api-platform.wso2.com/v1",
"kind": "Mcp",
"metadata": {
"name": "everything-mcp-v1.0"
},
"spec": {
"displayName": "Everything",
"version": "v1.0",
"context": "/everything",
"specVersions": [
"2025-06-18"
],
"upstream": {
"url": "http://everything:3001"
},
"tools": [],
"resources": [],
"prompts": []
},
"status": {
"id": "everything-mcp-v1.0",
"state": "deployed",
"createdAt": "2026-04-24T07:21:13Z",
"updatedAt": "2026-04-24T07:21:13Z",
"deployedAt": "2026-04-24T07:21:13Z"
}
}

Responses​

StatusMeaningDescriptionSchema
201CreatedMCPProxy created successfullyMCPProxyConfiguration
400Bad RequestInvalid configuration (validation failed)ErrorResponse
409ConflictConflict - MCP Proxy with same name and version already existsErrorResponse
500Internal Server ErrorInternal server errorErrorResponse

List all MCPProxies​

GET /mcp-proxies

Code samples


curl -X GET http://localhost:9090/api/management/v1/mcp-proxies \
-u {username}:{password} \
-H 'Accept: application/json'

List MCPProxies registered in the Gateway, optionally filtered by name, version, context, or status.

Authentication​

This operation requires Basic Auth authentication. Required roles: `admin`, `developer`

Parameters​

NameInTypeRequiredDescription
displayNamequerystringfalseFilter by MCP proxy display name
versionquerystringfalseFilter by MCP proxy version
contextquerystringfalseFilter by MCP proxy context/path
statusquerystringfalseFilter by deployment status

Enumerated Values​

ParameterValue
statusdeployed
statusundeployed

Example responses

200 Response

{
"status": "success",
"count": 5,
"mcpProxies": [
{
"apiVersion": "gateway.api-platform.wso2.com/v1",
"kind": "Mcp",
"metadata": {
"name": "everything-mcp-v1.0"
},
"spec": {
"displayName": "Everything",
"version": "v1.0",
"context": "/everything",
"specVersions": [
"2025-06-18"
],
"upstream": {
"url": "http://everything:3001"
},
"tools": [],
"resources": [],
"prompts": []
},
"status": {
"id": "everything-mcp-v1.0",
"state": "deployed",
"createdAt": "2026-04-24T07:21:13Z",
"updatedAt": "2026-04-24T07:21:13Z",
"deployedAt": "2026-04-24T07:21:13Z"
}
}
]
}

Responses​

StatusMeaningDescriptionSchema
200OKList of MCPProxiesInline
500Internal Server ErrorInternal server errorErrorResponse

Response Schema​

Status Code 200

NameTypeRequiredRestrictionsDescription
statusstringfalsenonenone
countintegerfalsenonenone
mcpProxies[allOf]falsenonenone

allOf

NameTypeRequiredRestrictionsDescription
anonymousMCPProxyConfigurationRequestfalsenonenone
apiVersionstringtruenoneMCP Proxy specification version
kindstringtruenoneMCP Proxy type
metadataMetadatatruenonenone
namestringtruenoneUnique handle for the resource
labelsobjectfalsenoneLabels are key-value pairs for organizing and selecting APIs. Keys must not contain spaces.
additionalPropertiesstringfalsenonenone
annotationsobjectfalsenoneAnnotations are arbitrary non-identifying metadata. Use domain-prefixed keys.
additionalPropertiesstringfalsenonenone
specMCPProxyConfigDatatruenonenone
displayNamestringtruenoneHuman-readable MCP Proxy display name
versionstringtruenoneMCP Proxy version
contextstringfalsenoneMCP Proxy context path
specVersionstringfalsenoneDEPRECATED - use specVersions. Still honored when specVersions is absent. Cannot be used together with specVersions.
specVersions[string]falsenoneMCP specification versions supported by this proxy. This gateway build explicitly supports MCP specification versions 2025-06-18, 2025-11-25, and 2026-07-28.
vhoststringfalsenoneVirtual host name used for routing. Supports standard domain names, subdomains, or wildcard domains. Must follow RFC-compliant hostname rules. Wildcards are only allowed in the left-most label (e.g., *.example.com).
upstreamDefinitions[UpstreamDefinition]falsenoneList of reusable upstream definitions with optional timeout configurations. Referenced by upstream.ref.
namestringtruenoneUnique identifier for this upstream definition
basePathstringfalsenoneBase path prefix for all endpoints in this upstream (e.g., /api/v2). All requests to this upstream will have this path prepended. Must start with '/' and must not end with '/'; omit for root.
timeoutUpstreamTimeoutfalsenoneTimeout configuration for upstream requests
connectstringfalsenoneConnection timeout duration (e.g., "5s", "500ms")
upstreams[object]truenoneList of backend targets with optional weights for load balancing
urlstring(uri)truenoneBackend URL (host and port only, path comes from basePath)
weightintegerfalsenoneRelative weight for load balancing across multiple upstream targets. Reserved for future multi-target load balancing; not applied yet (only the first target is currently used).
upstreamanytruenoneThe backend MCP server url and auth configurations

allOf

NameTypeRequiredRestrictionsDescription
anonymousUpstreamfalsenoneUpstream backend configuration (single target or reference)
urlstring(uri)falsenoneDirect backend URL to route traffic to
refstringfalsenoneReference to a predefined upstreamDefinition
hostRewritestringfalsenoneControls how the Host header is handled when routing to the upstream. auto delegates host rewriting to Envoy, which rewrites the Host header using the upstream cluster host. manual disables automatic rewriting and expects explicit configuration.

oneOf

NameTypeRequiredRestrictionsDescription
anonymousobjectfalsenonenone

xor

NameTypeRequiredRestrictionsDescription
anonymousobjectfalsenonenone

and

NameTypeRequiredRestrictionsDescription
anonymousUpstreamAuthfalsenonenone
authobjectfalsenonenone
typestringtruenonenone
headerstringfalsenonenone
valuestringfalsewrite-onlyUpstream credential. Write-only: accepted on create/update and never returned by the management API on a read, for any role. Supply either a literal value or a secret reference (e.g. a secret template expression); either way the field is omitted from management API response bodies. An update that omits it inherits the stored value; set type: none to remove auth.

continued

NameTypeRequiredRestrictionsDescription
policies[Policy]falsenoneList of MCP Proxy level policies applied
namestringtruenoneName of the policy
versionstringtruenoneVersion of the policy. Only major-only version is allowed (e.g., v0, v1). Full semantic version (e.g., v1.0.0) is not accepted and will be rejected. The Gateway Controller resolves the major version to the single matching full version installed in the gateway image.
executionConditionstringfalsenoneExpression controlling conditional execution of the policy
paramsobjectfalsenoneArbitrary parameters for the policy (free-form key/value structure)
tools[MCPTool]falsenonenone
namestringtruenoneUnique identifier for the tool
titlestringfalsenoneOptional human-readable name of the tool for display purposes.
descriptionstringtruenoneHuman-readable description of functionality
inputSchemastringtruenoneJSON Schema defining expected parameters
outputSchemastringfalsenoneOptional JSON Schema defining expected output structure
resources[MCPResource]falsenonenone
uristringtruenoneUnique identifier for the resource
namestringtruenoneThe name of the resource
titlestringfalsenoneOptional human-readable name of the resource for display purposes
descriptionstringfalsenoneOptional description
mimeTypestringfalsenoneOptional MIME type
sizeintegerfalsenoneOptional size in bytes
prompts[MCPPrompt]falsenonenone
namestringtruenoneUnique identifier for the prompt
titlestringfalsenoneOptional human-readable name of the prompt for display purposes
descriptionstringfalsenoneOptional human-readable description
arguments[object]falsenoneOptional list of arguments for customization
namestringtruenoneName of the argument
descriptionstringfalsenoneDescription of the argument
requiredbooleanfalsenoneWhether the argument is required
titlestringfalsenoneOptional human-readable title of the argument
deploymentStatestringfalsenoneDesired deployment state - 'deployed' (default) or 'undeployed'. When set to 'undeployed', the MCP Proxy is removed from router traffic but configuration and policies are preserved for potential redeployment.
resilienceResiliencefalsenoneBackend/route timeout configuration. Maps to Envoy RouteAction timeouts. Can be set at the API level (applies to all routes) and/or the operation level (applies to that operation's route). When set at both levels, the operation-level value takes precedence. When unset, the gateway's global route timeout defaults apply.
timeoutstringfalsenoneMaximum time for the entire route (request to upstream response). "0s" disables the timeout.
idleTimeoutstringfalsenonePer-route stream idle timeout (overrides the listener stream idle timeout for this route). "0s" disables the timeout.

and

NameTypeRequiredRestrictionsDescription
anonymousobjectfalsenonenone
statusResourceStatusfalseread-onlyServer-managed lifecycle fields. Populated on responses.
idstringfalsenoneUnique identifier assigned by the server (equal to metadata.name)
statestringfalsenoneDesired deployment state reported by the server
createdAtstring(date-time)falsenoneTimestamp when the resource was first created (UTC)
updatedAtstring(date-time)falsenoneTimestamp when the resource was last updated (UTC)
deployedAtstring(date-time)falsenoneTimestamp when the resource was last deployed (omitted when undeployed)

Enumerated Values​

PropertyValue
apiVersiongateway.api-platform.wso2.com/v1
kindMcp
hostRewriteauto
hostRewritemanual
typeapi-key
typeother
typenone
deploymentStatedeployed
deploymentStateundeployed
statedeployed
stateundeployed

Get MCPProxy by id​

GET /mcp-proxies/{id}

Code samples


curl -X GET http://localhost:9090/api/management/v1/mcp-proxies/{id} \
-u {username}:{password} \
-H 'Accept: application/json'

Get an MCPProxy by its ID.

Authentication​

This operation requires Basic Auth authentication. Required roles: `admin`, `developer`

Parameters​

NameInTypeRequiredDescription
idpathstringtrueUnique public identifier of the MCP Proxy.

Detailed descriptions​

id: Unique public identifier of the MCP Proxy.

Example responses

200 Response

{
"apiVersion": "gateway.api-platform.wso2.com/v1",
"kind": "Mcp",
"metadata": {
"name": "everything-mcp-v1.0"
},
"spec": {
"displayName": "Everything",
"version": "v1.0",
"context": "/everything",
"specVersions": [
"2025-06-18"
],
"upstream": {
"url": "http://everything:3001"
},
"tools": [],
"resources": [],
"prompts": []
},
"status": {
"id": "everything-mcp-v1.0",
"state": "deployed",
"createdAt": "2026-04-24T07:21:13Z",
"updatedAt": "2026-04-24T07:21:13Z",
"deployedAt": "2026-04-24T07:21:13Z"
}
}

Responses​

StatusMeaningDescriptionSchema
200OKMCPProxy detailsMCPProxyConfiguration
404Not FoundMCPProxy not foundErrorResponse
500Internal Server ErrorInternal server errorErrorResponse

Update an existing MCPProxy​

PUT /mcp-proxies/{id}

Code samples


curl -X PUT http://localhost:9090/api/management/v1/mcp-proxies/{id} \
-u {username}:{password} \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-d @payload.json

Update an existing MCPProxy in the Gateway.

Payload

{
"apiVersion": "gateway.api-platform.wso2.com/v1",
"kind": "Mcp",
"metadata": {
"name": "everything-mcp-v1.0"
},
"spec": {
"displayName": "Everything",
"version": "v1.0",
"context": "/everything",
"specVersions": [
"2025-06-18"
],
"upstream": {
"url": "http://everything:3001"
},
"tools": [],
"resources": [],
"prompts": []
}
}

Authentication​

This operation requires Basic Auth authentication. Required roles: `admin`, `developer`

Parameters​

NameInTypeRequiredDescription
idpathstringtrueUnique public identifier of the MCP Proxy to update.
bodybodyMCPProxyConfigurationRequesttruenone

Detailed descriptions​

id: Unique public identifier of the MCP Proxy to update.

Example responses

200 Response

{
"apiVersion": "gateway.api-platform.wso2.com/v1",
"kind": "Mcp",
"metadata": {
"name": "everything-mcp-v1.0"
},
"spec": {
"displayName": "Everything",
"version": "v1.0",
"context": "/everything",
"specVersions": [
"2025-06-18"
],
"upstream": {
"url": "http://everything:3001"
},
"tools": [],
"resources": [],
"prompts": []
},
"status": {
"id": "everything-mcp-v1.0",
"state": "deployed",
"createdAt": "2026-04-24T07:21:13Z",
"updatedAt": "2026-04-24T07:21:13Z",
"deployedAt": "2026-04-24T07:21:13Z"
}
}

Responses​

StatusMeaningDescriptionSchema
200OKMCPProxy updated successfullyMCPProxyConfiguration
400Bad RequestInvalid configuration (validation failed)ErrorResponse
404Not FoundMCPProxy not foundErrorResponse
500Internal Server ErrorInternal server errorErrorResponse

Delete a MCPProxy​

DELETE /mcp-proxies/{id}

Code samples


curl -X DELETE http://localhost:9090/api/management/v1/mcp-proxies/{id} \
-u {username}:{password} \
-H 'Accept: application/json'

Delete an MCPProxy from the Gateway.

Authentication​

This operation requires Basic Auth authentication. Required roles: `admin`, `developer`

Parameters​

NameInTypeRequiredDescription
idpathstringtrueUnique public identifier of the MCP Proxy to delete.

Detailed descriptions​

id: Unique public identifier of the MCP Proxy to delete.

Example responses

200 Response

{
"status": "success",
"message": "MCPProxy deleted successfully",
"id": "everything-mcp-v1.0"
}

Responses​

StatusMeaningDescriptionSchema
200OKMCPProxy deleted successfullyInline
404Not FoundMCPProxy not foundErrorResponse
500Internal Server ErrorInternal server errorErrorResponse

Response Schema​

Status Code 200

NameTypeRequiredRestrictionsDescription
statusstringfalsenonenone
messagestringfalsenonenone
idstringfalsenonenone

Was this page helpful?