Skip to main content

Management API: MCP Proxy Management

You're reading API Gateway 1.1.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/v0.9/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/v1alpha1",
"kind": "Mcp",
"metadata": {
"name": "everything-mcp-v1.0"
},
"spec": {
"displayName": "Everything",
"version": "v1.0",
"context": "/everything",
"specVersion": "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/v1alpha1",
"kind": "Mcp",
"metadata": {
"name": "everything-mcp-v1.0"
},
"spec": {
"displayName": "Everything",
"version": "v1.0",
"context": "/everything",
"specVersion": "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/v0.9/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/v1alpha1",
"kind": "Mcp",
"metadata": {
"name": "everything-mcp-v1.0"
},
"spec": {
"displayName": "Everything",
"version": "v1.0",
"context": "/everything",
"specVersion": "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
specVersionstringfalsenoneMCP specification version
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).
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
valuestringfalsenonenone

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.

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/v1alpha1
kindMcp
hostRewriteauto
hostRewritemanual
typeapi-key
deploymentStatedeployed
deploymentStateundeployed
statedeployed
stateundeployed

Get MCPProxy by id​

GET /mcp-proxies/{id}

Code samples


curl -X GET http://localhost:9090/api/management/v0.9/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/v1alpha1",
"kind": "Mcp",
"metadata": {
"name": "everything-mcp-v1.0"
},
"spec": {
"displayName": "Everything",
"version": "v1.0",
"context": "/everything",
"specVersion": "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/v0.9/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/v1alpha1",
"kind": "Mcp",
"metadata": {
"name": "everything-mcp-v1.0"
},
"spec": {
"displayName": "Everything",
"version": "v1.0",
"context": "/everything",
"specVersion": "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/v1alpha1",
"kind": "Mcp",
"metadata": {
"name": "everything-mcp-v1.0"
},
"spec": {
"displayName": "Everything",
"version": "v1.0",
"context": "/everything",
"specVersion": "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/v0.9/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?