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

await platic.tools.mcp.delete("mcp_123");

Path parameters

ParameterTypeDescriptionRequired
mcpIdstringId of the MCP server✓

Response

{
  "status": "success",
  "message": "MCP server deleted successfully",
  "data": {
    "mcpId": "QZPHpckDPC58JIVLQA3Z"
  }
}

Response fields

FieldTypeDescription
mcpIdstringId of the deleted server

Errors

Statusdetails.codeWhen it happens
403FORBIDDENThe person behind the token does not have access to Integrations, or does not have access to an agent that uses one of its tools
404NOT_FOUNDThe server does not exist in this workspace
409RESOURCE_CHANGEDThe server changed while it was being deleted. Get it again and retry
409DELETION_IN_PROGRESSThe deletion is already in progress. Repeat the call to continue it

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.