Browse documentation chapters

Documentation

MCP & CLI Guide

Connect AIRemoteX to Claude Code, Cursor, Codex, or Antigravity, inspect Windows hosts with 11 built-in probes, and run tasks safely.

The cross-platform aro binary runs on Windows, macOS, and Linux, providing both an interactive CLI and a headless MCP server (aro mcp) for AI coding agents—no background desktop tray required.

1. Add aro mcp to Your AI Agent

Once signed in via the Desktop app or aro login, add the MCP server to Claude Code, Cursor, Codex, or Antigravity:

{
  "mcpServers": {
    "airemotex": {
      "command": "aro",
      "args": ["mcp"]
    }
  }
}

On Windows, if your editor has not refreshed PATH yet, use the full path: C:\\Users\\<you>\\AppData\\Local\\Programs\\AIRemoteX\\aro.exe.

2. Credential Scrubbing (--scrub-llm)

  • aro mcp scrubs sensitive credentials automatically by default before returning text to an LLM.
  • When an AI agent invokes the aro CLI directly from a shell, pass --scrub-llm before the subcommand so private keys, API keys, and tokens are masked automatically:
aro --scrub-llm probe MES-LINE-01 triage
aro --scrub-llm cat MES-LINE-01 "C:\MES\app.log"

3. Built-In Windows Probes (11 Kinds)

Observe system state deterministically instead of guessing with fragile shell one-liners (aro_probe in MCP, or aro --scrub-llm probe <target> <kind> in CLI):

Probe Purpose
triage One-shot health overview: CPU, memory, disk pressure, recent faults, active sessions, and device notes
crashes Recent application crashes and hangs from Windows Event Logs and crash archives
sysinfo OS build, uptime, hardware summary, and network adapters
sessions Active and disconnected user sessions on the host
services Windows service states, startup modes, and anomalies
processes Running processes with PID, CPU, and memory usage
disks Volume capacity and free space across fixed drives
net_conns Listening ports and active network connections mapped to processes
eventlog Structured search across System, Application, and Security logs
reg_query Read Windows Registry keys and values
screenshot Capture full-resolution desktop screenshots (even across background service sessions) via aro_screenshot or aro --scrub-llm screenshot <target> -o screen.jpg

4. File Operations & Safe Patching

All file tools accept standard Windows paths (C:\...) directly and handle UTF-8, UTF-16LE, and GB18030 logs automatically:

# List directory contents and search logs across encodings
aro --scrub-llm ls MES-LINE-01 "C:\MES\logs"
aro --scrub-llm grep MES-LINE-01 "C:\MES\logs" --pattern "TimeoutException"

# Read a config file (returns content alongside its current sha256)
aro --scrub-llm cat MES-LINE-01 "C:\MES\config.ini"

# Patch text safely with optimistic locking (preserves original encoding & line endings)
aro --scrub-llm patch MES-LINE-01 "C:\MES\config.ini" \
  --sha256 <current_sha256> \
  --old "RetryCount=3" \
  --new "RetryCount=5"

5. Running Commands & Human Approvals

# Run an audited command with a clear reason shown to approvers
aro --scrub-llm exec MES-LINE-01 "Get-Service MES*" --reason "Check MES worker status"

# Wait on a running task rather than submitting duplicates
aro --scrub-llm op wait <op_id>

When a command or file operation is risky (such as service restarts, deletions, or changes on a protected host), AIRemoteX pauses execution and returns a pending confirmation request:

  • AI agents must wait and show the returned preview and confirmation token to the user.
  • A human approves or rejects on the Desktop workbench, Android app, or an interactive terminal (aro confirm <token>).