Agents and MCP

Let agents work on your clusters. Keep the rules.

A local MCP server: 49 tools for Kubernetes and Helm, every call checked against your rules.

1

Connect

One click for Claude Code. Any MCP client gets its own token.

2

Set rules

Allow, ask or deny by verb, resource, namespace and context.

3

Approve

Ask me rules wait in the window with the exact request.

4

Audit

Every call is logged. One switch cuts every agent off.

See it work

From request to audit log

An agent asks to restart a deployment; the request waits in the window, is approved, and shows in the activity log

The exact request waits in the window. Approve once, for an hour, or always for that narrow case.

An agent's calls grouped by task

Every call, grouped by task, with the rule that decided it. Also in audit.jsonl.

The assistant finding why a pod crash-loops

The built-in assistant, through your Claude Code login or an API key, under the same rules.

Rules

Rules that read like RBAC, with an effect

In the window, or as code in ~/.config/recouvrance/rules.yaml.

rules.yaml
agents:
  Claude:
    allow:
      - get,list,logs *                            # read everything
      - restart,scale deployments/web-* -n team-*  # names after the slash
    ask:
      - patch,apply,delete * --context staging
    deny:
      - "* secrets"
      - "* * --context *prod*"
      - exec pods until 2026-12-31                 # expires
    limits: { calls_per_minute: 120 }
  • Anything no rule matches is denied.
  • Deny wins, then Ask me, then Allow.
  • Secret values stay masked unless you allow reveal.
  • Contexts no rule names are never contacted.

49 tools

What you would do with kubectl and Helm

Changes support a dry run. Prompts: troubleshoot, rightsize, cert-audit, cluster-health.

Read and investigate

  • find_problems
  • list_resources
  • get_resource
  • describe_resource
  • search
  • get_events
  • get_logs
  • workload_logs
  • get_changes
  • check_reachability
  • check_certificates
  • top_pods
  • top_nodes
  • usage_history
  • get_metrics
  • upgrade_check
  • browse_files

Helm, GitOps and rollouts

  • list_helm_releases
  • helm_history
  • helm_get_values
  • gitops
  • rollout_status
  • rollout_history
  • rollout_restart
  • rollout_undo
  • rollout_pause
  • rollout_resume
  • set_image
  • scale

Change, with a dry run

  • diff_manifest
  • apply_manifest
  • patch_resource
  • delete_resource
  • trigger_cronjob
  • wait_for

Operate

  • exec_command
  • debug_pod
  • port_forward
  • stop_port_forward
  • list_port_forwards
  • cordon_node
  • uncordon_node
  • drain_node

Know the cluster and your access

  • my_permissions
  • can_i
  • list_contexts
  • list_resource_types
  • explain_resource
  • cluster_version

What each tool needs from your rules, in the docs →

Any MCP client

Not only Claude

Any MCP client gets its own token and rules from Agents → Several agents….recouvrance serve runs the server without the window.

.mcp.json
{
  "mcpServers": {
    "recouvrance": {
      "type": "http",
      "url": "http://127.0.0.1:47070/mcp",
      "headers": { "Authorization": "Bearer <the agent's token>" }
    }
  }
}

Rules cover what agents do through Recouvrance. Block kubectl and helm in the agent's own permissions so Recouvrance is the only way in.

Give your agents a safe way in.

DownloadRead the agents guide