How do you check Radar MCP’s access to a Kubernetes namespace?

Enable read-only MCP, then check the Kubernetes identity Radar uses. For a troubleshooting account, listing pods should be allowed and editing a deployment should be denied in the same namespace.

Check one namespace

  1. Find the identity Radar uses. On a laptop, check the user in Radar’s kubeconfig. In a cluster without sign-in, find the service account on the Radar pod. If sign-in is enabled, check the caller’s access as well as what Radar can collect.
  2. Enable read-only MCP. Start Radar with --mcp-read-only or set RADAR_MCP_READ_ONLY=1 in the deployment. Point your agent at /mcp-readonly. Radar’s normal /mcp endpoint should return 404 in this mode. The setting applies to MCP tools.
  3. Check what Kubernetes allows. In the namespace the agent needs to inspect, ask Kubernetes whether that identity can list pods and patch deployments. Expect yes for the read and no for the edit on a troubleshooting account.
Radar uses your kubeconfig on a laptop, its service account in a cluster without sign-in, and the caller’s permissions when sign-in is enabled. In one namespace, the example allows listing pods and denies editing a deployment.
Example permission results for the same identity and namespace. Check your own results before connecting the agent.

Service account example

From a Kubernetes identity allowed to impersonate the Radar service account, run these two permission checks. Replace APP_NAMESPACE with the namespace to inspect, and RADAR_NAMESPACE and RADAR_ACCOUNT with the Radar pod’s namespace and service account.

kubectl auth can-i list pods -n APP_NAMESPACE --as=system:serviceaccount:RADAR_NAMESPACE:RADAR_ACCOUNT
kubectl auth can-i patch deployments.apps -n APP_NAMESPACE --as=system:serviceaccount:RADAR_NAMESPACE:RADAR_ACCOUNT

Does Radar ship with read-only MCP and a separate account?

Radar enables read and write MCP tools by default. On a laptop it uses your kubeconfig. In a cluster without sign-in it uses its pod’s service account. When sign-in is enabled, the caller’s permissions also limit access.

Sources

Call (423) 497-0505 Start a Project