mcpctl 0.0.1.20261009: add formula (linux-amd64, release asset on michal/mcpctl)

This commit is contained in:
2026-10-12 14:18:10 +00:00
parent e4e6bbe03e
commit e641a0c2ac

29
Formula/mcpctl.rb Normal file
View File

@@ -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