Skip to content

Commit 975a7bc

Browse files
author
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).
1 parent f5f60d4 commit 975a7bc

2 files changed

Lines changed: 1 addition & 92 deletions

File tree

support/install-github-mcp-server.sh

Lines changed: 0 additions & 57 deletions
This file was deleted.

support/start.sh

Lines changed: 1 addition & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -129,43 +129,9 @@ export GITHUB_TOKEN="${GITHUB_TOKEN:-${LPB_GITHUB_TOKEN:-$(gh auth token 2>/dev/
129129
export GITHUB_PERSONAL_ACCESS_TOKEN="${GITHUB_TOKEN}"
130130
export LPB_GITHUB_TOKEN="${GITHUB_TOKEN}"
131131

132-
# ── GitHub MCP Server toolsets ──
132+
# ── GitHub MCP Server toolsets (see mcp.json for transport config) ──
133133
export GITHUB_TOOLSETS="${GITHUB_TOOLSETS:-${LPB_GITHUB_TOOLSETS:-all}}"
134134

135-
# ── GitHub MCP Server binary (install at startup if missing) ──
136-
_github_mcp_bin="/home/lpb/.local/pi-support/bin/github-mcp-server"
137-
if [[ ! -x "$_github_mcp_bin" ]]; then
138-
_version="${LPB_GITHUB_MCP_SERVER_VERSION:-v1.8.0}"
139-
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"
167-
fi
168-
169135
# ── Persistence flags ──
170136
export LPB_PERSIST_GH_CONFIG="${LPB_PERSIST_GH_CONFIG:-true}"
171137

0 commit comments

Comments
 (0)