k8scortex-mcp
v1.1.3Kubernetes MCP server: 75 tools for GKE, AKS, EKS, RBAC, audit logging, GitOps, multi-cluster.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
list_pods
Lists pods in a specific namespace.
| Parameter | Type | Description |
|---|---|---|
namespace * | string | The Kubernetes namespace |
cluster | string | Target cluster name (default: 'default') |
get_pod_logs
Retrieves logs for a specific pod.
| Parameter | Type | Description |
|---|---|---|
namespace * | string | The Kubernetes namespace |
podName * | string | The name of the pod |
cluster | string | Target cluster name (default: 'default') |
containerName | string | Optional: specific container name for multi-container pods |
tailLines | number | Number of lines to tail from the end of the logs |
describe_pod
Shows detailed pod status including container states, conditions, resource settings, and recent events.
| Parameter | Type | Description |
|---|---|---|
namespace * | string | The Kubernetes namespace |
podName * | string | The name of the pod |
cluster | string | Target cluster name (default: 'default') |
describe_deployment
Shows details of a deployment.
| Parameter | Type | Description |
|---|---|---|
deploymentName * | string | The name of the deployment |
namespace * | string | The Kubernetes namespace |
cluster | string | Target cluster name (default: 'default') |
list_nodes
Lists cluster nodes.
| Parameter | Type | Description |
|---|---|---|
cluster | string | Target cluster name (default: 'default') |
list_statefulsets
Lists StatefulSets in a specific namespace.
| Parameter | Type | Description |
|---|---|---|
namespace * | string | The Kubernetes namespace |
cluster | string | Target cluster name (default: 'default') |
describe_statefulset
Shows details of a StatefulSet.
| Parameter | Type | Description |
|---|---|---|
namespace * | string | The Kubernetes namespace |
statefulSetName * | string | The name of the StatefulSet |
cluster | string | Target cluster name (default: 'default') |
list_daemonsets
Lists DaemonSets in a specific namespace.
| Parameter | Type | Description |
|---|---|---|
namespace * | string | The Kubernetes namespace |
cluster | string | Target cluster name (default: 'default') |
describe_daemonset
Shows details of a DaemonSet.
| Parameter | Type | Description |
|---|---|---|
daemonSetName * | string | The name of the DaemonSet |
namespace * | string | The Kubernetes namespace |
cluster | string | Target cluster name (default: 'default') |
scale_deployment
Scales replicas for a deployment.
| Parameter | Type | Description |
|---|---|---|
deploymentName * | string | The name of the deployment |
namespace * | string | The Kubernetes namespace |
replicas * | number | The new replica count |
cluster | string | Target cluster name (default: 'default') |
dryRun | boolean | If true, simulates the action without making changes |
rollout_status
Checks deployment rollout status (complete, in-progress, or stalled).
| Parameter | Type | Description |
|---|---|---|
deploymentName * | string | The name of the deployment |
namespace * | string | The Kubernetes namespace |
cluster | string | Target cluster name (default: 'default') |
rollout_undo
Rolls a deployment back to the previous ReplicaSet template.
| Parameter | Type | Description |
|---|---|---|
deploymentName * | string | The name of the deployment |
namespace * | string | The Kubernetes namespace |
cluster | string | Target cluster name (default: 'default') |
dryRun | boolean | If true, simulates the action without making changes |
restart_pod
Deletes a pod to force a restart. Usually managed by a deployment/replicaset.
| Parameter | Type | Description |
|---|---|---|
namespace * | string | The Kubernetes namespace |
podName * | string | The name of the pod to restart |
cluster | string | Target cluster name (default: 'default') |
dryRun | boolean | If true, simulates the action without making changes |
get_configmap
Reads data from a ConfigMap.
| Parameter | Type | Description |
|---|---|---|
configMapName * | string | The name of the ConfigMap |
namespace * | string | The Kubernetes namespace |
cluster | string | Target cluster name (default: 'default') |
describe_namespace_quota
Reads resource quotas for a namespace.
| Parameter | Type | Description |
|---|---|---|
namespace * | string | The Kubernetes namespace |
cluster | string | Target cluster name (default: 'default') |
list_events
Lists recent cluster events for a namespace.
| Parameter | Type | Description |
|---|---|---|
namespace * | string | The Kubernetes namespace |
cluster | string | Target cluster name (default: 'default') |
list_persistent_volume_claims
Lists PersistentVolumeClaims in a specific namespace with binding and capacity details.
| Parameter | Type | Description |
|---|---|---|
namespace * | string | The Kubernetes namespace |
cluster | string | Target cluster name (default: 'default') |
get_effective_permissions
Evaluates effective Kubernetes API permissions for a ServiceAccount using SubjectAccessReview checks.
| Parameter | Type | Description |
|---|---|---|
namespace * | string | The Kubernetes namespace of the ServiceAccount |
serviceAccountName * | string | The ServiceAccount name to inspect |
cluster | string | Target cluster name (default: 'default') |
get_hpa_status
Retrieves Horizontal Pod Autoscaler metrics and status.
| Parameter | Type | Description |
|---|---|---|
hpaName * | string | The name of the HPA |
namespace * | string | The Kubernetes namespace |
cluster | string | Target cluster name (default: 'default') |
list_warning_events
Filters cluster events for warnings in a namespace.
| Parameter | Type | Description |
|---|---|---|
namespace * | string | The Kubernetes namespace |
cluster | string | Target cluster name (default: 'default') |
get_node_pressure
Analyzes node resource pressure for a specific node.
| Parameter | Type | Description |
|---|---|---|
nodeName * | string | The name of the node |
cluster | string | Target cluster name (default: 'default') |
list_clusters
Lists all registered Kubernetes clusters known to K8sCortex (kubeconfig contexts, cluster registry file, or Azure Key Vault), with provider, cloud, region and labels.
| Parameter | Type | Description |
|---|---|---|
cloud | string | Only clusters on this cloud (e.g. eks, gke, aks, openshift, local) |
labelSelector | string | Only clusters whose registry labels match, e.g. 'env=prod,team=payments' |
region | string | Only clusters in this region |
get_cluster_info
Returns Kubernetes version, platform (EKS/GKE/AKS/OpenShift), node count and node details for a given cluster.
| Parameter | Type | Description |
|---|---|---|
cluster * | string | The registered cluster name (e.g. prod-aks-au) |
list_jobs
Lists Jobs in a specific namespace.
| Parameter | Type | Description |
|---|---|---|
namespace * | string | The Kubernetes namespace |
cluster | string | Target cluster name (default: 'default') |
create_job
Creates a new Job. Use either basic configuration or provide a raw YAML manifest.
| Parameter | Type | Description |
|---|---|---|
namespace * | string | The Kubernetes namespace |
cluster | string | Target cluster name (default: 'default') |
command | array | Command to run (if using basic config) |
dryRun | boolean | If true, simulates the action without making changes |
image | string | Container image to run (if using basic config) |
jobName | string | The name of the job to create |
yamlManifest | string | Full YAML manifest for advanced job creation |
list_cronjobs
Lists CronJobs in a specific namespace.
| Parameter | Type | Description |
|---|---|---|
namespace * | string | The Kubernetes namespace |
cluster | string | Target cluster name (default: 'default') |
suspend_cronjob
Suspends an active CronJob.
| Parameter | Type | Description |
|---|---|---|
cronJobName * | string | The name of the CronJob to suspend |
namespace * | string | The Kubernetes namespace |
cluster | string | Target cluster name (default: 'default') |
dryRun | boolean | If true, simulates the action without making changes |
resume_cronjob
Resumes a suspended CronJob.
| Parameter | Type | Description |
|---|---|---|
cronJobName * | string | The name of the CronJob to resume |
namespace * | string | The Kubernetes namespace |
cluster | string | Target cluster name (default: 'default') |
dryRun | boolean | If true, simulates the action without making changes |
create_configmap
Creates a new ConfigMap. Use either basic key-value data or provide a raw YAML manifest.
| Parameter | Type | Description |
|---|---|---|
namespace * | string | The Kubernetes namespace |
cluster | string | Target cluster name (default: 'default') |
configMapName | string | The name of the ConfigMap to create |
data | object | Key-value string pairs for the ConfigMap data |
dryRun | boolean | If true, simulates the action without making changes |
yamlManifest | string | Full YAML manifest for advanced ConfigMap creation |
update_configmap
Updates an existing ConfigMap by patching its data.
| Parameter | Type | Description |
|---|---|---|
configMapName * | string | The name of the ConfigMap to update |
data * | object | Key-value string pairs to merge into the ConfigMap |
namespace * | string | The Kubernetes namespace |
cluster | string | Target cluster name (default: 'default') |
dryRun | boolean | If true, simulates the action without making changes |
create_secret
Creates a new Opaque Secret. Use either basic stringData or provide a raw YAML manifest. stringData values will be base64-encoded automatically.
| Parameter | Type | Description |
|---|---|---|
namespace * | string | The Kubernetes namespace |
cluster | string | Target cluster name (default: 'default') |
dryRun | boolean | If true, simulates the action without making changes |
secretName | string | The name of the Secret to create |
stringData | object | Plain text key-value pairs. Will be encoded automatically. |
yamlManifest | string | Full YAML manifest for advanced Secret creation |
update_secret
Updates an existing Secret: each key in stringData is added or replaced, and keys you do not pass are kept unchanged. Values are never returned.
| Parameter | Type | Description |
|---|---|---|
namespace * | string | The Kubernetes namespace |
secretName * | string | The name of the Secret to update |
stringData * | object | Plain text key-value pairs to merge into the Secret. Will be encoded automatically. |
cluster | string | Target cluster name (default: 'default') |
dryRun | boolean | If true, simulates the action without making changes |
create_deployment
Creates a new Deployment. Use either basic configuration or provide a raw YAML manifest.
| Parameter | Type | Description |
|---|---|---|
namespace * | string | The Kubernetes namespace |
cluster | string | Target cluster name (default: 'default') |
deploymentName | string | The name of the deployment to create |
dryRun | boolean | If true, simulates the action without making changes |
image | string | Container image to run (if using basic config) |
port | number | Container port to expose (if using basic config) |
replicas | number | Number of replicas (if using basic config) |
yamlManifest | string | Full YAML manifest for advanced deployment creation |
delete_deployment
Deletes an existing Deployment.
| Parameter | Type | Description |
|---|---|---|
deploymentName * | string | The name of the deployment to delete |
namespace * | string | The Kubernetes namespace |
cluster | string | Target cluster name (default: 'default') |
dryRun | boolean | If true, simulates the action without making changes |
create_namespace
Creates a new Kubernetes Namespace.
| Parameter | Type | Description |
|---|---|---|
namespaceName * | string | The name of the namespace to create |
cluster | string | Target cluster name (default: 'default') |
dryRun | boolean | If true, simulates the action without making changes |
delete_namespace
Deletes an existing Kubernetes Namespace.
| Parameter | Type | Description |
|---|---|---|
namespaceName * | string | The name of the namespace to delete |
cluster | string | Target cluster name (default: 'default') |
dryRun | boolean | If true, simulates the action without making changes |
create_horizontal_pod_autoscaler
Creates an HPA for a Deployment. Use either basic configuration or provide a raw YAML manifest.
| Parameter | Type | Description |
|---|---|---|
namespace * | string | The Kubernetes namespace |
cluster | string | Target cluster name (default: 'default') |
dryRun | boolean | If true, simulates the action without making changes |
hpaName | string | The name of the HPA to create |
maxReplicas | number | Maximum number of replicas |
minReplicas | number | Minimum number of replicas |
targetCPUUtilizationPercentage | number | Target CPU utilization percentage |
targetDeployment | string | The name of the target Deployment to scale |
yamlManifest | string | Full YAML manifest for advanced HPA creation |
create_service
Creates a new Service. Use either basic configuration or provide a raw YAML manifest.
| Parameter | Type | Description |
|---|---|---|
namespace * | string | The Kubernetes namespace |
cluster | string | Target cluster name (default: 'default') |
dryRun | boolean | If true, simulates the action without making changes |
port | number | Port the service exposes |
selector | object | Label selector for the pods (e.g. { app: 'my-app' }) |
serviceName | string | The name of the Service to create |
targetPort | number | Target port on the pod |
type | string | Service type (ClusterIP, NodePort, LoadBalancer) |
yamlManifest | string | Full YAML manifest for advanced Service creation |
list_ingresses
Lists Ingress resources in a namespace.
| Parameter | Type | Description |
|---|---|---|
namespace * | string | The Kubernetes namespace |
cluster | string | Target cluster name (default: 'default') |
get_service_endpoints
Shows endpoint addresses backing a Service.
| Parameter | Type | Description |
|---|---|---|
namespace * | string | The Kubernetes namespace |
serviceName * | string | Service name |
cluster | string | Target cluster name (default: 'default') |
update_ingress
Updates an existing Ingress. Merges new rules or annotations into the existing Ingress.
| Parameter | Type | Description |
|---|---|---|
ingressName * | string | The name of the Ingress to update |
namespace * | string | The Kubernetes namespace |
annotations | object | Annotations to merge |
cluster | string | Target cluster name (default: 'default') |
dryRun | boolean | If true, simulates the action without making changes |
rules | array | Rules to append or replace (advanced usage) |
create_network_policy
Creates a new NetworkPolicy. Use either basic configuration or provide a raw YAML manifest.
| Parameter | Type | Description |
|---|---|---|
namespace * | string | The Kubernetes namespace |
cluster | string | Target cluster name (default: 'default') |
dryRun | boolean | If true, simulates the action without making changes |
podSelector | object | Label selector for the pods this policy applies to |
policyName | string | The name of the NetworkPolicy |
policyTypes | array | List of policy types (Ingress, Egress) |
yamlManifest | string | Full YAML manifest for advanced NetworkPolicy creation |
set_resource_limits
Sets CPU and Memory requests and limits for a specific container in a Deployment.
| Parameter | Type | Description |
|---|---|---|
containerName * | string | The name of the container |
deploymentName * | string | The name of the Deployment |
namespace * | string | The Kubernetes namespace |
cluster | string | Target cluster name (default: 'default') |
cpuLimit | string | CPU limit (e.g. '500m' or '1') |
cpuRequest | string | CPU request (e.g. '100m' or '0.1') |
dryRun | boolean | If true, simulates the action |
memoryLimit | string | Memory limit (e.g. '512Mi') |
memoryRequest | string | Memory request (e.g. '256Mi') |
get_resource_recommendations
Suggests optimal resource requests/limits based on current metrics heuristically.
| Parameter | Type | Description |
|---|---|---|
deploymentName * | string | The name of the Deployment |
namespace * | string | The Kubernetes namespace |
cluster | string | Target cluster name (default: 'default') |
get_cluster_resource_utilisation
Returns CPU and Memory usage vs capacity across all nodes.
| Parameter | Type | Description |
|---|---|---|
cluster | string | Target cluster name (default: 'default') |
cordon_node
Marks a node as unschedulable.
| Parameter | Type | Description |
|---|---|---|
nodeName * | string | Name of the node to cordon |
cluster | string | Target cluster name (default: 'default') |
dryRun | boolean | If true, simulates the action |
uncordon_node
Marks a node as schedulable.
| Parameter | Type | Description |
|---|---|---|
nodeName * | string | Name of the node to uncordon |
cluster | string | Target cluster name (default: 'default') |
dryRun | boolean | If true, simulates the action |
drain_node
Cordons the node and evicts/deletes non-daemonset pods.
| Parameter | Type | Description |
|---|---|---|
nodeName * | string | Name of the node to drain |
cluster | string | Target cluster name (default: 'default') |
dryRun | boolean | If true, simulates the action |
force | boolean | Force deletion of pods |
taint_node
Adds a taint to a node.
| Parameter | Type | Description |
|---|---|---|
effect * | string | Taint effect (NoSchedule, PreferNoSchedule, NoExecute) |
key * | string | Taint key |
nodeName * | string | Name of the node |
value * | string | Taint value |
cluster | string | Target cluster name (default: 'default') |
dryRun | boolean | If true, simulates the action |
remove_taint
Removes a specific taint from a node by key.
| Parameter | Type | Description |
|---|---|---|
key * | string | Taint key to remove |
nodeName * | string | Name of the node |
cluster | string | Target cluster name (default: 'default') |
dryRun | boolean | If true, simulates the action |
get_gitops_app_status
Gets the health and sync status of an ArgoCD Application or Flux Kustomization.
| Parameter | Type | Description |
|---|---|---|
appName * | string | The name of the application/kustomization |
engine * | string | GitOps engine ('argocd' or 'flux') |
namespace * | string | The namespace of the application/kustomization |
cluster | string | Target cluster name (default: 'default') |
get_gitops_diff
Gets out-of-sync resources (ArgoCD) or managed resource inventory with revision drift (Flux Kustomization).
| Parameter | Type | Description |
|---|---|---|
appName * | string | The name of the application/kustomization |
engine * | string | GitOps engine ('argocd' or 'flux') |
namespace * | string | The namespace of the application/kustomization |
cluster | string | Target cluster name (default: 'default') |
sync_gitops_app
Forces a sync/reconciliation of an ArgoCD Application, Flux Kustomization, or Flux HelmRelease.
| Parameter | Type | Description |
|---|---|---|
appName * | string | The name of the application/kustomization/helmrelease |
engine * | string | GitOps engine ('argocd' or 'flux') |
namespace * | string | The namespace of the application/kustomization/helmrelease |
cluster | string | Target cluster name (default: 'default') |
dryRun | boolean | If true, simulates the action |
resourceType | string | Flux only: 'kustomization' (default) or 'helmrelease' |
compare_clusters
Compares the running version/state of an application across two clusters.
| Parameter | Type | Description |
|---|---|---|
appName * | string | The name of the application/kustomization |
clusterA * | string | First cluster to compare |
clusterB * | string | Second cluster to compare |
engine * | string | GitOps engine ('argocd' or 'flux') |
namespace * | string | The namespace of the application/kustomization |
list_flux_kustomizations
Lists all Flux Kustomizations in a namespace with their ready/suspended/revision status.
| Parameter | Type | Description |
|---|---|---|
cluster | string | Target cluster name (default: 'default') |
namespace | string | Namespace to list Kustomizations in (omit for all namespaces) |
list_flux_helm_releases
Lists all Flux HelmReleases in a namespace with chart name, version, and ready/suspended status.
| Parameter | Type | Description |
|---|---|---|
cluster | string | Target cluster name (default: 'default') |
namespace | string | Namespace to list HelmReleases in (omit for all namespaces) |
get_flux_helm_release
Gets detailed status of a Flux HelmRelease including chart version, values, and condition history.
| Parameter | Type | Description |
|---|---|---|
name * | string | Name of the HelmRelease |
namespace * | string | Namespace of the HelmRelease |
cluster | string | Target cluster name (default: 'default') |
list_flux_sources
Lists Flux source objects (GitRepository, HelmRepository, OCIRepository, Bucket) with their URL, ref, and ready status.
| Parameter | Type | Description |
|---|---|---|
cluster | string | Target cluster name (default: 'default') |
namespace | string | Namespace to list sources in (omit for all namespaces) |
sourceType | string | Source kind: 'gitrepository' | 'helmrepository' | 'ocirepository' | 'bucket' (omit for all) |
suspend_flux_resource
Suspends reconciliation of a Flux Kustomization or HelmRelease to pause automated deployments.
| Parameter | Type | Description |
|---|---|---|
name * | string | Name of the resource |
namespace * | string | Namespace of the resource |
resourceType * | string | 'kustomization' or 'helmrelease' |
cluster | string | Target cluster name (default: 'default') |
dryRun | boolean | If true, simulates the action |
resume_flux_resource
Resumes reconciliation of a suspended Flux Kustomization or HelmRelease.
| Parameter | Type | Description |
|---|---|---|
name * | string | Name of the resource |
namespace * | string | Namespace of the resource |
resourceType * | string | 'kustomization' or 'helmrelease' |
cluster | string | Target cluster name (default: 'default') |
dryRun | boolean | If true, simulates the action |
list_flux_alerts
Lists Flux Notification Alert objects showing which events trigger which providers.
| Parameter | Type | Description |
|---|---|---|
cluster | string | Target cluster name (default: 'default') |
namespace | string | Namespace to list Alerts in (omit for all namespaces) |
list_k8s_resources
Generic read: list Kubernetes resources by group/version/resource.
| Parameter | Type | Description |
|---|---|---|
resource * | string | Plural resource name (e.g. 'statefulsets', 'daemonsets', 'persistentvolumeclaims', 'roles') |
version * | string | API version (e.g. 'v1') |
apiGroup | string | API group (e.g. 'apps', 'rbac.authorization.k8s.io'). Use '' or 'core' for core/v1 resources. |
cluster | string | Target cluster name (default: 'default') |
labelSelector | string | Optional label selector |
namespace | string | Namespace for namespaced resources |
namespaced | boolean | Whether the target resource is namespaced |
get_k8s_resource
Generic read: get a single Kubernetes resource by group/version/resource/name.
| Parameter | Type | Description |
|---|---|---|
name * | string | Resource name |
resource * | string | Plural resource name |
version * | string | API version (e.g. 'v1') |
apiGroup | string | API group (e.g. 'apps', 'rbac.authorization.k8s.io'). Use '' or 'core' for core/v1 resources. |
cluster | string | Target cluster name (default: 'default') |
namespace | string | Namespace for namespaced resources |
namespaced | boolean | Whether the target resource is namespaced |
list_node_pools
Groups nodes by managed-cloud node pool labels (AKS/EKS/GKE) and reports pool health.
| Parameter | Type | Description |
|---|---|---|
cluster | string | Target cluster name (default: 'default') |
get_node_pool_detail
Returns detailed node, spot/preemptible, and optional metrics view for a specific node pool.
| Parameter | Type | Description |
|---|---|---|
poolName * | string | Node pool name |
cluster | string | Target cluster name (default: 'default') |
get_workload_identity_config
Returns workload identity annotation configuration for a ServiceAccount (AKS/EKS/GKE conventions).
| Parameter | Type | Description |
|---|---|---|
namespace * | string | ServiceAccount namespace |
serviceAccountName * | string | ServiceAccount name |
cluster | string | Target cluster name (default: 'default') |
validate_workload_identity
Validates identity chain from ServiceAccount annotation to pods using that ServiceAccount.
| Parameter | Type | Description |
|---|---|---|
namespace * | string | ServiceAccount namespace |
serviceAccountName * | string | ServiceAccount name |
cluster | string | Target cluster name (default: 'default') |
list_pod_disruption_budgets
Lists PodDisruptionBudgets in a namespace with budget satisfaction status.
| Parameter | Type | Description |
|---|---|---|
namespace * | string | Namespace |
cluster | string | Target cluster name (default: 'default') |
get_pdb_status
Returns detailed status and covered pods for a PodDisruptionBudget.
| Parameter | Type | Description |
|---|---|---|
namespace * | string | Namespace |
pdbName * | string | PDB name |
cluster | string | Target cluster name (default: 'default') |
list_vpas
Lists VerticalPodAutoscaler objects in a namespace and their update mode/recommendation state.
| Parameter | Type | Description |
|---|---|---|
namespace * | string | Namespace |
cluster | string | Target cluster name (default: 'default') |
get_vpa_recommendation
Returns VPA recommendation lower/target/upper bounds for a workload when available.
| Parameter | Type | Description |
|---|---|---|
namespace * | string | Namespace |
vpaName * | string | VPA object name |
cluster | string | Target cluster name (default: 'default') |
list_storage_classes
Lists StorageClasses and indicates default class.
| Parameter | Type | Description |
|---|---|---|
cluster | string | Target cluster name (default: 'default') |
get_storage_class
Returns details for a specific StorageClass.
| Parameter | Type | Description |
|---|---|---|
storageClassName * | string | StorageClass name |
cluster | string | Target cluster name (default: 'default') |
get_addon_health
Checks health of common kube-system addons (CoreDNS, metrics-server, kube-proxy, CNI).
| Parameter | Type | Description |
|---|---|---|
cluster | string | Target cluster name (default: 'default') |
list_limit_ranges
Lists LimitRange objects in a namespace and default resource constraints.
| Parameter | Type | Description |
|---|---|---|
namespace * | string | Namespace |
cluster | string | Target cluster name (default: 'default') |