Skip to main content
Glama

macos-cua

Background-capable macOS Computer Use MCP server and Antigravity plugin built on top of dsh-cua-native (SkyLight, ScreenCaptureKit, and macOS Accessibility) plus a lazy-compiled Swift system bridge (Vision OCR, CGHIDEventTap continuous trackpad scrolling/dragging, and clipboard-safe Cmd+V shortcut paste).

Highlights

  • Non-intrusive background control: Targets apps and CGWindowIDs directly without stealing focus or moving the physical mouse cursor where supported.

  • Single-window ScreenCaptureKit capture + Vision OCR: cua_screenshot({ ocr: true, includeImage: false }) returns exact screenshot-pixel bounding boxes (bbox, center) with zero PNG transfer overhead when only text/coordinates are needed.

  • Accessibility-first + coordinate fallback: Inspect AX trees (cua_get_state), invoke AX actions (cua_invoke, cua_perform_action, cua_set_value, cua_select_text), or operate AX-less windows (such as iPhone Mirroring) using cua_batch, useSystemPointer, and mode: "shortcut" paste.

  • Zero third-party runtime npm dependencies: Pure Node.js (>=20) ESM + macOS swiftc (compiled on demand into .cache/).

Related MCP server: macos-desktop-control

Prerequisites

  • macOS with Accessibility & Screen Recording permissions granted to the native helper (DSH Computer Use).

  • Node.js >= 20.0.0.

  • Native helper binary (DSH Computer Use.app/Contents/MacOS/dsh-cua-native):

    • Auto-discovered from DeepSeek Harness.app or ~/Library/Application Support/DeepSeek Harness/Computer Use, or

    • Provided explicitly via MACOS_CUA_HELPER_PATH=/path/to/dsh-cua-native.

  • Xcode Command Line Tools (swiftc) if using Vision OCR or CGHIDEventTap system-pointer actions.

Plugin Installation (Antigravity)

Clone or symlink this directory into your Antigravity plugins folder (~/.gemini/config/plugins/macos-cua), then restart or reload plugins:

git clone https://github.com/NaghtSieger/macos-cua.git ~/.gemini/config/plugins/macos-cua

mcp_config.json launches node ${PLUGIN_ROOT}/server/mcp-server.mjs over stdio MCP.

MCP Tools (22)

Category

Tools

Capabilities & Discovery

cua_capabilities, cua_list_apps, cua_find_apps, cua_get_app, cua_list_windows

Window Focus & Observation

cua_activate, cua_show, cua_get_state, cua_screenshot

Accessibility Actions

cua_list_actions, cua_invoke, cua_perform_action, cua_set_value, cua_select_text

Pointer, Keyboard & Paste

cua_click, cua_mouse_move, cua_scroll, cua_drag, cua_type_text, cua_press_key, cua_paste

Atomic Workflows

cua_batch

See skills/macos-cua/SKILL.md for detailed coordinate spaces, batch step schemas, and iPhone Mirroring recipes.

Development & Testing

npm run check          # Syntax check all JS modules and tests
npm test               # Run portable unit & mocked MCP tests
npm run compile:swift  # Verify cua-sys-helper.swift compiles cleanly (macOS)
npm run test:e2e       # Run live macOS GUI E2E test against a background TextEdit window

License

MIT

Tool Schema Changelog

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

Loading tool schema changelog…

    Related MCP Connectors

    • EXZA Remote — AI Computer Commander Your computer. Your control. Securely connect your own macOS, Windows or Linux computer to compatible AI clients, including ChatGPT and Claude. EXZA Remote provides 59 MCP tools for authorized file management, terminal operations, system monitoring, desktop automation and email workflows. GETTING STARTED 1. Create an EXZA Remote account. 2. Install the official computer connection client. 3. Pair your device using a temporary six-digit PIN. 4. Approve the connection on your computer. 5. Connect your preferred MCP client using EXZA OAuth. MCP ENDPOINT https://remote.exza.de/mcp TRANSPORT Streamable HTTP with OAuth 2.0 KEY FEATURES • 59 MCP tool interfaces • Secure computer and file access • Terminal commands and background jobs • File search, reading and editing • System monitoring and desktop automation • macOS, Windows and Linux support • Owner-controlled permissions and approvals COMPLETE INSTALLATION & DOCUMENTATION Detailed setup instructions, terminal installation commands, all 59 tools, troubleshooting and security information: https://github.com/exzade/EXZA-Remote/blob/main/docs/GLAMA_OVERVIEW.md Official website: https://remote.exza.de EXZA Remote is an independent, OAuth-protected service. Computer access requires individual account authorization and device-owner approval.

      https://remote.exza.de/mcp
    • Securely control computers you explicitly pair through files, terminals, processes, screenshots, desktop UI/input, clipboard, browser automation, diagnostics, and document tools.

      https://remcp.site/mcp
    • Reach your own computers from any AI app: files, commands, screen and mouse, approvals and alerts.

    • Connect AI assistants to your approved computer for files, commands, browser and desktop tasks.

    Related MCP Servers

    • A
      license
      Not graded
      quality
      D
      maintenance
      Enables AI assistants to automate macOS desktop tasks including mouse control, keyboard input, screenshots, window management, and UI interaction.
      418
      MIT
    • A
      license
      Not graded
      quality
      D
      maintenance
      Provides native macOS desktop automation for AI agents, enabling screen capture, mouse/keyboard control, window management, and iOS/Android simulator control in both foreground and background modes without focus stealing.
      6
      MIT
    • A
      license
      Not graded
      quality
      B
      maintenance
      Enables controlling macOS apps in the background, letting Claude Code or Codex act on native app UI elements without foregrounding them.
      1
      MIT