Redeploys and enables a custom MCP service using its saved configuration.
Endpoint
POST /api/v1/mcp/servers/{mcpCode}/enable
Supports custom MCP only. The service is redeployed with its saved configuration. You cannot submit a new configuration or environment variables through this API. No request body is required.
Request parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
| mcpCode | string | Yes | Custom MCP code |
Response
Returns a DetailResponse with only mcp_code, server_status, and server_status_text populated. All other fields are null.
Errors
| HTTP status | error_code | Description |
|---|---|---|
| 400 | OperationNotSupported | The service is an official MCP |
| 400 | EnableFailed | The enable operation failed |
| 404 | McpServerNotFound | The MCP service does not exist |
| 409 | McpServerBusy | Another operation is running on the MCP service |