Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 9 additions & 11 deletions Formula/k/kubernetes-mcp-server.rb
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
class KubernetesMcpServer < Formula
desc "MCP server for Kubernetes"
homepage "https://github.com/containers/kubernetes-mcp-server"
url "https://github.com/containers/kubernetes-mcp-server/archive/refs/tags/v0.0.54.tar.gz"
sha256 "c2dfb0323f83d275598399342dc2404df00589f2118535448ce40a330278c25e"
url "https://github.com/containers/kubernetes-mcp-server/archive/refs/tags/v0.0.55.tar.gz"
sha256 "9afd4cfc730acfcb17323ba87a4fa45acd05027eecbb1611acdc80233f8d714d"
license "Apache-2.0"
head "https://github.com/containers/kubernetes-mcp-server.git", branch: "main"

bottle do
sha256 cellar: :any_skip_relocation, arm64_tahoe: "0ac2fb3937644ed73cd6456b52adfb9e6c74571d2db58122baa7144ba2a7e49b"
sha256 cellar: :any_skip_relocation, arm64_sequoia: "77178c6e9185b4f900c7d9a1d2922861c97ff3b6d592695f946fe6f39064b818"
sha256 cellar: :any_skip_relocation, arm64_sonoma: "f12e52bb36d5386ce4db2755c8025ffb8482a0b7a911c7261cd039cf8c0198e3"
sha256 cellar: :any_skip_relocation, sonoma: "61aa78569c82cedd00eb76c918e4e2bb3fd6cdfddb99c6506fe70d27d591a257"
sha256 cellar: :any_skip_relocation, arm64_linux: "17025806c352d93d3dc70857b5bec6a13b09f298447b177f3e683ff6f4a5367c"
sha256 cellar: :any_skip_relocation, x86_64_linux: "99d06fcabae4d8fd6f42124385dce587408a7657818f3ab95d778e3bdb4217ee"
sha256 cellar: :any_skip_relocation, arm64_tahoe: "4c550217100fc241a99b82fe3990067954180b2bd272e1bb1b9032b3a12ce211"
sha256 cellar: :any_skip_relocation, arm64_sequoia: "c22772a472303cb2e382b93e2de8272d50ce66a4ec9719d71fe60cd26ad37e89"
sha256 cellar: :any_skip_relocation, arm64_sonoma: "16c64c6c3e897ffe4b82872c511e6ebbaadd3806216229cc434012636f554806"
sha256 cellar: :any_skip_relocation, sonoma: "d1949ad8e741b19b302581bc7a96c55279cc118f3570f3881d0d6f0728863d9c"
sha256 cellar: :any_skip_relocation, arm64_linux: "35defb457f3e877a0f9c46dc68abc926fc0bb5c3776a7c3b6ac61937fecf9371"
sha256 cellar: :any_skip_relocation, x86_64_linux: "19e89d9943b3c93db48f48d94a3e6be98b831426c58ff5cbcb03e3e9081dbc7b"
end

depends_on "go" => :build
Expand Down Expand Up @@ -52,14 +52,12 @@ def install
token: test-token
YAML

ENV["KUBECONFIG"] = kubeconfig.to_s

json = <<~JSON
{"jsonrpc":"2.0","id":1,"method":"initialize","params":{"protocolVersion":"2025-03-26"}}
{"jsonrpc":"2.0","id":2,"method":"tools/list"}
JSON

output = pipe_output(bin/"kubernetes-mcp-server", json, 0)
output = shell_output("(echo '#{json}'; sleep 1) | #{bin}/kubernetes-mcp-server --kubeconfig #{kubeconfig} 2>&1")
assert_match "Get the current Kubernetes configuration content as a kubeconfig YAML", output
end
end
Loading