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
Rust agentsagiaiai-memoryaudio-recordingcomputer-visionhermeshermes-agentllmlocal-ailocal-firstmachine-learningmcpmultimodalopenclawprivacyrewindscreen-recordingspeech-to-textycombinator
fix(mcp): fetch latest MCP release dynamically + remove hardcoded paths
Louis Beaumontd2c16c1b78c2
diff --git a/.claude/skills/release/SKILL.md b/.claude/skills/release/SKILL.mdindex 694de04a8..b3596f29f 100644--- a/.claude/skills/release/SKILL.md+++ b/.claude/skills/release/SKILL.md@@ -23,7 +23,6 @@ Automate releasing all components of the screenpipe monorepo.### 1. Check Current Versions```bash-cd /Users/louisbeaumont/Documents/screenpipeecho "=== App ===" && grep '^version' screenpipe-app-tauri/src-tauri/Cargo.toml | head -1echo "=== CLI ===" && grep '^version' Cargo.toml | head -1echo "=== MCP ===" && grep '"version"' screenpipe-integrations/screenpipe-mcp/package.json@@ -37,7 +36,6 @@ Use Edit tool to update version strings in the files listed above.### 3. Commit & Push```bash-cd /Users/louisbeaumont/Documents/screenpipegit add -Agit commit -m "Bump versions: App vX.Y.Z, CLI v0.2.X, MCP vX.Y.Z"git pull --rebase@@ -48,25 +46,21 @@ git push**Desktop App (macOS + Windows):**```bash-cd /Users/louisbeaumont/Documents/screenpipegh workflow run release-app.yml```**CLI (all platforms):**```bash-cd /Users/louisbeaumont/Documents/screenpipegh workflow run release-cli.yml```**MCP:**```bash-cd /Users/louisbeaumont/Documents/screenpipegh workflow run release-mcp.yml```### 5. Monitor Build Status```bash-cd /Users/louisbeaumont/Documents/screenpipe# List recent runsgh run list --limit 5@@ -79,8 +73,6 @@ gh run view <RUN_ID> --json status,conclusion,jobs --jq '{status: .status, conclMost common release - just the desktop app:```bash-cd /Users/louisbeaumont/Documents/screenpipe-# 1. Bump app version (edit Cargo.toml)# 2. Commit and pushgit add -A && git commit -m "Bump app to vX.Y.Z" && git pull --rebase && git push@@ -97,8 +89,6 @@ sleep 5 && gh run list --workflow=release-app.yml --limit=1Release everything:```bash-cd /Users/louisbeaumont/Documents/screenpipe-# Trigger all release workflowsgh workflow run release-app.ymlgh workflow run release-cli.ymldiff --git a/screenpipe-app-tauri/components/settings/connections-section.tsx b/screenpipe-app-tauri/components/settings/connections-section.tsxindex c4e131310..721529975 100644--- a/screenpipe-app-tauri/components/settings/connections-section.tsx+++ b/screenpipe-app-tauri/components/settings/connections-section.tsx@@ -11,7 +11,46 @@ import { fetch as tauriFetch } from "@tauri-apps/plugin-http";import { platform } from "@tauri-apps/plugin-os";import { tempDir, join } from "@tauri-apps/api/path";-const MCPB_RELEASE_URL = "https://github.com/mediar-ai/screenpipe/releases/download/mcp-v0.3.1/screenpipe-mcp.mcpb";+const GITHUB_RELEASES_API = "https://api.github.com/repos/mediar-ai/screenpipe/releases";++interface GitHubAsset {+ name: string;+ browser_download_url: string;+}++interface GitHubRelease {+ tag_name: string;+ assets: GitHubAsset[];+}++async function getLatestMcpbUrl(): Promise<string> {+ const response = await tauriFetch(GITHUB_RELEASES_API, {+ method: "GET",+ headers: {+ "Accept": "application/vnd.github.v3+json",+ },+ });++ if (!response.ok) {+ throw new Error("Failed to fetch releases");+ }++ const releases: GitHubRelease[] = await response.json();++ // Find the latest mcp release (tag starts with "mcp-v")+ const mcpRelease = releases.find(r => r.tag_name.startsWith("mcp-v"));+ if (!mcpRelease) {+ throw new Error("No MCP release found");+ }++ // Find the .mcpb asset+ const mcpbAsset = mcpRelease.assets.find(a => a.name.endsWith(".mcpb"));+ if (!mcpbAsset) {+ throw new Error("No .mcpb file found in release");+ }++ return mcpbAsset.browser_download_url;+}export function ConnectionsSection() {const [downloadState, setDownloadState] = useState<"idle" | "downloading" | "downloaded">("idle");@@ -20,8 +59,11 @@ export function ConnectionsSection() {try {setDownloadState("downloading");+ // Get the latest mcpb URL dynamically+ const mcpbUrl = await getLatestMcpbUrl();+// Use Tauri's HTTP client to avoid CORS issues- const response = await tauriFetch(MCPB_RELEASE_URL, {+ const response = await tauriFetch(mcpbUrl, {method: "GET",});