Delete an MCP server
SDK platic.tools.mcp.delete()
Delete the MCP server, its catalog tools, and their connections to agents. Its secrets remain in the workspace.
Example
curl -X DELETE https://api.platic.ai/v1/tools/mcp/$MCP_ID \
-H "Authorization: Bearer $PLATIC_API_KEY" await platic.tools.mcp.delete("mcp_123"); Path parameters
| Parameter | Type | Description | Required |
|---|---|---|---|
mcpId | string | Id of the MCP server | ✓ |
Response
{
"status": "success",
"message": "MCP server deleted successfully",
"data": {
"mcpId": "QZPHpckDPC58JIVLQA3Z"
}
} Response fields
| Field | Type | Description |
|---|---|---|
mcpId | string | Id of the deleted server |
Errors
| Status | details.code | When it happens |
|---|---|---|
403 | FORBIDDEN | The person behind the token does not have access to Integrations, or does not have access to an agent that uses one of its tools |
404 | NOT_FOUND | The server does not exist in this workspace |
409 | RESOURCE_CHANGED | The server changed while it was being deleted. Get it again and retry |
409 | DELETION_IN_PROGRESS | The deletion is already in progress. Repeat the call to continue it |
Warning
This cannot be undone. Agents that used its tools lose them immediately.
Notes
- Secrets are not deleted with the server. If nobody uses them anymore, delete them separately.
- To remove only some tools and keep the server, use choose MCP tools.