Skip to content

fix(k8s): wire mcp-server cluster tool settings (#7348) - #7605

Merged
dan-petty merged 3 commits into
mainfrom
fix/7348-mcp-server-cluster-tool-settings
Nov 28, 2026
Merged

dan-petty merged 3 commits into
mainfrom
fix/7348-mcp-server-cluster-tool-settings

Conversation

@dan-petty

Copy link
Copy Markdown
Owner

Give Deployment mcp-server a read-only ServiceAccount and ClusterRole, API-server and service egress rules, Argo CD/Grafana token wiring via Push-Secrets, and the devops k8s mcp-server-check probe command.

  • Add serviceaccount.yaml (automountServiceAccountToken: true) and clusterrole.yaml (get, list, watch on nodes, pods).
  • Add mcp-server-egress NetworkPolicy for TCP 6443 API access plus argocd and monitoring.
  • Add DEVOPS_CLI_ARGOCD_TOKEN and DEVOPS_CLI_GRAFANA_TOKEN in CLUSTER_SECRETS and deployment.yaml.
  • Implement devops k8s mcp-server-check and tests/commands/k8s/test_k8s_mcp_server_check.py.

Closes #7348

Change: openspec/changes/archive/2026-11-28-7348-mcp-server-cluster-tool-settings/

@dan-petty dan-petty added type/bug Type bug: the code does not do what it must scope/k8s Kubernetes commands, Helm charts, pods, services, and policies labels Nov 28, 2026
@dan-petty
dan-petty marked this pull request as ready for review November 28, 2026 16:53
@dan-petty

Copy link
Copy Markdown
Owner Author

Check results

Head commit: b7790bfde0e922a659c2a4b4d588c729d336e8be

Check Conclusion Link
Tests & Coverage success run
devops-cli success run
zizmor success run
trivy-config success run
Trivy neutral run
Changed-Test Independence success run
Plan Check skipped run
CodeQL success run
Test Job Duration skipped run
Tests on Main skipped run
Dependency Freshness skipped run
Tests & Coverage (shard 3 of 6) success run
Tests & Coverage (shard 4 of 6) success run
Tests & Coverage (shard 5 of 6) success run
Tests & Coverage (shard 1 of 6) success run
Tests & Coverage (shard 2 of 6) success run
Runner Image success run
Changed-Test Independence (run 1 of 3) success run
Changed-Test Independence (run 3 of 3) success run
Changed-Test Independence (run 2 of 3) success run
Tests & Coverage (shard 6 of 6) success run
Design Tokens success run
Service Image success run
Fail-to-Pass Check success run
Image Pins success run
Semantic PR title success run
Static Analysis success run
Docs Site Build success run
Analyze (actions) success run
Analyze (python) success run

Fail-to-pass run: https://github.com/dan-petty/devops-cli/actions/runs/46166874658/job/141046251706

Skipped check: Trivy
Skipped check: Plan Check
Skipped check: Test Job Duration
Skipped check: Tests on Main
Skipped check: Dependency Freshness

@dan-petty
dan-petty merged commit 76f326b into main Nov 28, 2026
30 checks passed
@dan-petty
dan-petty deleted the fix/7348-mcp-server-cluster-tool-settings branch November 28, 2026 17:20
dan-petty-release Bot added a commit that referenced this pull request Nov 28, 2026
🤖 I have created a release *beep* *boop*
---


##
[0.237.0](v0.236.0...v0.237.0)
(2026-11-28)


### Features

* **design:** render report charts from tokens
([#4758](#4758))
([#7608](#7608))
([fdf16f7](fdf16f7))
* **monitoring:** export outdated dependencies from Renovate
([#4911](#4911))
([#7603](#7603))
([130a7aa](130a7aa))
* **monitoring:** show soft-cap and fix-check results
([#4868](#4868))
([#7607](#7607))
([9c9ea7e](9c9ea7e))
* **output:** add Rich theme of status roles and marks
([#7606](#7606))
([82a82f6](82a82f6))
* **telemetry:** rank usage errors by proposal class
([#7609](#7609))
([dd569fd](dd569fd)),
closes [#4840](#4840)


### Bug Fixes

* **ci:** refuse other commits on release branch
([#7220](#7220))
([#7610](#7610))
([5866f42](5866f42))
* **k8s:** wire mcp-server cluster tool settings
([#7348](#7348))
([#7605](#7605))
([76f326b](76f326b))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

Co-authored-by: dan-petty-release[bot] <346998822+dan-petty-release[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

scope/k8s Kubernetes commands, Helm charts, pods, services, and policies type/bug Type bug: the code does not do what it must

Projects

None yet

Development

Successfully merging this pull request may close these issues.

fix(k8s): give the MCP server the settings of its cluster tools

1 participant