FEAT | add --read-only flag to disable write operations#41
Open
MatteoMori8 wants to merge 1 commit intokagent-dev:mainfrom
Open
FEAT | add --read-only flag to disable write operations#41MatteoMori8 wants to merge 1 commit intokagent-dev:mainfrom
--read-only flag to disable write operations#41MatteoMori8 wants to merge 1 commit intokagent-dev:mainfrom
Conversation
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>
2d81f3a to
392d29d
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Add a new
--read-onlyCLI 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:
Tools are categorized as read-only or write operations:
Co-Authored-By: Claude Opus 4.5