cask "toolhive-studio" do arch arm: "arm64", intel: "x64" version "0.40.2" sha256 arm: "46a4e966788cbd37c99b23200cc4c74d13149be23029ab44ace10218c24414a7", intel: "2c2f5216a20d2a6521a1a7f016ae808c1fa0ac2268be5b0d71e95888e4e0f1a2" url "https://github.com/stacklok/toolhive-studio/releases/download/v#{version}/ToolHive-#{arch}.dmg" name "ToolHive" desc "Desktop application to install, manage, and run MCP servers" homepage "https://github.com/stacklok/toolhive-studio" livecheck do url :url regex(/^v?(\d+(?:\.\d+)+)$/i) end depends_on macos: :ventura app "ToolHive.app" uninstall quit: "com.electron.toolhive" zap trash: [ "~/Library/Application Support/com.apple.sharedfilelist/com.apple.LSSharedFileList.ApplicationRecentDocuments/com.electron.toolhive.sfl*", "~/Library/Application Support/ToolHive", "~/Library/Caches/com.electron.toolhive*", "~/Library/HTTPStorages/com.electron.toolhive", "~/Library/Logs/ToolHive", "~/Library/Preferences/com.electron.toolhive.plist", ] end