Skip to main content
Glama
Windows Desktop Bridge

Windows Desktop Bridge

by SimoChen00

Windows Desktop Bridge

中文说明

An open-source Antigravity plugin & zero-dependency MCP App for Windows that fixes four everyday AI-agent desktop friction points:

  1. Clickable inline cards instead of disruptive popups — Renders a native theme-aware MCP App card (ui://win-desktop-bridge/cards.html, SEP-1865) directly inside chat. Nothing opens until you click a button.

  2. Open generated HTML in a real browser, not your code editor — Automatically detects Chrome, Edge, Brave, or Firefox so local .html reports/previews open cleanly in a real browser instead of raw source in the IDE.

  3. Reliable Explorer /select for paths with spaces & Unicode — Uses Windows verbatim argument handling so highlighting files in paths with spaces or CJK characters never falls back to opening Documents.

  4. No more Windows UAC installer hangs — Downloads official https:// installers with a 30-second byte-stall watchdog and SHA-256 verification, then presents a clickable card to locate the verified installer in Explorer for manual UAC approval.

Zero-Dependency Runtime

The shipped plugin requires only Node.js (>= 18.17) on PATH. The inline MCP App UI (ui/cards.html) is pre-bundled as a single self-contained HTML document — end users do not need to run npm install.

Related MCP server: jenny-mcp-server

Quick Install (Windows)

git clone https://github.com/SimoChen00/win-desktop-bridge.git
cd win-desktop-bridge
.\install.ps1

Antigravity automatically discovers plugins in ~/.gemini/config/plugins/win-desktop-bridge/. Toggle it anytime from Customizations → Plugins.

To remove it:

.\uninstall.ps1

Tools Provided

Tool

Purpose

present_desktop_cards

Renders an inline clickable card in chat for HTML pages, localhost URLs, media/documents, folders, or installers (auto-adapts to light/dark theme and zh/en host locale).

open_in_browser

Opens a local HTML/SVG file or http(s):// URL directly in Chrome/Edge/Brave/Firefox.

reveal_in_explorer

Highlights a file (/select) or opens a folder in Windows Explorer.

open_with_default_app

Opens non-executable files via Windows default app or optional custom-apps.json. Blocks .exe, .msi, .ps1, .bat, etc. for safety.

download_installer

Downloads an official Windows installer via winget_id (winget download, proxy-aware, hash-verified, no UAC) or https:// URL (30s stall watchdog + curl.exe proxy fallback + SHA-256 check) and returns a clickable card with an app-only one-click Install button.

launch_verified_installer

App-only (visibility: ["app"]) — hidden from the AI model; only invoked when the user clicks Install on a SHA-256 verified installer card, delegating to Windows Explorer shell for standard UAC approval.

Optional: Custom App Associations

If you work with file extensions that Windows does not associate by default (for example .dawproject or custom studio formats), copy config/custom-apps.example.json to ~/.gemini/config/plugins/win-desktop-bridge/config/custom-apps.json (gitignored) and map extensions to local executables:

{
  ".dawproject": [
    "C:\\Program Files\\Fender\\Studio Pro 8\\Studio Pro.exe"
  ]
}

Security Model

  • Runs strictly locally over MCP stdio — no telemetry, no cloud calls except explicit download_installer URLs.

  • open_with_default_app explicitly refuses executable/script extensions (.exe, .msi, .msix, .bat, .cmd, .ps1, .vbs, .js, .reg, etc.).

  • download_installer enforces https:// only, aborts stalled transfers, verifies SHA-256 when provided, and deletes partial files on mismatch.

Development & Testing

npm test           # Run zero-dependency node:test protocol & safety suite
npm install        # Only needed if modifying ui-src/app.mjs
npm run build      # Rebuild self-contained ui/cards.html via esbuild
.\install.ps1      # Sync updated plugin to ~/.gemini/config/plugins/win-desktop-bridge

License

MIT

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    Related MCP Connectors

    Related MCP Servers