The Kubernetes MCP Server supports OpenShift API for Data Protection (OADP) resources using the core toolset's generic resource tools. OADP resources (Velero backups, restores, schedules, and related CRDs) can be managed through the standard resources_list, resources_get, resources_create, and resources_delete tools.
The OADP toolset provides a troubleshooting prompt for diagnosing backup and restore issues.
Generate a step-by-step troubleshooting guide for diagnosing OADP backup and restore issues. Gathers DPA status, BSL health, recent backup/restore status, Velero pod health, pod logs, and events into a single diagnostic workflow.
Arguments:
namespace(optional): The OADP namespace (default: openshift-adp)backup(optional): Name of a specific backup to troubleshootrestore(optional): Name of a specific restore to troubleshoot
Example Usage:
Use the oadp-troubleshoot prompt with namespace=openshift-adp and backup=my-failing-backup
kubernetes-mcp-server --toolsets core,config,oadptoolsets = ["core", "config", "oadp"]{
"mcpServers": {
"kubernetes": {
"command": "npx",
"args": ["-y", "kubernetes-mcp-server@latest", "--toolsets", "core,config,oadp"]
}
}
}OADP support requires:
- OADP Operator installed - The OADP operator must be installed on the cluster
- DataProtectionApplication configured - At least one DPA must be configured
- Proper RBAC - The user/service account must have permissions to access Velero CRDs
# Check OADP operator
oc get csv -n openshift-adp | grep oadp
# Check DPA
oc get dpa -n openshift-adp
# Check BSL availability
oc get backupstoragelocations -n openshift-adpOADP resources are managed using the core toolset's generic resource tools. Here are common workflows:
Use resources_list to check DPA and BSL status:
- List DPAs:
apiVersion: oadp.openshift.io/v1alpha1,kind: DataProtectionApplication - List BSLs:
apiVersion: velero.io/v1,kind: BackupStorageLocation
- Create a backup using
resources_createwithapiVersion: velero.io/v1,kind: Backup - Monitor status using
resources_get
- List available backups using
resources_list - Create a restore using
resources_createwithapiVersion: velero.io/v1,kind: Restore - Monitor status using
resources_get
Create a schedule using resources_create with apiVersion: velero.io/v1, kind: Schedule
Use the oadp-troubleshoot prompt to automatically gather diagnostic information including DPA status, BSL health, Velero pod logs, and recent events.
- BSL "Unavailable": Check cloud credentials and bucket accessibility
- Backup stuck "InProgress": Check Velero pod logs for errors
- DPA not reconciled: Verify the OADP operator pod is running