| 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.10.3" |
| 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 "0ebf02328207d4c3d862c837b5e973de5bac808df92b0941737721d467287f7f" |
| 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 "1107fea28285823e1436e4f38a4e00a0b472d8a43c379da7dfd200c914a4b9dd" |
| 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 "967b9eababfdbd2ef1987c571d55bc7c028cd1db7f99279830634c58db311e32" |
| 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 "74997fb0934e70a22f20c2e112fb4d883867dc1f01a7bcdc94cf86d13b5cbd31" |
| 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