Files
homebrew-tap/Formula/mcpctl.rb

29 lines
1.0 KiB
Ruby
Raw Normal View History

# mcpctl Homebrew formula. Self-contained bun-compiled binary (linux x86_64); runtime dep: jq.
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"
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
# the binary reports the project version ("0.0.1"), not the datestamped brew version
assert_match "0.0.1", shell_output("#{bin}/mcpctl --version")
end
end