EXTRA - Native Computer Use MCP
Flashless macOS, Windows, and Linux native computer-use engine for AI vision, mouse & keyboard automation
Hosted MCP Server
npx add-mcp 'https://extra.yantraos.com/mcp'Installs into Claude Code, Codex, Cursor and more
Documentation
Extra Developer Documentation
Complete architectural manual and Model Context Protocol specification — local-first, deterministic, and sub-millisecond fast across Windows, macOS, and Linux.
Protocol standard
stdioRPC Conduit
Standard input/output JSON-RPC conduit with zero network sockets or proxy latency.
Physical OS primitives
:host{display:inline-block;direction:ltr;white-space:nowrap;line-height:1}span{display:inline-block}:host([data-will-change]) span{will-change:transform}.number,.digit{padding:round(nearest, calc(var(--number-flow-mask-height, 0.25em) / 2), 1px) 0}.symbol{white-space:pre}00Native Tools
Granular automation primitives spanning window docking, input, UI trees, and vision.
Supported AI clients
:host{display:inline-block;direction:ltr;white-space:nowrap;line-height:1}span{display:inline-block}:host([data-will-change]) span{will-change:transform}.number,.digit{padding:round(nearest, calc(var(--number-flow-mask-height, 0.25em) / 2), 1px) 0}.symbol{white-space:pre}00+ Frontier IDEs
Direct plug-and-play config for Claude Desktop, Cursor, Windsurf, Claude Code, and Ollama.
Getting Started
1. 1-Line Installation 2. AI Client Setup (Claude, Cursor...)
API & Specifications
3. Tool Reference37 4. Application Fast-Paths
Developer Resources
github.com/AIYantra/extra View v0.3.7 Changelog→
Section 1: 1-Line Sovereign InstallationSub-30s Setup
Install in 30 Seconds
Extra installs locally without requiring administrator privileges or cloud accounts. It isolates its runtime inside %USERPROFILE%\.extra and automatically configures developer boundaries with Windows Defender Controlled Folder Access (CFA).
Windows (PowerShell)
iwr -useb https://extra.yantraos.com/install.ps1 -OutFile "$env:TEMP\install_extra.ps1"; & "$env:TEMP\install_extra.ps1"
✓Saves script to disk first to eliminate AMSI cloud false-positive flags and configures CFA whitelist.
Section 2: Connect Your AI ClientJSON-RPC stdio
Model Context Protocol (MCP) Configuration
Extra speaks standard Model Context Protocol over standard input/output streams (stdio). Select your client below to copy its configuration payload:
{
"mcpServers": {
"extra": {
"command": "uvx",
"args": ["extra-desktop"]
}
}
}
Section 3: Native Tool CatalogShowing 37 of 37 Tools
Model Context Protocol Tool Signatures
Each tool dispatches sub-15ms hardware or OS accessibility commands. Filter by domain or search for parameters.
extra_launch
Windowing
Sub-20ms Win32 CreateProcess / macOS NSWorkspace
extra_launch(app_name: string, args: list[string]?) → dict
Visibly spawns a desktop application in the foreground (e.g., "calc", "notepad", "mspaint", "explorer", "edge", or "ms-settings:"). Automatically resolves Microsoft Store/UWP apps and suppresses browser crash bubbles.
Example Invocation
extra_launch(app_name="notepad", args=["~/.extra/workspace/briefing.txt"])
extra_focus_window
Windowing
Sub-15ms Win32 SetForegroundWindow with 3.0s retry polling
extra_focus_window(window_title: string?, hwnd: integer?, timeout: float?) → dict
Brings an application window to the foreground using native Win32 SetForegroundWindow / macOS AppKit. Includes 100ms interval polling to reliably handle asynchronously mounting windows.
Example Invocation
extra_focus_window(window_title="Calculator", timeout=3.0)
extra_snap_layout
Windowing
15ms Win32 SetWindowPos programmatic repositioning
extra_snap_layout(layout: string, left_window: string?, right_window: string?) → dict
Instantly docks windows into side-by-side or split layouts via Win32 SetWindowPos in 15ms. Completely eliminates the Windows 11 Snap Assist menu loop and mouse coordinate guesswork.
Example Invocation
extra_snap_layout(layout="side_by_side", left_window="Paint", right_window="Notepad")
extra_type
Input
Sub-5ms Win32 VK_PACKET unicode injection
extra_type(text: string, press_enter: boolean?, use_clipboard: boolean?) → dict
Direct Win32 KEYEVENTF_UNICODE (VK_PACKET) sub-5ms instant text injection. Bypasses slow simulated key loops and clipboard paste restrictions (e.g. in Windows Calculator).
Example Invocation
extra_type(text="245.12/383.29=", press_enter=false)
extra_hotkey
Input
Atomic Win32 SendInput / macOS CGEventPost
extra_hotkey(keys: list[string]) → dict
Dispatches low-level hardware keyboard shortcuts atomically (e.g., ["ctrl", "c"], ["win", "left"], ["ctrl", "shift", "d"]). Releases all modifiers cleanly.
Example Invocation
extra_hotkey(keys=["ctrl", "shift", "o"])
extra_click
Input
Sub-2ms SendInput with SOUL-Eyes visual grounding
extra_click(target: string?, x: integer?, y: integer?, button: string?, human_like: boolean?) → dict
Dispatches hardware mouse clicks with StallBreaker visual change verification, human-like Bezier cursor flight, and zero-coordinate SOUL-Eyes visual grounding.
Example Invocation
extra_click(target="Pencil")
extra_mouse_move
Input
Sub-pixel Bezier path interpolation
extra_mouse_move(x: integer, y: integer, duration: float?, human_like: boolean?) → dict
Dispatches standalone, human-like Bezier cursor flight across the screen without clicking to inspect hover states and crosshair positions.
Example Invocation
extra_mouse_move(x=350, y=380, duration=0.4)
extra_stroke
Input
Hardware inking with real-time screen diff verification
extra_stroke(points: list[list[int]], duration: float?, brush_size: integer?, smooth: boolean?) → dict
Renders continuous vector brush and ink strokes live on canvas with automatic real-time SOUL pixel delta ink-detection.
Example Invocation
extra_stroke(points=[[200, 250], [250, 300], [300, 250]], smooth=True)
extra_click_element
Input
Sub-5ms direct UIA accessibility node click
extra_click_element(element_id: integer) → dict
Clicks an interactive UI element by its index from extra_inspect_ui accessibility tree. Guarantees 0 coordinate drift across scaling factors.
Example Invocation
extra_click_element(element_id=14)
extra_drag
Input
Interpolated hardware mouse movement
extra_drag(start_x: integer, start_y: integer, end_x: integer, end_y: integer, duration: float?) → dict
Performs a smooth hardware mouse drag with natural mouse path interpolation to prevent canvas gesture drops.
Example Invocation
extra_drag(start_x=300, start_y=200, end_x=600, end_y=400)
extra_scroll
Input
Win32 MOUSEEVENTF_WHEEL / macOS scroll events
extra_scroll(clicks: integer?, direction: string?, delta: integer?, horizontal: boolean?) → dict
Dispatches hardware wheel scrolls with support for both click counts and high-precision pixel delta values.
Example Invocation
extra_scroll(clicks=-5, direction="vertical")
extra_batch_actions
Input
Sub-millisecond single-turn atomic dispatch sequence
extra_batch_actions(actions: list[object]) → dict
Executes an atomic list of hardware actions sequentially with sub-millisecond dispatch in a single turn. Multi-format sleep normalizer accepts duration_ms, seconds, and delay.
Example Invocation
extra_batch_actions(actions=[ {"action": "focus", "window_title": "Edge"}, {"action": "sleep", "duration_ms": 1500}, {"action": "hotkey", "keys": ["ctrl", "shift", "d"]}, {"action": "sleep", "duration_ms": 800}, {"action": "type", "text": "Research Folder", "press_enter": true} ])
extra_screenshot
Vision
Sub-15ms MSS + GDI / macOS ScreenCaptureKit
extra_screenshot(annotate_ui: boolean?, save_to_file: boolean?, include_base64: boolean?) → dict
Sub-15ms multi-threaded desktop screenshot capture. Saves captures to ~/.extra/workspace/screenshots and returns clickable file links under 1KB to eliminate tool buffer overflows.
Example Invocation
extra_screenshot(annotate_ui=false, save_to_file=true)
extra_inspect_ui
Vision
Zero-cloud-token native OS accessibility tree mapper
extra_inspect_ui(window_title: string, interactive_only: boolean?, max_elements: integer?) → dict
Semantic UIAutomation (Windows) / AXUIElement (macOS) tree extractor. Reads native controls with 0 token cloud vision cost and 0 coordinate drift.
Example Invocation
extra_inspect_ui(window_title="Calculator", interactive_only=true, max_elements=25)
extra_browser
Vision
Direct CDP / WebDriver headless or visual bridge
extra_browser(action: string, url: string?, selector: string?) → dict
Fast-path browser controller for direct URL navigation, markdown content extraction, and DOM element interaction.
Example Invocation
extra_browser(action="navigate", url="https://extra.yantraos.com")
extra_soul_wait
Vision
DXGI 60Hz frame difference detector (< 15ms)
extra_soul_wait(condition: string?, timeout_sec: float?, check_interval_ms: integer?) → dict
Sub-15ms visual settle and state transition detector powered by Project SOUL-Gateman. Monitors DXGI frames at 60Hz to verify UI stabilization before dispatching physical actions.
Example Invocation
extra_soul_wait(condition="settled", timeout_sec=2.0)
extra_fs_batch
Filesystem
Atomic Windows Defender CFA-compliant file manager
extra_fs_batch(operation: string, dir: string, target: string?, files: list[string]?, pattern: string?) → dict
Atomic batch filesystem operations avoiding multi-turn shell commands. Strictly compliant with Windows Defender Controlled Folder Access (CFA).
Example Invocation
extra_fs_batch(operation="organize", dir="/.extra/workspace", target="/.extra/workspace/organized")
extra_execute_bridge
Filesystem
Plane 2 Local Execution Bridge (Python / PowerShell / Blender bpy)
extra_execute_bridge(runtime: string, payload: string, timeout_sec: float?) → dict
Executes programmatic script or code payload via the Universal Execution Bridge (Plane 2) for deterministic calculation or headless control without multi-turn GUI clicking.
Example Invocation
extra_execute_bridge(runtime="python", payload="print('Bridge OK')")
extra_recall_memory
Intelligence
Sub-3ms local graph database vector retrieval
extra_recall_memory(query: string, app_name: string?, top_k: integer?) → dict
Sub-3ms vector query over local KùzuDB + FastEmbed graph database. Recalls past task workflows, verified quirks, and discovered application shortcuts.
Example Invocation
extra_recall_memory(query="Canva presentation template export", app_name="canva")
extra_scout_app
Intelligence
Automated framework profiling & playbook synthesis
extra_scout_app(app_name: string, force_refresh: boolean?) → dict
Autonomously inspects an unknown desktop application, identifies UI framework (Win32, Electron, Viewport), discovers hotkeys, and synthesizes an optimized SKILL playbook.
Example Invocation
extra_scout_app(app_name="premiere_pro")
extra_evolve_skill
Intelligence
Self-evolution markdown playbook crystallization
extra_evolve_skill(app_name: string, workflow_summary: string, instructions: string) → dict
Crystallizes newly discovered zero-stall desktop fast paths into permanent markdown playbooks for deterministic reuse across agent sessions.
Example Invocation
extra_evolve_skill(app_name="blender", workflow_summary="Zero-stall viewport render", instructions="...")
extra_blueprint_start
Intelligence
Plane 1 Task Blueprint DAG orchestration
extra_blueprint_start(title: string, task_type: string?, milestones: list[object]?) → dict
Initializes a new long-horizon Task Blueprint with a Directed Acyclic Graph (DAG) of milestones (Plane 1), enabling structured progress tracking and context folding.
Example Invocation
extra_blueprint_start(title="Assemble Launch Deck", milestones=[{"id": "m1", "name": "Scaffold Workspace"}])
extra_blueprint_milestone
Intelligence
HIPIF context folding & milestone verification
extra_blueprint_milestone(task_id: string, milestone_id: string, action: string?, summary: string?) → dict
Updates and verifies milestone state in an active Task Blueprint, folding context via HIPIF dense semantic state tokens to eliminate context window bloat.
Example Invocation
extra_blueprint_milestone(task_id="bp_123", milestone_id="m1", action="complete", summary="Data extracted")
extra_curate_skills
Intelligence
Automated skill library validation & deduplication
extra_curate_skills(sanitize: boolean?) → dict
Curates, audits, and optionally sanitizes skill playbooks across workspace and user directories, pruning corrupted skills and unhardened evolved fast paths.
Example Invocation
extra_curate_skills(sanitize=False)
extra_task_start
UX
Direct Win32 Layered Window / macOS Overlay HUD
extra_task_start(task_name: string) → dict
Activates ambient hardware screen edge pulse and cursor halo to visually signal to the user that autonomous automation is actively running.
Example Invocation
extra_task_start(task_name="Spreadsheet Reconciliation")
extra_task_complete
UX
Emerald border pulse, acoustic chime, indicator dissolve
extra_task_complete(summary: string, success: boolean?) → dict
Signals task completion: flashes emerald green screen border, plays luxury acoustic chime, and dissolves indicators. Enforces two-step verification.
Example Invocation
extra_task_complete(summary="Reconciled 145 invoices into Excel", success=true)
extra_indicate_status
UX
Real-time HUD status message stream
extra_indicate_status(status: string, message: string?) → dict
Updates HUD indicators to "active", "idle", or "complete" with custom live status message.
Example Invocation
extra_indicate_status(status="active", message="Exporting 4K frame...")
extra_subtask_run
Intelligence
Universal Macro Intent Compiler with sub-50ms dispatch
extra_subtask_run(intent: string, expected_elements: list[string]?) → dict
Executes closed-loop micro-routines (e.g. calculation, app launching, web search, window snapping) with on-device SOUL-Critic validation in 1 turn (< 50ms).
Example Invocation
extra_subtask_run(intent="calculate 245.12/383.29=")
extra_confirm_modal
UX
Win32 / Cocoa modal dismissal verifier
extra_confirm_modal(action: string?, button_query: string?, window_title: string?) → dict
Universal Modal Confirmation Gate. Resolves and clicks confirmation buttons in active popups/dialogs and verifies dismissal.
Example Invocation
extra_confirm_modal(action="send", button_query="Send")
extra_harness_synthesize
Intelligence
Deterministic agent harness code generator
extra_harness_synthesize(software_path_or_repo: string, output_dir: string, phase_target: string?) → dict
Synthesizes compliant 7-phase CLI agent harness SOP, tests, and CLI wrappers.
Example Invocation
extra_harness_synthesize(software_path_or_repo="C:/Apps/Blender", output_dir="~/.extra/harness/blender")
extra_harness_run
Intelligence
Subprocess harness controller with visual telemetry
extra_harness_run(harness: string, command: list[string], json_output: boolean?, auto_visualize: boolean?) → dict
Executes CLI harness commands with automatic dual-plane visualization and JSON structured output.
Example Invocation
extra_harness_run(harness="blender", command=["render", "--frame", "1"])
extra_hub_manage
Intelligence
Local harness package repository manager
extra_hub_manage(action: string, harness_name: string?) → dict
Manages active CLI harnesses across the ecosystem (list, info, register).
Example Invocation
extra_hub_manage(action="list")
extra_workspace_export
Filesystem
Native workspace packaging & format converter
extra_workspace_export(workspace_dir: string?, archive_name: string?, export_format: string?) → dict
Exports authenticated web documents (Docs/Sheets/Slides) or packages local workspace directory into zip archives.
Example Invocation
extra_workspace_export(workspace_dir="~/.extra/workspace", archive_name="deliverables.zip")
extra_verify_lineage
Filesystem
Cryptographic SHA-256 & origin validator
extra_verify_lineage(file_path: string?, expected_origin: string?) → dict
Verifies cryptographic provenance and physical lineage of deliverables to prevent epistemic drift.
Example Invocation
extra_verify_lineage(file_path="~/.extra/workspace/final.pdf", expected_origin="official_web_export")
extra_verify_state
Vision
DOM / AT-SPI2 decoupled audit runner
extra_verify_state(window_title: string, claims: dict?, min_words: int?) → dict
Decoupled ground-truth state auditor directly inspecting DOM and accessibility trees to prevent epistemic drift.
Example Invocation
extra_verify_state(window_title="Untitled - Google Docs", min_words=500)
extra_child_session_status
UX
Process session IPC monitor
extra_child_session_status(action: string?, session_id: string?) → dict
Monitors background child worker sessions and health telemetry.
Example Invocation
extra_child_session_status(action="list")
extra_pip_control
Windowing
Always-on-top PiP window layer
extra_pip_control(action: string) → dict
Controls desktop picture-in-picture viewport for live autonomous observation.
Example Invocation
extra_pip_control(action="show")
Section 4: Zero-Stall Application PlaybooksReliability Guides
Application Fast-Paths
Real desktop applications present unique friction points (clipboard rejection, UIA invisibility, modal blocks). Use these verified playbooks to achieve 100% reliability:
Calculator (calc.exe)Deterministic Guide
Zero-Clipboard Instant Formula Calculation
Known App Friction
Windows Calculator rejects simulated clipboard pasting with "Invalid input" and UIA tree inspection wastes 10+ turns.
- 1. Launch visibly: extra_launch(app_name="calc")
- 2. Focus window: extra_focus_window(window_title="Calculator")
- 3. Type formula directly: extra_type(text="245.12/383.29=")
- 4. NEVER pass use_clipboard=true (rejected with error).
- 5. NEVER inspect UIA nodes for result. Call extra_screenshot() once to visually verify.
Verified Fast Path Code
extra_launch(app_name="calc") extra_focus_window(window_title="Calculator") extra_type(text="245.12/383.29=") extra_screenshot()
Notepad (notepad.exe)Deterministic Guide
Atomic Disk Write + Instant Visual Launch
Known App Friction
Simulating character-by-character typing for a 1,000-word document takes 3+ minutes and triggers typos.
- 1. Write document directly to disk inside safe workspace: ~/.extra/workspace/<name>.txt
- 2. NEVER write to Documents folder (blocked by Windows Defender CFA).
- 3. Visibly spawn Notepad pointing to file: extra_launch(app_name="notepad", args=["<safe_path>"])
- 4. Document appears 100% formatted on screen in 15ms.
Verified Fast Path Code
safe_path = os.path.expanduser("~/.extra/workspace/brief.txt") Path(safe_path).write_text(content, encoding="utf-8") extra_launch(app_name="notepad", args=[safe_path]) extra_screenshot()
MS Paint (mspaint.exe)Deterministic Guide
Programmatic Image Generation + Display
Known App Friction
Freehand mouse dragging to draw charts results in sloppy, jagged lines and burns dozens of turns.
- 1. Generate clean PNG programmatically via PIL / matplotlib to ~/.extra/workspace/<name>.png
- 2. NEVER save to Pictures folder (CFA Event 1123 warning).
- 3. Visibly launch Paint to display chart: extra_launch(app_name="mspaint", args=["<safe_png_path>"])
- 4. Dock side-by-side with Notepad via extra_snap_layout.
Verified Fast Path Code
img.save(os.path.expanduser("~/.extra/workspace/chart.png")) extra_launch(app_name="mspaint", args=[safe_png_path]) extra_snap_layout(layout="side_by_side", left_window="Paint", right_window="Notepad")
Microsoft Edge (msedge.exe)Deterministic Guide
Multi-Tab Launch & Atomic Batch Bookmarking
Known App Friction
Piping single tabs sequentially takes 30s and forced browser terminations show "Restore pages?" crash bubbles.
- 1. Multi-tab launch: extra_launch(app_name="edge", args=["url1", "url2", "url3"])
- 2. Settle sleep: Allow 1500ms for Chromium process tree initialization.
- 3. Bookmark all tabs: extra_batch_actions with Ctrl+Shift+D and folder typing.
- 4. NEVER mix Ctrl+D (single tab) with Ctrl+Shift+D (all tabs folder).
Verified Fast Path Code
extra_launch(app_name="edge", args=["https://news.ycombinator.com", "https://github.com"\]) extra_batch_actions(actions=[ {"action": "focus", "window_title": "Edge"}, {"action": "sleep", "duration_ms": 1500}, {"action": "hotkey", "keys": ["ctrl", "shift", "d"]}, {"action": "sleep", "duration_ms": 800}, {"action": "type", "text": "Tech Briefing", "press_enter": true} ])
Canva Desktop (Electron)Deterministic Guide
Category Icon Clicks vs Clipboard Paste
Known App Friction
Ctrl+N defaults keyboard focus to "Open a design link" popup, causing validation errors. Canvas area lacks UIA nodes.
- 1. Use main home screen category icons ("Presentation", "Doc") or prominent search bar.
- 2. If "Please enter a valid design link" popup appears, send extra_hotkey(keys=["esc"]).
- 3. For custom graphics: copy PNG to Windows Clipboard via PowerShell STA, focus Canva, and paste (Ctrl+V).
Verified Fast Path Code
powershell -STA -Command "Add-Type -AssemblyName System.Windows.Forms; [System.Windows.Forms.Clipboard]::SetImage([System.Drawing.Image]::FromFile('<safe_png_path>'))" extra_focus_window(window_title="Canva") extra_hotkey(keys=["ctrl", "v"])
Extra Complete UninstallerDeterministic Guide
Safe Complete System Uninstallation
Known App Friction
Removing complex desktop automation tools often leaves orphaned virtual environments, KùzuDB memory stores, and MCP configuration fragments.
- 1. Run CLI command: extra uninstall
- 2. Review the native OS warning disclaimer on screen.
- 3. Accidental protection: default button is strictly NO / Cancel.
- 4. Explicit confirmation completely purges ~/.extra and unlinks MCP registrations across Claude Desktop, Antigravity, Cursor, and Windsurf.
Verified Fast Path Code
extra uninstall
Section 5: Windows Defender CFA & Security DefenseCFA Compliant
Zero-Alarm Sandboxing & Defense Matrix
Windows Defender Controlled Folder Access (Ransomware Protection) strictly locks down default Windows shell folders (Documents, Pictures, Desktop). When automated agents write to these folders, Defender blocks the write with Event ID 1123.
Mandatory Safe Workspace Boundary
Extra operates strictly within %USERPROFILE%\.extra\workspace. This directory is 100% exempt from CFA restrictions, guaranteeing zero Windows Defender warnings, zero security toast popups, and reliable visual presentation.
One-Click UAC Elevation Repair:
extra doctor --fix-cfa
v0.3.7 Hardened
Control-Plane & Air-Gap Defense Architecture
Daemon Bearer & DNS Rebinding
Local daemon HTTP endpoints require cryptographically validated Bearer tokens and enforce strict Host header checks against loopback interfaces (127.0.0.1, localhost).
Cloud Relay Air-Gap Isolation
Dangerous execution tools (extra_execute_bridge, extra_harness_run) are permanently excluded from cloud relay execution.
Workspace Root Containment
Batch filesystem operations (extra_fs_batch) block bare drive roots and protect sensitive dotfiles (.git, .env).
Edge Worker PKCE (RFC 7636)
Cloudflare edge routing mandates cryptographic PKCE (S256) on OAuth handshakes, RFC 7009 token revocation, and strict contextual HTML sanitization against XSS.
Section 6: Low-Level Hardware Fail-SafesHardware Panic Gate
Emergency Abort Controls
You always retain sovereign control over your mouse and keyboard. If an agent enters an infinite loop, Extra includes low-level abort listeners that bypass all software layers:
Global Hardware Kill-Switch
Instant Kill Ctrl + Alt + Shift + Q
(Or Cmd + Opt + Shift + Q on macOS). Instantly terminates all Extra child processes and releases hardware hooks.
Corner Flick Kill-Switch
Hardware Interrupt
Physical Mouse to (0, 0)
Flicking your physical hardware mouse to the top-left monitor corner triggers an instant hardware abort interrupt.
Section 7: CLI Diagnostic Health SuiteCLI Verification
Verification & Health Commands
Run health audits, verify accessibility trees, and validate MCP transport conduits from the terminal:
extra doctor Environmental Audit
Audits Python runtime, Win32/macOS accessibility permissions, display scaling factors, and Windows Defender Controlled Folder Access status.
extra test 7-Stage Validation
Runs the full 7-stage engine integration test (capture, StallBreaker, input hooks, accessibility tree, window docking).
extra mcp Stdio Server
Launches the Model Context Protocol stdio server directly for manual client pipes or debugger harnesses.
Get Started Now
Empower your AI agents with real computer use.
Install Extra in seconds. Experience deterministic, live desktop automation without the 10-second vision tax.