Deactivate an official MCP
Updated at:
Deactivates an activated official MCP service in the current workspace. One Key MCP is not supported.
Endpoint
POST
/api/v1/mcp/servers/{mcpCode}/deactivateSupports official MCP only. One Key MCP is not supported. After deactivation, the status becomes INACTIVE and the status text is "Not activated".
Path parameters
mcpCodestringRequiredOfficial MCP code
Response example
Returns a DetailResponse with only mcp_code, server_status, and server_status_text populated. All other fields are null.
curl -X POST "https://{workspace_id}.cn-beijing.maas.aliyuncs.com/api/v1/mcp/servers/amap-maps/deactivate" \
-H "Authorization: Bearer $DASHSCOPE_API_KEY"
{
"success": true,
"error_code": null,
"error_msg": null,
"data": {
"mcp_code": "amap-maps",
"server_name": null,
"description": null,
"type": null,
"server_type": null,
"server_status": "INACTIVE",
"server_status_text": "未开通",
"dashscope_endpoint": null,
"meta_info": null,
"mcp_config": null
},
"request_id": "6f1c2a8e-3b0d-4c55-9a0e-2f7d1c9b8a11"
}
Error codes
| HTTP status | error_code | Description |
|---|---|---|
| 400 | InvalidParameter | A query parameter or request body is provided |
| 400 | OperationNotSupported | The service is a custom MCP |
| 400 | DeActivateFailed | The service is a One Key MCP, or is deploying |
| 404 | McpServerNotFound | The MCP service does not exist |
| 404 | McpServerUnavailable | The MCP service is unavailable |
Is this page helpful?