
# Computer Use MCP
### See the desktop. Understand the interface. Act with evidence.
[](https://github.com/astraclawteam/agent-computer-use-mcp/releases/latest)
[](https://github.com/astraclawteam/agent-computer-use-mcp/actions/workflows/ci.yml)
[](https://modelcontextprotocol.io/)
[](https://github.com/astraclawteam/agent-computer-use-mcp/releases/latest)
[](LICENSE)
`agent-computer-use-mcp` gives an MCP Host a compact, observable way to operate
local Windows applications. It combines semantic accessibility, secure
screenshot delivery, local PP-OCRv6, reliable Unicode input, and explicit
action verification behind a session-bound control lease.
[Download the latest release](https://github.com/astraclawteam/agent-computer-use-mcp/releases/latest)
· [Read the changelog](CHANGELOG.md)
· [Contribute](CONTRIBUTING.md)
> **Preview:** `0.x` targets Windows x64 and is evolving quickly. Actions remain
> Host-approved, application-visible, and fail closed when evidence is
> insufficient.
## From intent to verified action
```text
Natural-language task
↓
Host selects Computer Use from its semantic capability description
↓
Acquire a session-bound desktop control lease
↓
Observe: accessibility first → OCR → secure image understanding when needed
↓
Act through a semantic element, focus receipt, or observation-bound coordinate
↓
Verify the outcome and release control on success, failure, or cancellation
```
The Agent sees two task-level tools:
| Tool | Purpose |
| --- | --- |
| `computer.task` | Navigate native desktop or operating-system UI, or perform a non-submitting exact edit, through Host-owned observations and opaque semantic candidates; browser-native web pages and Host in-app previews use their dedicated capabilities when available. |
| `computer.message` | Send exact content to an explicit contact or conversation through the Host-owned deterministic messaging state machine. |
The lifecycle tools (`computer.acquire`, `computer.observe`, `computer.act`,
and `computer.release`) are workflow-internal. Health, doctor, installation,
and repair are also Host-only.
That boundary is carried by the advertised MCP contract, not by a vendor
convention. `tools/list` returns exactly `computer.task` and `computer.message`
unless the process was launched in host mode, and `tools/call` rejects every
name the surface did not advertise with the same error as a tool that does not
exist. A standard MCP Host therefore enforces the boundary without knowing
anything about this implementation:
```text
default launch → computer.task, computer.message
--tool-surface=host → the full ten-tool Host surface
```
The default surface is not a reduced desktop engine. `computer.task` and the
Host lifecycle tools consume the same versioned Scene, action implementation,
and receipts; the default surface only keeps targeting and controller lifecycle
inside the MCP server. A desktop control that is editable through Host mode must
therefore also be offered as an opaque `edit` candidate through `computer.task`.
Host mode is selected only from launch arguments or the
`AGENT_COMPUTER_USE_TOOL_SURFACE` environment variable, both owned by whoever
spawns the process. Nothing the Agent sends over the transport can widen its own
inventory. An unrecognized surface value fails at startup rather than quietly
falling back.
## Why this implementation
- **Semantic first, pixels when necessary.** Accessible controls are faster and
more reliable than guessed coordinates. OCR handles low-latency text; image
understanding is reserved for layouts, icons, and complex scenes.
- **Coordinates carry provenance.** Screenshot dimensions, native-window scale,
truncation, focus, observation identity, and expiry travel with the result.
- **Actions prove their postconditions.** Navigation receipts expose the
provider outcome and the newer Host Scene evidence that confirmed the target
state, destination surface, or owned transient. Provider status alone cannot
turn an unobserved click into success. When the first post-action Scene is
inconclusive, the Host may perform one read-only related-surface capture; it
never replays the click.
- **Editing never implies submission.** `computer.task` exposes a proven
`Editable` as one atomic replace-all action, grounds it in the current
screenshot, and commits only after exact-value read-back. It never exposes a
send/submit control or presses a commit key. Contact selection, conversation
verification, sending, and new-bubble proof remain exclusive to
`computer.message`.
- **Navigation delivery is grounded before mutation.** For a Host-selected
navigation control with current same-window semantic bounds, the Host chooses
one foreground pointer delivery inside that owned rectangle. It does not
invoke first and then retry by coordinate. The first post-action screenshot
carries the control anchor; an in-window popup is merged into the Scene only
when its OCR rows agree with an anchor-local changed region or an
independently detected flat pixel surface. An already-open popup can
therefore expose its owned navigation items without replaying its toggle.
- **Chinese input is a first-class path.** Coordinate-grounded Unicode entry
uses verified native delivery, while semantic fields remain on the driver
path.
- **Screenshots are assets, not file paths.** The Host receives controlled MCP
image content; the Agent never needs access to a temporary local file.
- **Control has a lifecycle.** Leases are bound to the requesting Host session
and are revoked on completion, cancellation, timeout, disconnect, or process
shutdown.
- **Task routing cannot escape the Host.** A live generic task result carrying
an opaque task token limits the next interaction step to `computer.task`;
terminal results expose no continuation control. Shell, raw targeting, and lifecycle
tools cannot replace an unresolved Host candidate. Same-package child
processes inherit only their proven owning-window process identity. A
navigation click whose Scene postcondition is not proven closes without
replay, even if the provider reported delivery. Once issued, the opaque task
token owns continuation scope; the model does not restate or paraphrase the
application and goal on later steps. A mixed-layout application may contain
a chat-like pane while the goal is ordinary navigation; `computer.task`
may expose its proven editor only as a non-submitting `edit` candidate while
hiding send controls, conversation targets, transcript, and descendants.
Only an explicit recipient-plus-send request uses `computer.message`.
- **Browser-native work keeps its native path.** Chrome or Chromium web-page
interaction belongs to a dedicated browser capability such as `agent-browser`
when the Host provides one, and XiaozhiClaw's in-app preview belongs to
`preview_browser`. Computer Use remains the visible native-desktop and
operating-system UI path, plus the fallback when a browser-native path cannot
complete the interaction.
- **No hidden self-update.** Startup is offline. Installation, upgrade,
downgrade, and rollback are explicit Host or operator actions.
## Install
### XiaozhiClaw
Open **Plugins → Connectors**, install **Computer Use**, review the requested
desktop permissions, and enable it. Health, diagnostics, installation details,
and repair planning are available from the connector's settings panel.
### Any standard MCP Host
Download `agent-computer-use-mcp-