Skip to content
Merged
Changes from 1 commit
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
8 changes: 3 additions & 5 deletions Formula/k/kubernetes-mcp-server.rb
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
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"

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