Skip to content

Commit 77f7a9f

Browse files
Dumbrisclaude
andcommitted
Switch to pre-built binaries (fixes #257)
- Replace source build with platform-specific pre-built binaries - Removes Node.js/Go build dependencies - Installs mcpproxy-tray on macOS - Faster install (no compilation needed) - Same binaries tested in CI Fixes Homebrew install on Ubuntu where web/frontend/dist was not included in the source tarball. Co-Authored-By: Claude Opus 4.5 <[email protected]>
1 parent 83b95c8 commit 77f7a9f

1 file changed

Lines changed: 22 additions & 6 deletions

File tree

‎Formula/mcpproxy.rb‎

Lines changed: 22 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,32 @@
11
class Mcpproxy < Formula
2-
desc "Smart MCP Proxy - Intelligent tool discovery and proxying for Model Context Protocol servers"
2+
desc "Smart MCP Proxy - Intelligent tool discovery and proxying for MCP servers"
33
homepage "https://github.com/smart-mcp-proxy/mcpproxy-go"
4-
url "https://github.com/smart-mcp-proxy/mcpproxy-go/archive/refs/tags/v0.14.0.tar.gz"
5-
sha256 "ba368e9ae497aea36ee6d51e084d7b8fd2f4f020bc298a4d59a025f0cb12d8c5"
4+
version "0.14.0"
65
license "MIT"
7-
head "https://github.com/smart-mcp-proxy/mcpproxy-go.git"
86

9-
depends_on "go" => :build
7+
on_macos do
8+
if Hardware::CPU.arm?
9+
url "https://github.com/smart-mcp-proxy/mcpproxy-go/releases/download/v0.14.0/mcpproxy-0.14.0-darwin-arm64.tar.gz"
10+
sha256 "a7b7d17cd2bd92f7c7ee1bce52037c3ff1ef5cd3c3ce58668e38fdee0d866b87"
11+
else
12+
url "https://github.com/smart-mcp-proxy/mcpproxy-go/releases/download/v0.14.0/mcpproxy-0.14.0-darwin-amd64.tar.gz"
13+
sha256 "c57a6effbf268af0341267e91b132df6942586497a3b84cdeb0a1536a93d2268"
14+
end
15+
end
16+
17+
on_linux do
18+
if Hardware::CPU.arm?
19+
url "https://github.com/smart-mcp-proxy/mcpproxy-go/releases/download/v0.14.0/mcpproxy-0.14.0-linux-arm64.tar.gz"
20+
sha256 "98d670e7e3570635e4997453fbc2f915c767edd066771296973a6eb3509c4293"
21+
else
22+
url "https://github.com/smart-mcp-proxy/mcpproxy-go/releases/download/v0.14.0/mcpproxy-0.14.0-linux-amd64.tar.gz"
23+
sha256 "5a12029a963d20c058ef2da6a55a0cee395342d745419517939d7eee09352679"
24+
end
25+
end
1026

1127
def install
12-
system "go", "build", "-ldflags", "-s -w -X mcpproxy-go/cmd/mcpproxy.version=v0.14.0 -X main.version=v0.14.0 -X mcpproxy-go/internal/httpapi.buildVersion=v0.14.0", "-o", "mcpproxy", "./cmd/mcpproxy"
1328
bin.install "mcpproxy"
29+
bin.install "mcpproxy-tray" if OS.mac? && File.exist?("mcpproxy-tray")
1430
end
1531

1632
test do

0 commit comments

Comments
 (0)