List Csr
cm_k8s_cluster_list_csrLists Kubernetes CertificateSigningRequests (CSRs) to inspect pending, approved, or denied certificate requests for cluster access and security review.
Instructions
List csr (cm_k8s_cluster). Manage Kubernetes cluster resources (nodes, contexts, CSRs, API resources, cluster info, admission plugins).
The save_context action registers a NEW Kubernetes environment into
the kubeconfig container-manager-mcp reads so it can be reused later
(via use_context / CONTAINER_MANAGER_KUBECONTEXT / K8S_CONTEXTS).
Four input modes, non-destructive (a context-name collision errors unless
overwrite): token (context_name + server + token +
ca_cert or insecure_skip_tls_verify), mTLS (context_name +
server + client_cert + client_key + ca_cert), oidc
(context_name + server + username + password +
oidc_issuer + oidc_client_id — drives an OIDC password-grant login
and embeds the id-token; the API server has no basic auth, so this REQUIRES
the OIDC params and fails clearly otherwise), and import (source_file/
source_yaml to merge an existing kubeconfig, or capture_current=True
to export the cluster you are currently on). namespace is optional. With
use it becomes current-context; with validate the saved context is
loaded and node count returned.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "cm_k8s_cluster_list_csr"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| use | No | save_context: set current-context to the saved context | |
| name | No | Resource name (API resource, plugin) | |
| token | No | save_context (explicit): bearer token for authentication | |
| reason | No | Reason for deny_csr | |
| server | No | save_context (explicit): API server URL, e.g. https://10.0.0.10:6443 | |
| taints | No | Taints for taint_node | |
| ca_cert | No | save_context (explicit): cluster CA cert as a file path or PEM text | |
| affinity | No | Affinity configuration for set_node_affinity | |
| csr_name | No | CertificateSigningRequest name | |
| password | No | save_context (oidc): password for the OIDC resource-owner password grant | |
| pod_name | No | Pod name for affinity operations | |
| username | No | save_context (oidc): username for an OIDC-backed cluster (requires oidc_issuer + oidc_client_id; the API server has no basic auth) | |
| validate | No | save_context: after saving, load the context and list_nodes to validate reachability | |
| namespace | No | Target namespace for affinity operations | |
| node_name | No | Node name for node operations | |
| overwrite | No | save_context: replace an existing context on name collision (default: error) | |
| taint_key | No | Taint key for untaint_node | |
| client_key | No | save_context (explicit): client key as a file path or PEM text | |
| output_dir | No | Output directory for cluster_info_dump | |
| client_cert | No | save_context (explicit): client cert as a file path or PEM text | |
| oidc_issuer | No | save_context (oidc): OIDC issuer URL, e.g. https://keycloak/realms/<realm> | |
| plugin_type | No | Plugin type (validating/mutating) | |
| source_file | No | save_context (import): path to an existing kubeconfig file to merge | |
| source_yaml | No | save_context (import): raw kubeconfig YAML to merge | |
| context_name | No | Context name | |
| manager_type | No | Container manager: kubernetes (default: auto-detect) | |
| anti_affinity | No | Anti-affinity configuration for set_pod_anti_affinity | |
| test_resource | No | Test resource for test_cluster_plugin | |
| oidc_client_id | No | save_context (oidc): OIDC client id used for the login | |
| capture_current | No | save_context (capture): export the cluster cm is currently on and save it under 'context_name' | |
| kubeconfig_path | No | save_context: target kubeconfig to write (default: $KUBECONFIG first entry, else ~/.kube/config) | |
| new_context_name | No | New context name for rename_context | |
| oidc_client_secret | No | save_context (oidc): OIDC client secret for confidential clients (optional) | |
| grace_period_seconds | No | Grace period for drain (default: 120) | |
| insecure_skip_tls_verify | No | save_context (explicit): skip TLS verification instead of pinning a CA |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |