| 1 | class CodebaseMemoryMcp < Formula |
| 2 | desc "Fast code intelligence engine for AI coding agents" |
| 3 | homepage "https://github.com/DeusData/codebase-memory-mcp" |
| 4 | version "0.8.1" |
| 5 | license "MIT" |
| 6 | |
| 7 | on_macos do |
| 8 | on_arm do |
| 9 | url "https://github.com/DeusData/codebase-memory-mcp/releases/download/v#{version}/codebase-memory-mcp-darwin-arm64.tar.gz" |
| 10 | sha256 "fbd047509852021b5446a11141bcb0a3d1dcaebf6e5112460960f29f052c1c58" |
| 11 | end |
| 12 | on_intel do |
| 13 | url "https://github.com/DeusData/codebase-memory-mcp/releases/download/v#{version}/codebase-memory-mcp-darwin-amd64.tar.gz" |
| 14 | sha256 "fb62da3016ea12b948351208759b5c083fb1446cf6e78d6db8b7cd28fe86fd54" |
| 15 | end |
| 16 | end |
| 17 | |
| 18 | on_linux do |
| 19 | on_arm do |
| 20 | url "https://github.com/DeusData/codebase-memory-mcp/releases/download/v#{version}/codebase-memory-mcp-linux-arm64.tar.gz" |
| 21 | sha256 "d2f842d1365da5c35d9c5796f57a821c9745267350994346735e1e6e04d46091" |
| 22 | end |
| 23 | on_intel do |
| 24 | url "https://github.com/DeusData/codebase-memory-mcp/releases/download/v#{version}/codebase-memory-mcp-linux-amd64.tar.gz" |
| 25 | sha256 "dbd3b92ea870ef240b63059f26bda15015f76ef9978931bebc3a0f9d09470973" |
| 26 | end |
| 27 | end |
| 28 | |
| 29 | def install |
| 30 | bin.install "codebase-memory-mcp" |
| 31 | # Third-party attribution bundle (present in archives since v0.8.1) |
| 32 | doc.install "THIRD_PARTY_NOTICES.md" if File.exist?("THIRD_PARTY_NOTICES.md") |
| 33 | end |
| 34 | |
| 35 | def caveats |
| 36 | <<~EOS |
| 37 | Run the following to configure your coding agents: |
| 38 | codebase-memory-mcp install |
| 39 | |
| 40 | To tap this formula directly: |
| 41 | brew tap deusdata/codebase-memory-mcp https://github.com/DeusData/codebase-memory-mcp |
| 42 | brew install codebase-memory-mcp |
| 43 | EOS |
| 44 | end |
| 45 | |
| 46 | test do |
| 47 | assert_match "codebase-memory-mcp", shell_output("#{bin}/codebase-memory-mcp --version") |
| 48 | end |
| 49 | end |
nothing calls this directly
no outgoing calls
no test coverage detected