Skip to content

YC (S26) | Open Computer History | Continuously record your company computer work, map your workflows, help you find work worth automating, and power your agents' context

fix(install): fetch CLI releases instead of latest (fixes Linux install)

Louis Beaumont6efebcf2a862
diff --git a/.github/workflows/release-mcp.yml b/.github/workflows/release-mcp.yml
index fec642fad..cf754ab68 100644
--- a/.github/workflows/release-mcp.yml
+++ b/.github/workflows/release-mcp.yml
@@ -52,8 +52,9 @@ jobs:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
gh release create ${{ steps.version.outputs.VERSION }} \
- --title "${{ steps.version.outputs.VERSION }}" \
+ --title "MCP Server ${{ steps.version.outputs.VERSION }}" \
--generate-notes \
+ --prerelease \
screenpipe-integrations/screenpipe-mcp/screenpipe-mcp.mcpb \
|| gh release upload ${{ steps.version.outputs.VERSION }} \
screenpipe-integrations/screenpipe-mcp/screenpipe-mcp.mcpb --clobber
diff --git a/install.sh b/install.sh
index 7b1fa96d3..87890d5a6 100755
--- a/install.sh
+++ b/install.sh
@@ -41,9 +41,10 @@ get_os_arch() {
}
echo "fetching latest version from github..."
-LATEST_RELEASE=$(curl -s https://api.github.com/repos/mediar-ai/screenpipe/releases/latest)
-# Extract version using grep and sed for cross-platform compatibility
-VERSION=$(echo "$LATEST_RELEASE" | grep -o '"tag_name": *"v[^"]*"' | sed 's/.*"v\([^"]*\)".*/\1/')
+# Fetch releases and find the latest CLI release (tags starting with 'v', not 'mcp-')
+RELEASES=$(curl -s https://api.github.com/repos/mediar-ai/screenpipe/releases)
+# Find first release with tag starting with 'v' (CLI release, not MCP)
+VERSION=$(echo "$RELEASES" | grep -o '"tag_name": *"v[0-9][^"]*"' | head -1 | sed 's/.*"v\([^"]*\)".*/\1/')
if [ -z "$VERSION" ]; then
echo "failed to fetch latest version"
exit 1