Skip to main content
Glama
open-zcode-computer-use

open-zcode-computer-use

by hqhq1025

Open ZCode Computer Use

CI License: MIT

Clean-room, macOS-only reimplementation of the public ZCode CUA 0.5.12 MCP contract.

It exposes the same 30 tool names and the same complete input-schema shapes as the inspected plugin, while using independently written JavaScript orchestration and the MIT-licensed OpenComputerUseKit native implementation.

What It Implements

  • Newline-delimited MCP over stdio.

  • Accessibility-first app and window observation.

  • Session-local state_id values with expiry, bounded retention, supersession, and one-action consumption.

  • Raster-bound frame_id values with SHA-256 integrity metadata.

  • Window and display screenshots through ScreenCaptureKit.

  • AX click, value, selection, scroll, and secondary actions.

  • Coordinate-to-window ownership checks and AX hit-testing before raw clicks.

  • PID-scoped keyboard input and clipboard access.

  • Serialized mutations, kill-switch latching, subagent rejection, and not_sent versus possibly_sent transport reporting.

  • All 30 public ZCode CUA 0.5.12 tools.

The exact reverse-engineering evidence is in docs/zcode-cua-0.5.12-reverse-engineering.md. The native function inventory and local reproduction method are described in docs/ax-native-0.5.12-function-inventory.md. The recovered SkyLight ABI, event fields, focus records, and branch matrix are in docs/skylight-background-input-0.5.12.md. The implementation comparison and remaining differences are in docs/compatibility.md.

Related MCP server: blade-computer-use

Requirements

  • macOS 14 or newer.

  • Node.js 22 or newer.

  • Swift 6.2 toolchain.

  • Accessibility and Screen Recording permission for the process that launches the MCP server.

Build

git clone https://github.com/hqhq1025/open-zcode-computer-use.git
cd open-zcode-computer-use
npm run build:native
npm run verify

MCP Configuration

Use absolute paths for your own checkout:

{
  "mcpServers": {
    "open-zcode-computer-use": {
      "command": "/usr/bin/env",
      "args": [
        "node",
        "/path/to/open-zcode-computer-use/src/mcp-server.mjs"
      ],
      "env": {
        "OPEN_ZCODE_CUA_NATIVE": "/path/to/open-zcode-computer-use/native/.build/release/OpenZCodeNative"
      }
    }
  }
}

Run a non-mutating permission and display check with:

npm run doctor

Safety Defaults

The default mode does not permit operations that require the physical system pointer. Semantic AX actions and supported PID/window-scoped operations remain available.

To opt into physical-pointer fallback for raw move and split mouse-down/up:

OPEN_ZCODE_CUA_ALLOW_GLOBAL_POINTER=1 npm start

That mode can move the visible cursor and should only be enabled deliberately.

stop_computer_control is latched for the lifetime of the MCP process. Start a new MCP session to resume control.

Provenance

No proprietary ZCode JavaScript, helper binary, token, signing material, or private source is included.

Raw disassembly, decompiler projects, complete string dumps, and proprietary bundles are intentionally excluded. The scripts under scripts/ can recreate local research artifacts from a ZCode installation you are authorized to inspect; generated output is ignored by Git.

The native source under native/Sources/OpenComputerUseKit is adapted from the MIT-licensed open-codex-computer-use implementation at commit 3c1a938dcfef2cb2e9b0ddb8c7cac316c6c2bdbe. The surrounding MCP adapter, registries, schema definitions, and ZCode compatibility behavior were written for this project from observed public behavior and locally extracted tool schemas.

Available Tools

30 tools
cursor_positionCursor PositionA
Read-onlyIdempotent

Read the physical cursor position.

Inputs: no named parameters.

double_clickDouble ClickB
Destructive

Double-click a bound element or frame coordinate.

Inputs: target (required), app_ref, strategy, modifiers, +1 more.

get_app_stateGet App StateB
Read-onlyIdempotent

Capture an accessibility-first application state and optionally its window image.

Inputs: app_ref (required), detail, include_screenshot.

hold_keyHold KeyB
Destructive

Hold a key or chord for up to 30 seconds.

Inputs: text (required), duration (required), app_ref, strategy, +1 more.

keyKeyA
Destructive

Send a key or chord to a scoped application.

Inputs: text (required), repeat, app_ref, strategy, +1 more.

left_clickLeft ClickB
Destructive

Click a bound element or frame coordinate.

Inputs: target (required), app_ref, strategy, modifiers, +1 more.

left_click_dragLeft Click DragC
Destructive

Drag from one bound target to another.

Inputs: to (required), from_target (required), app_ref, modifiers, +1 more.

left_mouse_downLeft Mouse DownC
Destructive

Begin a scoped left-button hold.

Inputs: target (required), app_ref, return_state.

left_mouse_upLeft Mouse UpA
Destructive

Release the scoped left-button hold.

Inputs: return_state.

list_appsList AppsA
Read-onlyIdempotent

List currently running applications.

Inputs: no named parameters.

list_displaysList DisplaysA
Read-onlyIdempotent

List attached displays and their coordinate spaces.

Inputs: no named parameters.

list_windowsList WindowsB
Read-onlyIdempotent

List windows belonging to an application.

Inputs: app_ref (required).

middle_clickMiddle ClickC
Destructive

Middle-click a bound element or frame coordinate.

Inputs: target (required), app_ref, strategy, modifiers, +1 more.

mouse_moveMouse MoveA
Destructive

Move a synthesized pointer without moving the user's physical cursor.

Inputs: coordinate (required), app_ref, return_state.

open_applicationOpen ApplicationA
Destructive

Resolve or launch an application without taking foreground focus unless activate is true.

Inputs: app, activate, new_instance.

perform_actionPerform ActionC
Destructive

Run one of the accessibility actions advertised by an element.

Inputs: action (required), target (required), return_state.

read_clipboardRead ClipboardA
Read-onlyIdempotent

Read plain text from the system clipboard.

Inputs: no named parameters.

request_accessRequest AccessB
Read-onlyIdempotent

Read permission and runtime readiness without prompting.

Inputs: capabilities.

right_clickRight ClickB
Destructive

Right-click a bound element or frame coordinate.

Inputs: target (required), app_ref, strategy, modifiers, +1 more.

screenshotScreenshotA
Read-onlyIdempotent

Capture the selected display.

Inputs: no named parameters.

scrollScrollC
Destructive

Scroll at a bound element or frame coordinate.

Inputs: target (required), scroll_amount (required), scroll_direction (required), app_ref, +2 more.

select_textSelect TextC
Destructive

Select all or a UTF-16 range in a text element.

Inputs: target (required), text_range, return_state.

set_valueSet ValueC
Destructive

Set an accessibility element value.

Inputs: value (required), target (required), strategy, return_state.

stop_computer_controlStop Computer ControlB
Destructive

Latch the session kill switch and release held input.

Inputs: reason.

switch_displaySwitch DisplayA
Destructive

Select the display used by screenshot.

Inputs: index (required).

triple_clickTriple ClickC
Destructive

Triple-click a bound element or frame coordinate.

Inputs: target (required), app_ref, strategy, modifiers, +1 more.

typeTypeB
Destructive

Type text into a bound element or the focused element of a scoped app.

Inputs: text (required), target, app_ref, strategy, +1 more.

waitWaitA
Read-onlyIdempotent

Pause for up to 30 seconds.

Inputs: duration (required).

write_clipboardWrite ClipboardA
Destructive

Replace the system clipboard with plain text.

Inputs: text (required).

zoomZoomB
Read-onlyIdempotent

Crop a region from an existing frame or around an element target.

Inputs: region, target, frame_id.

Tool Schema Changelog

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

Loading tool schema changelog…

    TDQS

    B3.2/5.0

    Scored across 30 tools

    Disambiguation5/5

    Every tool targets a distinct action or resource category: display/window/app listing, mouse variants, keyboard input, accessibility operations, clipboard access, and control flow. The closest pairs like key vs hold_key and type vs set_value are clearly differentiated by duration and input mechanism.

    Naming Consistency4/5

    Most names follow a predictable lower_snake_case verb_noun pattern such as list_windows, open_application, set_value, and read_clipboard. A few outliers like key, screenshot, and cursor_position break the pattern slightly but remain recognizable and consistent in style.

    Tool Count2/5

    With 30 tools, the server feels over-scoped for a single computer-use entry point. Many click variants and keyboard/pointer hold primitives could be parameterized or consolidated without losing capability, though the broad domain justifies some of the count.

    Completeness4/5

    The surface covers the main computer-use workflows: display selection, screenshots, app/window introspection, mouse and keyboard input, accessibility actions, and clipboard management. Notable minor gaps include no app termination or active window management, but agents can work around these via existing accessibility actions.

    Maintenance

    ActivityStale
    ResponsivenessNo recent community issues

    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
    • Use your Mac, Windows or Linux computer from ChatGPT, Claude or Codex: files, commands, documents.

      https://bcd.snack-wrap.com/mcp
    • Automate 1,000+ services from any MCP-compatible AI agent: build Applets, run actions and queries.

      https://ifttt.com/mcp
    • Connect AI assistants to authorized Windows and macOS devices for files, commands, and management.

      https://mcp.dns-data.com/mcp

    Related MCP Servers

    • A
      license
      A
      quality
      D
      maintenance
      Provides native macOS computer control tools including mouse and keyboard simulation, screenshot capture, and application management for MCP-compatible agents. It enables AI assistants to directly interact with the macOS operating system and installed apps through standard tool calls.
      24
      9
      MIT
    • A
      license
      Not graded
      quality
      D
      maintenance
      Enables MCP clients to control macOS via accessibility and screen recording, providing tools to list apps, observe UI, click, type, press keys, and scroll.
      MIT
    • A
      license
      A
      quality
      D
      maintenance
      Enables AI agents to control macOS desktop apps via screenshots, mouse clicks, keyboard input, accessibility queries, and AppleScript.
      11
      11 npm
      MIT
    • A
      license
      Not graded
      quality
      B
      maintenance
      Enables agents to inspect and control macOS applications through Accessibility trees, screenshots, and OCR. It supports clicks, typing, key presses, scrolling, drags, clipboard paste, window actions, and scripted actions via MCP.
      MIT