NexusWindows for Antigravity
NexusWindows for Antigravity


Windows computer use for Antigravity, in the background. An MCP server (nexus-computer) that lets Google
Antigravity (Gemini) see and operate Windows desktop applications while the user keeps their mouse, keyboard and
foreground window. Built for a fast model: one look, then one batch of steps with label targets, and every reply
says what to do next.
Version 2.8.2 · Windows 10/11 · Python 3.10+ · MIT licence
Part of the Nexus family: NexusWindows (Claude · Codex · Antigravity), NexusBrowser (repo), NexusAndroid (repo). Project page: julienpiron.fr/nexuswindows.
Why
Screenshot-and-click computer use moves the real cursor and brings windows to the front, so the person at the PC has
to stop working while the agent acts. Most Windows applications can be driven without that: native controls accept
window messages and modern frameworks expose UI Automation. This server acts in the background first, reads the
effect back, and only falls back to the real mouse or keyboard when the step allows it (foreground=True).
Related MCP server: dsh-desktop-operator
Tools
Five listed MCP tools; the ten older names (computer_click, computer_type_text...) stay callable as unlisted
aliases.
Tool | Purpose |
| Application windows ( |
| One line per element |
| Several steps in one call (click, type, check, uncheck, select, menu, keys...), each read back |
| Open a document, folder, program, script or shortcut; the opening is read back |
| Close a window (UI Automation, then |
Tool descriptions and replies are in French; tool and parameter names are in English.
What it does
Designed for Gemini: golden rule look, then act in one batch with label targets; every action reply carries a one-line
next(✓ done · = already done, do not redo · ~ effect not seen, look at the attached image · ✗ failure, cause and what to try) and, when the effect was not read back, a compact WebP image (≤ 1280 px) of the window. A batch identical to one sent in the last 10 s on the same window without acomputer_lookin between is refused (repeat=trueforces it).Background first, even with
foreground=True: abox_2dor (x, y) target is mapped to the element under the point in the window's own UI Automation tree (covered windows included) and handled like a label target; a click on a text field retains it, sotypewithout target,ctrl+a,ctrl+vand erase keys become background writes read back; plain keys are posted (WM_KEYDOWN/WM_KEYUP) in Win32, WinForms and WPF. Real mouse and keyboard only as a fallback withforeground=True; otherwise an explicit refusal (needs_foreground) and nothing is sent.Per UI family: Win32 → direct messages (
BN_CLICKED,BM_SETCHECK,EM_REPLACESEL,CB_SETCURSEL/LB_SETCURSELwith their notifications, menuWM_COMMAND); WinForms → UI Automation then messages; WPF, UWP, Chromium → UI Automation only. Never UI Automation Invoke on a Win32 button (its proxy activates the window) nor Select on a Win32 list (silent).One cross-process read: the window-scoped UI Automation tree is read in one round trip (
IUIAutomationCacheRequest+BuildCache,AutoSetFocus = False). A truncated or failed read is reported (uia.status,warning), never a silent empty list.Read-back after every action:
verifiedtrue/false/None from a real read (field value, check state, selection, focused element, window title, image);successis never true on "command sent" alone. Steps accept a postconditionexpect(already true: step skipped withalready: true; false after: step failed).The user's physical input via Raw Input (injected input ignored): wait for a pause before any real mouse or keyboard action, and stop at the next checkpoint if the user touches keyboard or mouse (
interrupted_by_user).Guards in the code, not only in the instructions: the window is always named (never the foreground one by default, ambiguous titles refused with the candidates); an ambiguous label is refused with the candidates; the target window is read back in the foreground right before every
SendInput; password managers (KeePass, KeePassXC, Bitwarden, 1Password, Dashlane, NordPass, RoboForm, LastPass) are never looked at, captured or driven; the sign-in screen, lock screen and UAC prompt are refused. An action labelled pay, buy, order, transfer money, send, publish, delete permanently, uninstall, format, reset, cancel a subscription, erase data or make a repository public needsconfirm: trueon the step, and so does any key,submitor coordinate click that would trigger one.NEXUS_AGY_CONFIRM=offin the MCP server environment turns confirmation off entirely (default: on).Clipboard: saved in all its formats and restored; the text put there is excluded from Win+V history and cloud clipboard. Used only as a last resort for typing (multi-line or more than 300 characters).
Shared with the other desktop agents of the PC: foreground token (
%USERPROFILE%\.nexus\foreground.lock) and emergency stop (Ctrl+Alt+Shift+Esc,%USERPROFILE%\.nexus\stop), the same file protocols as NexusWindows for Claude.
Architecture
Path | Role |
| MCP server |
| Windows engine: windows, UI Automation, Win32 messages, capture, actions and read-back |
| One-round-trip UI Automation reads, native control messages |
| The user's presence (Raw Input), batch guard, shared emergency stop |
| Shared foreground token and guard-rail policy, common to the author's desktop agents (also used by NexusWindows for Claude). Vendored in the public copy; in the author's setup they live in a sibling |
| Antigravity plugin and the agent guide ( |
| Unit tests (pytest) and the real desktop validation |
Install
Requirements: Windows 10 or 11, PowerShell 7, uv (installed by install.ps1 through
winget if missing).
git clone https://github.com/pironjulien/NexusWindows-Antigravity.git
cd NexusWindows-Antigravity
pwsh -NoProfile -File install.ps1The Python environment, logs and screenshots live in %USERPROFILE%\.nexusagy (outside the clone). Then declare
the server in Antigravity's mcp_config.json:
{
"mcpServers": {
"nexus-computer": {
"command": "pwsh",
"args": ["-NoProfile", "-File", "C:/path/to/NexusWindows-Antigravity/scripts/start-computer-mcp.ps1"]
}
}
}The agent guide is plugins/nexus-computer/skills/nexus-computer/SKILL.md.
Checks
pwsh -NoProfile -File test.ps1 # offline: ruff, Pyright, pytest
pwsh -NoProfile -File test.ps1 -Full # plus the real desktop validation on its own Win32, WinForms and WPF windowsThe real validation shows its test windows without activation and closes them at the end; real mouse and keyboard checks run only when the PC has been idle for 120 s, otherwise they are reported as skipped.
Privacy
NexusWindows for Antigravity runs entirely on your PC. It has no account, no telemetry, no analytics and makes no network requests of its own.
What it reads: window titles, the accessibility tree and window images of the applications the agent works in, only when a tool is called. Password managers are neither read nor driven.
Where it goes: tool results are returned to Antigravity, which may send them to Google under its own privacy policy; this server sends nothing anywhere else.
What it stores, under
~/.nexusagy/: the Python environment, an action logcomputer.log(action, method, window, duration, outcome and short details such as a target label, coordinates, key names, a menu path or the number of characters typed, never the typed text; rotated at 5 MB, three backups) and screenshots (at most 50, each kept under 24 hours). Under~/.nexus/: the shared foreground token and emergency-stop state.Removing it: remove the server from Antigravity's MCP settings, then delete
~/.nexusagy/.
Questions or concerns: open an issue on this repository.
Limits
Windows only. Tool descriptions, replies and code comments are in French.
Keyboard input is refused in UWP/WinUI and Chromium, and Ctrl/Alt shortcuts in WPF, where it cannot be done in the background; for web pages, NexusBrowser is more reliable.
An effect with nothing readable stays
~(not verified).
Licence
MIT, see LICENSE. Copyright (c) 2026 Julien Piron.
This server cannot be deployed
Maintenance
Related MCP Connectors
Eyes and hands on real Windows PCs — observe, click, type via Glasswarp API.
Securely control computers you explicitly pair through files, terminals, processes, screenshots, desktop UI/input, clipboard, browser automation, diagnostics, and document tools.
AI task cockpit: an agent does your tasks and asks before anything irreversible.
Remote Desktop Commander: use files, terminal and processes on your own computers from any AI app.
Related MCP Servers
- FlicenseNot gradedqualityBmaintenanceEnables AI assistants to control Windows GUI by listing and focusing windows, capturing element snapshots via UIA/OCR/CDP, performing clicks/inputs/scrolls, verifying changes, waiting for screen updates, taking screenshots, and obtaining visual descriptions.2-
- AlicenseNot gradedqualityAmaintenanceEnables safe Windows desktop automation and computer use through natural language, including window observation, UI Automation, and execution of verified actions like clicking, typing, and scrolling.2MIT
- AlicenseAqualityAmaintenanceEnables users to drive a selected Windows application toward a natural-language goal by reading the UI with local OCR/UIA and deciding next actions.662MIT
- AlicenseNot gradedqualityCmaintenanceEnables AI to operate Windows applications through recursive grid-based screenshot navigation and proportional coordinates, with UIAutomation, mouse/keyboard control, sequential batch actions, and input locking.Apache 2.0