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
feat(app): support Littlebird migration (#6695)
Louis Beaumont0505349b0db0
diff --git a/.github/pr-media/littlebird-migration-bridge.png b/.github/pr-media/littlebird-migration-bridge.pngnew file mode 100644index 000000000..07cc17a22Binary files /dev/null and b/.github/pr-media/littlebird-migration-bridge.png differdiff --git a/apps/screenpipe-app-tauri/components/settings/__tests__/integration-icon-keys.test.ts b/apps/screenpipe-app-tauri/components/settings/__tests__/integration-icon-keys.test.tsindex 7a5e9557d..dd6e96951 100644--- a/apps/screenpipe-app-tauri/components/settings/__tests__/integration-icon-keys.test.ts+++ b/apps/screenpipe-app-tauri/components/settings/__tests__/integration-icon-keys.test.ts@@ -5,6 +5,7 @@import { describe, it, expect } from "vitest";import {INTEGRATION_ICON_KEYS,+ MCP_OAUTH_PROVIDERS,TRY_IN_CHAT_PROMPTS,getOAuthFallbackMessage,getOAuthPanelCopy,@@ -18,7 +19,7 @@ import { connectionNameToId } from "../../../lib/utils/connection-chip";describe("INTEGRATION_ICON_KEYS", () => {it("is non-empty and includes core integrations", () => {expect(INTEGRATION_ICON_KEYS.size).toBeGreaterThan(0);- for (const id of ["slack", "google-calendar", "obsidian"]) {+ for (const id of ["slack", "google-calendar", "obsidian", "littlebird"]) {expect(INTEGRATION_ICON_KEYS.has(id)).toBe(true);}});@@ -45,11 +46,27 @@ describe("isMcpOAuthProviderTileConnected", () => {expect(isMcpOAuthProviderTileConnected("linear", true, { linear: false })).toBe(true);});+ it("treats the Littlebird migration bridge as a connected MCP provider", () => {+ expect(+ isMcpOAuthProviderTileConnected("littlebird", false, {+ littlebird: true,+ }),+ ).toBe(true);+ });+it("does not apply MCP provider state to unrelated connections", () => {expect(isMcpOAuthProviderTileConnected("github", false, { github: true })).toBe(false);});});+describe("MCP_OAUTH_PROVIDERS", () => {+ it("uses Littlebird's protected MCP endpoint for the migration bridge", () => {+ expect(MCP_OAUTH_PROVIDERS.find(({ id }) => id === "littlebird")?.url).toBe(+ "https://mcp.littlebird.ai/mcp",+ );+ });+});+describe("getOAuthFallbackMessage", () => {it("surfaces a Zendesk token fallback when the OAuth app is unavailable", () => {expect(getOAuthFallbackMessage("zendesk", "failed", "No such client")).toContain(diff --git a/apps/screenpipe-app-tauri/components/settings/connections-section.tsx b/apps/screenpipe-app-tauri/components/settings/connections-section.tsxindex e8a4b4c70..7a713c22e 100644--- a/apps/screenpipe-app-tauri/components/settings/connections-section.tsx+++ b/apps/screenpipe-app-tauri/components/settings/connections-section.tsx@@ -12,7 +12,7 @@ import { Input } from "@/components/ui/input";import { Label } from "@/components/ui/label";import { Select, SelectContent, SelectItem, SelectTrigger, SelectValue } from "@/components/ui/select";import { Dialog, DialogClose, DialogContent, DialogHeader, DialogTitle } from "@/components/ui/dialog";-import { Download, ExternalLink, Check, Loader2, Copy, Terminal, LogIn, LogOut, RotateCw, Send, X, HelpCircle, Search, Calendar as CalendarIcon, Eye, EyeOff, FolderOpen, Plus, AlertCircle, MessageSquare, Inbox, ChevronDown } from "lucide-react";+import { Download, ExternalLink, Check, Loader2, Copy, Terminal, LogIn, LogOut, RotateCw, Send, X, HelpCircle, Search, Calendar as CalendarIcon, Eye, EyeOff, FolderOpen, Plus, AlertCircle, MessageSquare, Inbox, ChevronDown, Bird } from "lucide-react";import { Tooltip, TooltipContent, TooltipProvider, TooltipTrigger } from "@/components/ui/tooltip";import { commands } from "@/lib/utils/tauri";import { useSettings } from "@/lib/hooks/use-settings";@@ -263,6 +263,7 @@ async function detectInstalledConnectionIds(): Promise<Set<string>> {addIf("notion", macAppExists("Notion")),addIf("linear", macAppExists("Linear")),addIf("perplexity", macAppExists("Perplexity")),+ addIf("littlebird", macAppExists("Littlebird")),addIf("krisp", macAppExists("Krisp")),addIf("codex", getCodexConfigPath().then(pathExists)),addIf("grok", getGrokConfigPath().then(pathExists)),@@ -330,6 +331,11 @@ async function detectInstalledConnectionIds(): Promise<Set<string>> {local("Programs", "Perplexity", "Perplexity.exe"),...windowsApps("Perplexity.exe"),])),+ addIf("littlebird", anyPathExists([+ local("Programs", "Littlebird", "Littlebird.exe"),+ roaming("Littlebird"),+ ...windowsApps("Littlebird.exe"),+ ])),addIf("krisp", anyPathExists([local("Programs", "Krisp", "Krisp.exe"),...program("Krisp", "Krisp.exe"),@@ -576,6 +582,7 @@ const INTEGRATION_ICONS: Record<string, React.ReactNode> = {quickbooks: <img src="/images/quickbooks.svg" alt="QuickBooks Online" className="w-5 h-5" />,notion: <img src="/images/notion.svg" alt="Notion" className="w-5 h-5 dark:invert" />,linear: <img src="/images/linear.svg" alt="Linear" className="w-5 h-5" />,+ littlebird: <Bird className="h-5 w-5 text-foreground" aria-label="Littlebird" />,krisp: <img src="/images/krisp.svg" alt="Krisp" className="w-5 h-5 dark:invert" />,plaud: <img src="/images/plaud.png" alt="Plaud" className="w-5 h-5 dark:invert" />,excalidraw: <img src="/images/excalidraw.svg" alt="Excalidraw" className="w-5 h-5" />,@@ -784,6 +791,7 @@ export const TRY_IN_CHAT_PROMPTS: Record<string, string> = {gmail: "Summarize my recent emails","google-drive": "Find my recent files in Google Drive","google-sheets": "What's in my latest spreadsheet?",+ littlebird: "Search my Littlebird memory for recent decisions and meetings",krisp: "Search my meeting transcripts for action items",excalidraw: "What's on my recent Excalidraw boards?",whatsapp: "What were the latest messages in my WhatsApp?",@@ -3238,7 +3246,7 @@ export function ApiIntegrationPanel({ integration, onRefresh }: {}// ----------------------------------------------------------------------------// Featured OAuth MCP cards (Krisp, Plaud)+// Featured OAuth MCP cards// ---------------------------------------------------------------------------//// Some providers expose their data (meeting transcripts, recordings, notes)@@ -3251,6 +3259,7 @@ export function ApiIntegrationPanel({ integration, onRefresh }: {const KRISP_MCP_URL = "https://mcp.krisp.ai/mcp";const PLAUD_MCP_URL = "https://mcp.plaud.ai/mcp";+const LITTLEBIRD_MCP_URL = "https://mcp.littlebird.ai/mcp";// Providers that run a first-party remote MCP server whose OAuth supports// Dynamic Client Registration (RFC 7591). For these, the tile connects in// one click via OAuthMcpPanel — no API key and no human-created@@ -3276,6 +3285,18 @@ export const MCP_OAUTH_PROVIDERS: {{ id: "confluence", name: "Confluence", url: "https://mcp.atlassian.com/v1/mcp", description: <>Connect Atlassian so your AI can search and edit your Confluence pages (and Jira issues). Sign-in uses Atlassian's OAuth — no API key, and screenpipe never sees your password.</> },{ id: "jira", name: "Jira", url: "https://mcp.atlassian.com/v1/mcp", description: <>Connect Atlassian so your AI can search and manage your Jira issues (and Confluence pages). Sign-in uses Atlassian's OAuth — no API key, and screenpipe never sees your password.</> },{ id: "notion", name: "Notion", url: "https://mcp.notion.com/mcp", description: <>Connect Notion so your AI can search, read, and write your pages and databases. Sign-in uses Notion's OAuth — no API key, and screenpipe never sees your password.</> },+ {+ id: "littlebird",+ name: "Littlebird",+ url: LITTLEBIRD_MCP_URL,+ description: (+ <>+ Connect Littlebird so your AI can search your existing Littlebird memory+ while Screenpipe builds new local history. This links access; it does not+ copy or delete data. Enable MCP in Littlebird before signing in.+ </>+ ),+ },];export function isMcpOAuthProviderTileConnected(@@ -4020,6 +4041,7 @@ export function ConnectionsSection({{ id: "notion", name: "Notion", icon: "notion", connected: false, detected: detectedConnectionIds.has("notion") },{ id: "linear", name: "Linear", icon: "linear", connected: false, detected: detectedConnectionIds.has("linear") },{ id: "perplexity", name: "Perplexity", icon: "perplexity", connected: false, detected: detectedConnectionIds.has("perplexity") },+ { id: "littlebird", name: "Littlebird", icon: "littlebird", connected: !!mcpProviderConnected.littlebird, detected: detectedConnectionIds.has("littlebird") },{ id: "krisp", name: "Krisp", icon: "krisp", connected: krispConnected, detected: detectedConnectionIds.has("krisp") },{ id: "plaud", name: "Plaud", icon: "plaud", connected: plaudConnected },{ id: "excalidraw", name: "Excalidraw", icon: "excalidraw", connected: excalidrawConnected },diff --git a/apps/screenpipe-app-tauri/lib/constants/connections.ts b/apps/screenpipe-app-tauri/lib/constants/connections.tsindex 2c9dc8e18..44a95dae2 100644--- a/apps/screenpipe-app-tauri/lib/constants/connections.ts+++ b/apps/screenpipe-app-tauri/lib/constants/connections.ts@@ -34,6 +34,7 @@ export const CONNECTION_CATEGORY_BY_ID: Record<string, string> = {ollama: "AI",lmstudio: "AI",msty: "AI",+ littlebird: "AI","custom-mcp": "AI",// Agent — autonomous agents & skills@@ -200,6 +201,7 @@ export const CONNECTION_HARDCODED_DESCRIPTIONS: Record<string, string> = {"notion": "Search Notion pages with your screen context","linear": "Search Linear issues from your screen context","perplexity": "Search the web with Perplexity AI",+ "littlebird": "Search your existing Littlebird memory during migration","krisp": "Search Krisp meeting transcripts and notes","plaud": "Search Plaud recordings and transcripts","excalidraw": "Search and edit your Excalidraw+ whiteboards",@@ -260,6 +262,7 @@ export const DEVICE_CONNECTION_ORDER = ["ollama","lmstudio","msty",+ "littlebird","krisp",// Plumbing last."custom-mcp",diff --git a/apps/screenpipe-app-tauri/src-tauri/assets/extensions/connection-gate.ts b/apps/screenpipe-app-tauri/src-tauri/assets/extensions/connection-gate.tsindex 073cd39aa..1176bf088 100644--- a/apps/screenpipe-app-tauri/src-tauri/assets/extensions/connection-gate.ts+++ b/apps/screenpipe-app-tauri/src-tauri/assets/extensions/connection-gate.ts@@ -46,6 +46,7 @@ const MCP_OAUTH_PROVIDERS: Record<string, string> = {confluence: "https://mcp.atlassian.com/v1/mcp",jira: "https://mcp.atlassian.com/v1/mcp",notion: "https://mcp.notion.com/mcp",+ littlebird: "https://mcp.littlebird.ai/mcp",};async function fetchConnections(signal?: AbortSignal): Promise<ConnectionItem[]> {