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 release workflow_dispatch + Claude Desktop install reliability
Louis Beaumont0a723e9499a9
diff --git a/.github/workflows/release-mcp.yml b/.github/workflows/release-mcp.ymlindex 5a8dda7cd..337ea69c6 100644--- a/.github/workflows/release-mcp.yml+++ b/.github/workflows/release-mcp.yml@@ -43,18 +43,29 @@ jobs:working-directory: crates/screenpipe-integrations/screenpipe-mcprun: mcpb pack- - name: Get version from tag+ - name: Get versionid: version- run: echo "VERSION=${GITHUB_REF#refs/tags/}" >> $GITHUB_OUTPUT+ working-directory: crates/screenpipe-integrations/screenpipe-mcp+ run: |+ if [[ "$GITHUB_REF" == refs/tags/* ]]; then+ echo "VERSION=${GITHUB_REF#refs/tags/}" >> $GITHUB_OUTPUT+ else+ # workflow_dispatch — read version from package.json+ VER=$(node -p "require('./package.json').version")+ echo "VERSION=mcp-v${VER}" >> $GITHUB_OUTPUT+ fi- name: Create GitHub Releaseenv:GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}run: |- gh release create ${{ steps.version.outputs.VERSION }} \- --title "MCP Server ${{ steps.version.outputs.VERSION }}" \+ TAG="${{ steps.version.outputs.VERSION }}"+ # create tag if it doesn't exist (workflow_dispatch case)+ git tag "$TAG" 2>/dev/null && git push origin "$TAG" || true+ gh release create "$TAG" \+ --title "MCP Server $TAG" \--generate-notes \--prerelease \crates/screenpipe-integrations/screenpipe-mcp/screenpipe-mcp.mcpb \- || gh release upload ${{ steps.version.outputs.VERSION }} \+ || gh release upload "$TAG" \crates/screenpipe-integrations/screenpipe-mcp/screenpipe-mcp.mcpb --clobberdiff --git a/apps/screenpipe-app-tauri/components/settings/connections-section.tsx b/apps/screenpipe-app-tauri/components/settings/connections-section.tsxindex cd091b2cd..079395f52 100644--- a/apps/screenpipe-app-tauri/components/settings/connections-section.tsx+++ b/apps/screenpipe-app-tauri/components/settings/connections-section.tsx@@ -436,19 +436,34 @@ export function ConnectionsSection() {await writeFile(filePath, uint8Array);- // Open Claude first, then open the .mcpb file to trigger the install modal+ // Open Claude first, wait for it to be ready, then trigger the .mcpb installconst os = platform();if (os === "macos") {- // Open Claude Desktop first+ // Open Claude Desktopconst openClaude = Command.create("open", ["-a", "Claude"]);await openClaude.execute();- // Wait for Claude to open- await new Promise(resolve => setTimeout(resolve, 1500));+ // Poll until Claude is actually running (up to 15s)+ for (let i = 0; i < 30; i++) {+ await new Promise(resolve => setTimeout(resolve, 500));+ try {+ const check = Command.create("sh", ["-c", "pgrep -x Claude"]);+ const result = await check.execute();+ if (result.code === 0) break;+ } catch { /* keep waiting */ }+ }+ // Extra grace period for the UI to finish loading+ await new Promise(resolve => setTimeout(resolve, 2000));- // Then open the .mcpb file - Claude will show the install modal- const openFile = Command.create("open", [filePath]);- await openFile.execute();+ // Open the .mcpb file — retry up to 3 times in case Claude isn't ready+ for (let attempt = 0; attempt < 3; attempt++) {+ const openFile = Command.create("open", [filePath]);+ await openFile.execute();+ // Wait and check if Claude config was updated (install modal accepted)+ await new Promise(resolve => setTimeout(resolve, 2000));+ const installed = await getInstalledMcpVersion();+ if (installed) break;+ }} else if (os === "windows") {// Find Claude Desktop at known install locationconst claudeExe = await findClaudeExeOnWindows();@@ -458,12 +473,26 @@ export function ConnectionsSection() {const openClaude = Command.create("cmd", ["/c", "start", "", claudeExe]);await openClaude.execute();- // Wait for Claude to initialize+ // Poll until Claude process is running (up to 15s)+ for (let i = 0; i < 30; i++) {+ await new Promise(resolve => setTimeout(resolve, 500));+ try {+ const check = Command.create("cmd", ["/c", "tasklist /FI \"IMAGENAME eq Claude.exe\" /NH"]);+ const result = await check.execute();+ if (result.stdout.includes("Claude.exe")) break;+ } catch { /* keep waiting */ }+ }+ // Extra grace period for UI to finish loadingawait new Promise(resolve => setTimeout(resolve, 2000));- // Open the .mcpb file — Claude handles the install modal- const openFile = Command.create("cmd", ["/c", "start", "", filePath]);- await openFile.execute();+ // Open the .mcpb file — retry up to 3 times+ for (let attempt = 0; attempt < 3; attempt++) {+ const openFile = Command.create("cmd", ["/c", "start", "", filePath]);+ await openFile.execute();+ await new Promise(resolve => setTimeout(resolve, 2000));+ const installed = await getInstalledMcpVersion();+ if (installed) break;+ }} else {// Claude not found — tell user where the file isawait message(