Enable MCP write tools by setting read_only=false in openshift-mcp-server config#1660
Enable MCP write tools by setting read_only=false in openshift-mcp-server config#1660blublinsky wants to merge 1 commit into
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Enterprise Run ID: 📒 Files selected for processing (3)
📝 WalkthroughWalkthroughThis PR updates the OpenShift MCP server configuration to explicitly set ChangesOpenShift MCP server read_only configuration
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~3 minutes 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
|
/hold |
|
@blublinsky: all tests passed! Full PR test history. Your PR dashboard. DetailsInstructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. I understand the commands that are listed here. |
Description
Summary
The shipped
openshift-mcp-server-rhel9sidecar defaults toReadOnly: trueat build time (config_default_overrides.go). Removing the--read-onlyCLI flag (OLS-*) is not enough: without an explicit TOML override, MCP only exposes read-only tools (resources_list,resources_get, …) and the assistant falls back to suggestingocfor mutations.This change sets
read_only = falsein the operator-managedopenshift-mcp-server-configConfigMap so core write tools (e.g.resources_create_or_update,resources_delete,resources_scale) are available to Lightspeed while Secret/RBAC denied resources remain unchanged.Problem
--read-only✓read_only→ effective read-only from image defaultstools/list: 24 tools (read-only)oc createinstead of MCPFix
Add
read_only = falsetoOpenShiftMCPServerConfigTOMLand document in.ai/spec/what/security.md.Type of change
Related Tickets & Documents
Checklist before requesting a review
Testing
Summary by CodeRabbit
Documentation
Configuration
Tests