Skip to content

Pinning MacosUseSDK (to URL) #3

@oschrenk

Description

@oschrenk

Since the MacosUseSDK is a local package dependency, and referred to as a relative path in the Package.swift, it's hard to publish the the mcp-server as a homebrew formula.

This is possibly on purpose, since both are in early development, but would you consider switching to a remote dependency?

This would allow using a Homebrew Formula similar to

class McpServerMacosUse < Formula
  desc "AI agent that controls macOS"
  homepage "https://github.com/mediar-ai/mcp-server-macos-use"
  url "https://github.com/mediar-ai/mcp-server-macos-use.git",
      revision: "24b4c9ff4a4fc3cf6828f05848b32e84b603ae1d"
  license "BSL-1.1"
  version "1"
  head "https://github.com/mediar-ai/mcp-server-macos-use.git", branch: "main"


  livecheck do
    url :stable
    strategy :github_latest
  end

  depends_on xcode: ["15.3", :build]

  uses_from_macos "swift" => :build

  def install
    args = if OS.mac?
      ["--disable-sandbox"]
    else
      ["--static-swift-stdlib"]
    end
    system "swift", "build", *args, "-c", "release", "--product", "mcp-server-macos-use"
    bin.install ".build/release/mcp-server-macos-use"
  end
end

This is currently not working brew install --build-from-source ./mcp-server-macos-use.rb because of some sandboxing of the build process inside homebrew.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions