You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Browse filesBrowse the repository at this point in the historyBrowse files
devstack-bot
committed
start: remove GitHub MCP Server binary install
The local binary download was unreliable for headless automation.
GitHub MCP Server is now configured via remote HTTP transport in
the config repo's mcp.json (api.githubcopilot.com).
info "Installing GitHub MCP Server ${_version}..."
140
-
mkdir -p /home/lpb/.local/pi-support/bin
141
-
# Direct GitHub CDN (github.com/.../releases/download/...) returns 404 from
142
-
# this network, and gh's .browser_download_url resolves to that same blocked
143
-
# URL. Instead download the release asset via the authenticated gh API
144
-
# octet-stream endpoint (redirects to object storage). Match by filename
145
-
# substring — full-string `==` on asset .name intermittently fails in gh's
146
-
# gojq, so use `contains`.
147
-
# Release tarball names carry NO version (github-mcp-server_Linux_x86_64.tar.gz).
148
-
# Match by the OS_ARCH substring only.
149
-
_asset_match="Linux_x86_64"
150
-
_asset_id="$(gh api "repos/github/github-mcp-server/releases/tags/${_version}" --jq '.assets[] | select(.name | contains("'"$_asset_match"'")) | .id'2>/dev/null | head -1)"
151
-
if [[ -n"$_asset_id" ]];then
152
-
if gh api -H "Accept: application/octet-stream""repos/github/github-mcp-server/releases/assets/${_asset_id}"> /tmp/github-mcp-server.tar.gz 2>/dev/null;then
153
-
tar -xzf /tmp/github-mcp-server.tar.gz -C /home/lpb/.local/pi-support/bin
154
-
chmod +x "$_github_mcp_bin"
155
-
rm -f /tmp/github-mcp-server.tar.gz
156
-
chown -R 1000:1000 /home/lpb/.local/pi-support
157
-
info "GitHub MCP Server v${_version} installed."
158
-
else
159
-
warn "Failed to download GitHub MCP Server binary via gh API."
160
-
fi
161
-
else
162
-
warn "Could not resolve GitHub MCP Server release asset for v${_version}."
163
-
warn "Manually install with: gh api -H 'Accept: application/octet-stream' <asset_url> > /tmp/github-mcp-server.tar.gz && tar -xzf /tmp/github-mcp-server.tar.gz -C /home/lpb/.local/pi-support/bin"
164
-
fi
165
-
else
166
-
debug "GitHub MCP Server already installed at $_github_mcp_bin"
0 commit comments