MimiOps mcp server for Kubernetes

io.github.sergelogvinov由 GitHub 帳號 sergelogvinov 發布v0.5.0更新於 Oct 24, 2026

MimiOps is an opinionated MCP server for Kubernetes

概覽

AI 產生的概覽

一個在本機執行、有明確取捨的 MCP 伺服器,為 AI 助理提供受限且可控的 Kubernetes 工具,用來檢視叢集與排查工作負載問題。

可以做什麼
列出並描述叢集、命名空間、節點、Pod、工作負載、服務、自動擴縮、配額、儲存類別與事件,並讀取 Pod 與 Job 日誌以進行排查。檢視 Job 與 CronJob,包括建立 Job。啟用 Helm 擴充後可列出發行並查看發行狀態。啟用 FluxCD 擴充後可檢視 GitRepository、OCIRepository、HelmRelease 與 Kustomization。啟用 Karpenter 擴充後可列出 NodePool 及其容量與就緒資訊。啟用破壞性工具後可刪除 Pod 與 Job、暫停或恢復 CronJob、擴縮工作負載、回復 Helm 發行,以及觸發或暫停 Flux 協調。
適用情境
適合讓助理排查 Kubernetes 問題、讀取日誌與事件並說明故障原因,同時不賦予其不受限制的叢集存取權限。也適合使用 Helm、FluxCD 或 Karpenter、希望以唯讀檢視為主並保留少量受控復原操作的團隊。
執行需求
以 stdio 本機程序執行,可透過 Homebrew 或 OCI 映像安裝,也可作為 MCPB 套件匯入 Claude Desktop 等用戶端。需要 kubeconfig 檔案,透過 KUBECONFIG 環境變數或 kubeconfig 參數傳入,並需指定內容與可選的命名空間。破壞性工具需開啟 allow-destructive 參數;擴充透過 extensions 參數選擇。
安裝前請注意
破壞性與變更類工具預設關閉,但一旦開啟即可刪除 Pod 與 Job、擴縮工作負載、暫停 CronJob、回復 Helm 發行並觸發 Flux 協調。伺服器以所提供 kubeconfig 的權限運作,建議使用最小權限的內容或模擬身分。即使未開啟破壞性模式也能建立 Job。請確認指向正確的叢集與命名空間,避免誤操作。

安裝

在 SourceWeft 中

  1. 開啟 儀表板中的 MimiOps mcp server for Kubernetes,將其新增到工作區。
  2. 為需要使用其工具的對話啟用該服務。

Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。

其他 MCP 客戶端

參照 儲存庫 中的啟動說明。

README

Mimiops MCP Server

Motivation

There are many ways to manage Kubernetes workloads, but there are also many ways to break them by accident. We have already seen cases where AI agents did something that we did not expect. Giving an AI agent full access to Kubernetes can be risky, especially when it can create, update, or delete resources directly.

In my opinion, we need to provide safe and well-defined tools for AI agents. These tools should limit what an agent can do, validate changes before applying them, and help prevent dangerous operations.

We also need tools that can help investigate and fix workload issues. Many workloads are already managed by well-known tools such as Argo CD, FluxCD, Helm, and other GitOps or deployment systems. An AI agent should understand who manages a resource and avoid making direct changes that can conflict with these tools.

The goal is not to give AI full control of Kubernetes. The goal is to give AI a safe interface that allows it to understand problems, suggest changes, and perform only controlled operations.

Overview

Mimi OPS is not designed to give AI agents unrestricted Kubernetes access. Instead, it provides a small set of well-known and controlled operations.

The agent can observe, investigate, and perform a limited number of safe recovery actions. More dangerous operations, such as editing arbitrary resources, applying YAML, changing secrets, or deleting persistent data are strongly restricted.

This makes Mimi OPS an opinionated interface between AI agents and Kubernetes: powerful enough for common troubleshooting, but limited enough to reduce the risk of unexpected changes.

Keep your AI on the leash.

Kubernetes core tools

Core tools are always registered. The names below are the MCP tool names exposed by the server:

  • Clusters: clusters_list (multi-cluster configurations only), clusters_describe.
  • Pods: pods_list, pods_get, pods_describe, pods_log.
  • Jobs: jobs_list, jobs_get, jobs_describe, jobs_log, jobs_create.
  • CronJobs: cronjobs_list, cronjobs_get, cronjobs_describe.
  • Nodes: nodes_list, nodes_get, nodes_describe.
  • Namespaces: namespaces_list, namespaces_describe.
  • Resource configuration: resourcequotas_list, resourcequotas_describe, limitranges_list, limitranges_describe, storageclasses_list, persistentvolumeclaims_list, persistentvolumeclaims_describe, priorityclasses_list.
  • Events: events_get.
  • Workloads (Deployments, StatefulSets, and DaemonSets): workloads_list, workloads_get, workloads_describe.
  • Autoscaling: hpa_list, hpa_describe.
  • Services: services_list, services_describe.

The following additional recovery tools are registered only when --allow-destructive is enabled:

  • pods_delete — delete a pod so its controller can recreate it.
  • jobs_delete — delete a Job.
  • cronjobs_suspend, cronjobs_resume — suspend or resume scheduled runs.
  • workloads_scale — scale a Deployment, StatefulSet, or DaemonSet.

Helm extension

Helm tools are enabled by default with --extensions helm:

  • helm_list — list Helm releases.
  • helm_status — inspect release status, revision, and related information.
  • helm_rollback — roll back a release to its previous revision; available only with --allow-destructive.

FluxCD extension

Enable FluxCD tools with --extensions fluxcd (or --extensions all). Read-only inspection tools include:

  • GitRepository: flux_gitrepositories_list, flux_gitrepositories_describe.
  • OCIRepository: flux_ocirepositories_list, flux_ocirepositories_describe.
  • HelmRelease: flux_helmreleases_list, flux_helmreleases_describe.
  • Kustomization: flux_kustomizations_list, flux_kustomizations_describe.

With --allow-destructive, Flux also exposes:

  • flux_reconcile — trigger an immediate reconciliation of a GitRepository, HelmRelease, or Kustomization.
  • flux_reconciliation — suspend or resume a Flux HelmRelease or Kustomization.

Karpenter extension

Enable Karpenter tools with --extensions karpenter (or --extensions all). Read-only inspection tools include:

  • NodePool: karpenter_nodepools_list — list NodePools with node class, node count, readiness, weight, and CPU/memory provisioned vs limits.

Installation

sh
brew install sergelogvinov/tap/mimiops-mcp

MCPB-compatible clients

MimiOPS includes an MCPB manifest for clients that support MCP bundles, such as Claude Desktop. Download the .mcpb release bundle and open/import it in the client. The bundle:

  • starts server/mimiops-mcp mcp;
  • prompts for a kubeconfig file; and
  • passes that file as KUBECONFIG to the server.

Manual editor configuration

For clients that use a JSON MCP configuration, add a server entry similar to the following:

json
{  "mcpServers": {    "mimiops": {      "command": "mimiops-mcp",      "args": ["mcp"]    }  }}

Zed uses a command object under context_servers:

json
{  "context_servers": {    "mimiops": {      "command": {        "path": "mimiops-mcp",        "args": ["mcp"],        "env": {          "KUBECONFIG": "/absolute/path/to/kubeconfig"        }      }    }  }}

Restart or reload the client after saving its configuration. The server will then appear as mimiops and expose the tools listed below.

Running

Common flags

Kubernetes and application flags are global (persistent) and inherited by mcp, server, and tools:

FlagDefaultEnvironment variableDescription
--kubeconfig <path>autoKUBECONFIGPath to kubeconfig; uses the default Kubernetes loading rules when unset
--context <name>current contextCONTEXTKubernetes context to use
--namespace <name>all namespacesNAMESPACEDefault namespace scope for operations
--as <user>unsetASKubernetes impersonation user
--extensions <list>helmEXTENSIONSComma-separated extensions to enable, or all
--allow-destructivefalseALLOW_DESTRUCTIVEEnable destructive or mutating tools
--log-level <level>infoLOG_LEVELdebug, info, warn, or error
--log-format <format>textLOG_FORMATtext or json

The Kubernetes client also exposes the standard genericclioptions connection and authentication flags. The tools command adds this command-specific flag:

CommandFlagDefaultDescription
tools--output, -otextRender tool results as text, json, or yaml
server--port8080HTTP/SSE listen port; environment variable: PORT

Available commands are mcp (stdio), server (HTTP/SSE), tools (direct CLI invocation), and version.

Examples

sh
# stdio with kubeconfig and impersonation./bin/mimiops-mcp mcp --kubeconfig ~/.kube/dev.yaml --as developer
# SSE server scoped to a namespace, with destructive tools enabled./bin/mimiops-mcp server --namespace default --allow-destructive --port 8080
# List enabled tools, or invoke one directly from the CLI./bin/mimiops-mcp tools --extensions all./bin/mimiops-mcp tools pods_list namespace=default -o json

License

Apache-2.0

來源:README.md,提交 e1ba863

工具

0
SourceWeft 尚未在沙箱中啟動過該軟體包,因此其工具未知。

版本歷史

2
  1. v0.5.0最新Sep 30, 2026
  2. v0.4.0Sep 16, 2026

評分

已滿足適用檢查項的 50%

該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。

  • 近 30 天內可連通25 分

    請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。

  • 已宣告認證方式10 分

    請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。

  • 已列出工具15 分

    請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。

  • 描述必需15 分
  • 圖示10 分
  • 文件15 分
  • 授權條款10 分