From fb6f1a0325df0ab414ed9814a25743fc70209aa2 Mon Sep 17 00:00:00 2001 From: Dmitriy Kovalenko Date: Tue, 19 May 2026 17:28:48 -0700 Subject: [PATCH 1/2] fix: use GITHUB_TOKEN in install-mcp.sh to avoid rate limiting (#486) Co-Authored-By: Claude Sonnet 4.5 --- install-mcp.sh | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/install-mcp.sh b/install-mcp.sh index 645f6d0a..fccf8d65 100755 --- a/install-mcp.sh +++ b/install-mcp.sh @@ -88,7 +88,14 @@ get_latest_release_tag() { fi local releases_json - releases_json=$(curl -fsSL "https://api.github.com/repos/${REPO}/releases") \ + local curl_args=(-fsSL) + + # Use GitHub token if available to avoid rate limiting + if [ -n "${GITHUB_TOKEN:-}" ]; then + curl_args+=(-H "Authorization: token $GITHUB_TOKEN") + fi + + releases_json=$(curl "${curl_args[@]}" "https://api.github.com/repos/${REPO}/releases") \ || error "Failed to fetch releases from https://github.com/${REPO}/releases" # Find the first release that contains an fff-mcp binary for our platform From efd3d5a22a77be0a6b60531636b0029878ec28f9 Mon Sep 17 00:00:00 2001 From: Dmitriy Kovalenko Date: Wed, 20 May 2026 13:53:26 -0700 Subject: [PATCH 2/2] fix: use gh auth token instead of GITHUB_TOKEN env in install-mcp.sh --- install-mcp.sh | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/install-mcp.sh b/install-mcp.sh index fccf8d65..e3c78670 100755 --- a/install-mcp.sh +++ b/install-mcp.sh @@ -90,9 +90,13 @@ get_latest_release_tag() { local releases_json local curl_args=(-fsSL) - # Use GitHub token if available to avoid rate limiting - if [ -n "${GITHUB_TOKEN:-}" ]; then - curl_args+=(-H "Authorization: token $GITHUB_TOKEN") + # Use gh CLI token if available to avoid rate limiting + if command -v gh &>/dev/null; then + local gh_token + gh_token="$(gh auth token 2>/dev/null || true)" + if [ -n "$gh_token" ]; then + curl_args+=(-H "Authorization: token $gh_token") + fi fi releases_json=$(curl "${curl_args[@]}" "https://api.github.com/repos/${REPO}/releases") \