diff --git a/Formula/mcpctl.rb b/Formula/mcpctl.rb new file mode 100644 index 0000000..48a45cf --- /dev/null +++ b/Formula/mcpctl.rb @@ -0,0 +1,29 @@ +class Mcpctl < Formula + desc "kubectl-like CLI for managing MCP servers" + homepage "https://mysources.co.uk/michal/mcpctl" + version "0.0.1.20261009" + license "MIT" + + # Self-contained bun-compiled binary; the only runtime dependency is jq. + # Linux x86_64 only (that is the compiled target); other platforms are not published. + depends_on "jq" + depends_on :linux + + on_linux do + on_intel do + url "https://mysources.co.uk/michal/mcpctl/releases/download/cli-v0.0.1.20261009/mcpctl-0.0.1.20261009-linux-amd64.tar.gz" + sha256 "87fc7e6a3a732607aadc5fd10e9b2af48c3ee7c660e858f610d2ab0c61e84363" + end + end + + def install + bin.install "mcpctl" + bin.install "claude-vllm" if File.exist?("claude-vllm") + bash_completion.install "completions/mcpctl.bash" => "mcpctl" if File.exist?("completions/mcpctl.bash") + fish_completion.install "completions/mcpctl.fish" if File.exist?("completions/mcpctl.fish") + end + + test do + assert_match "0.0.1.20261009", shell_output("#{bin}/mcpctl --version") + end +end \ No newline at end of file