Skip to content

FEAT | add --read-only flag to disable write operations#41

Open
MatteoMori8 wants to merge 1 commit intokagent-dev:mainfrom
MatteoMori8:feature/disable-write-flag
Open

FEAT | add --read-only flag to disable write operations#41
MatteoMori8 wants to merge 1 commit intokagent-dev:mainfrom
MatteoMori8:feature/disable-write-flag

Conversation

@MatteoMori8
Copy link

Add a new --read-only CLI flag that disables tools which perform write operations (delete, patch, scale, create, apply, etc.).

This enables deploying the MCP server in read-only mode for:

  • Observability-only use cases (monitoring, troubleshooting)
  • Environments with read-only service accounts
  • Compliance requirements separating read/write capabilities

Tools are categorized as read-only or write operations:

  • K8s: 8 read-only, 14 write tools
  • Helm: 3 read-only, 3 write tools
  • Istio: 9 read-only, 3 write tools
  • Cilium: ~25 read-only, ~15 write tools
  • Argo: 4 read-only, 4 write tools
  • Prometheus/Kubescape/Utils: all read-only (unchanged)

Co-Authored-By: Claude Opus 4.5

Add a new `--read-only` CLI flag that disables tools which perform
write operations (delete, patch, scale, create, apply, etc.).

This enables deploying the MCP server in read-only mode for:
- Observability-only use cases (monitoring, troubleshooting)
- Environments with read-only service accounts
- Compliance requirements separating read/write capabilities

Tools are categorized as read-only or write operations:
- K8s: 8 read-only, 14 write tools
- Helm: 3 read-only, 3 write tools
- Istio: 9 read-only, 3 write tools
- Cilium: ~25 read-only, ~15 write tools
- Argo: 4 read-only, 4 write tools
- Prometheus/Kubescape/Utils: all read-only (unchanged)

Co-Authored-By: Claude Opus 4.5
Signed-off-by: Matteo Mori <matteo.mori@rvu.co.uk>
@MatteoMori8 MatteoMori8 force-pushed the feature/disable-write-flag branch from 2d81f3a to 392d29d Compare February 4, 2026 10:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant