Skip to content

macOS: tailscale CLI not found for App Store/Tailscale.app installs; add fallback paths and a TAILSCALE_BIN override #53

Closed

Description

@TMHSDigital

Why it matters

On macOS the most common installs (the Mac App Store app and the standalone Tailscale.app) do not put tailscale on PATH. Every tool then fails with BINARY_NOT_FOUND for a user who has Tailscale installed and running. The remedy text ("Install Tailscale from https://tailscale.com/download") is wrong for them, and there's no supported way to point the server at the binary. macOS is a core platform for the stated audience (solo devs and homelab operators on Claude Desktop, Claude Code, and Cursor).

Evidence

  • src/providers/cli.ts:32 defines only WINDOWS_FALLBACK_BIN. The fallback branch in run() (:137-146) is gated on platform === "win32".
  • CliProviderOptions.bin exists (:105-107), but src/index.ts:21 builds new CliProvider() with no options, so users can't set it. No env var is read anywhere.
  • Tailscale's own docs tell macOS GUI users to alias /Applications/Tailscale.app/Contents/MacOS/Tailscale or to install the CLI from the app's settings, which shows that PATH resolution fails by default.

Suggested approach

  1. Add a macOS fallback list tried in order after a PATH ENOENT: /Applications/Tailscale.app/Contents/MacOS/Tailscale, then /usr/local/bin/tailscale and /opt/homebrew/bin/tailscale (Claude Desktop launches servers with a minimal PATH, so Homebrew paths are often missing too).
  2. Read TAILSCALE_BIN (or TAILSCALE_MCP_BIN) in src/index.ts and pass it as bin. Document it in the README config snippets.
  3. Make the BINARY_NOT_FOUND remedy platform-specific. On macOS: "Tailscale.app found but CLI not on PATH: set TAILSCALE_BIN or enable the CLI in Tailscale settings."
  4. Tests: platform: "darwin" resolves the app-bundle path, an explicit bin skips fallbacks, and the env var is honored.

Done when

A stock Mac App Store install works with zero config, TAILSCALE_BIN overrides resolution on every platform, and both are tested and documented.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugpriority: P1

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions