Files
dmtrkovalenko--fff/Formula/fff-mcp.rb
T
Joe Taber cc289f0f93 chore: rename old fff.nvim repo refs (#762)
* chore: point residual repo refs at dmtrKovalenko/fff

Update install URLs, download targets, and docs after the GitHub
rename from fff.nvim to fff. Preserve the existing Neovim package
name (fff.nvim) in lazy/vim.pack snippets so upgraders keep the same
install dir and lockfile identity.

* chore(docs): align Neovim package name with repo basename

Drop the explicit fff.nvim package name so lazy/vim.pack use fff from
the repository URL. Mild migration cost for existing installs (new
plugin dir + clean of the old one). Drop this commit to keep the
lowest-pain name=fff.nvim install snippets from the previous commit.
2026-08-11 21:40:21 -07:00

61 lines
1.8 KiB
Ruby

# Originally authored by @jellydn (https://github.com/jellydn/homebrew-tap).
# Maintained in-repo; auto-bumped by .github/workflows/release.yaml on stable releases.
class FffMcp < Formula
desc "Fast file search toolkit for AI agents (MCP server)"
homepage "https://github.com/dmtrKovalenko/fff"
license "MIT"
version "0.10.3"
LIVECHECK_REPO = "dmtrKovalenko/fff".freeze
RELEASE_BASE = "https://github.com/dmtrKovalenko/fff/releases/download".freeze
on_macos do
on_arm do
url "#{RELEASE_BASE}/v#{version}/fff-mcp-aarch64-apple-darwin"
sha256 "8c52acf1e95540f02cf55579126ebf580cf48af15c76e1c90301c2c8c5acbcf9"
end
on_intel do
url "#{RELEASE_BASE}/v#{version}/fff-mcp-x86_64-apple-darwin"
sha256 "f72c31c7f3355d37ec526ba56fd716341bd7186a15a399910cf3f2b46fef2099"
end
end
on_linux do
on_arm do
url "#{RELEASE_BASE}/v#{version}/fff-mcp-aarch64-unknown-linux-gnu"
sha256 "ed2db5b7268c76619178594c31e400b0973668acfa42fe6b9a06a28ad459b667"
end
on_intel do
url "#{RELEASE_BASE}/v#{version}/fff-mcp-x86_64-unknown-linux-gnu"
sha256 "2692bc567f8c5609a179795f5ee95555d783a678acdad9c9883e6730654a057e"
end
end
livecheck do
url "https://github.com/#{LIVECHECK_REPO}/releases/latest"
strategy :github_latest
end
def install
if OS.mac?
if Hardware::CPU.arm?
bin.install "fff-mcp-aarch64-apple-darwin" => "fff-mcp"
elsif Hardware::CPU.intel?
bin.install "fff-mcp-x86_64-apple-darwin" => "fff-mcp"
end
elsif OS.linux?
if Hardware::CPU.arm?
bin.install "fff-mcp-aarch64-unknown-linux-gnu" => "fff-mcp"
elsif Hardware::CPU.intel?
bin.install "fff-mcp-x86_64-unknown-linux-gnu" => "fff-mcp"
end
end
end
test do
system bin/"fff-mcp", "--healthcheck"
end
end