> ## Documentation Index
> Fetch the complete documentation index at: https://docs.stackshift.cloud/llms.txt
> Use this file to discover all available pages before exploring further.

# Computers MCP tools

> One MCP address gives any MCP client 18 tools to create computers, see and use their screens, run commands, fork, pause and ask you first.

> [!TIP]
>
> **Live.** This area is documented as current, user-reliable behavior.

## Goal

Connect an MCP client and know what each tool does.

## Prerequisites

* A computers key.
* An MCP client that supports streamable HTTP and custom headers.

## Workflow

**Step 1**

Run `stackshift computers mcp --create-key my-agent` to print the address and a ready-made Claude Code command.

**Step 2**

Add the server to your client with the address `https://api.stackshift.cloud/api/v1/computers/mcp` and the header `Authorization: Bearer <key>`.

**Step 3**

Check that the client lists the tools below.

**Step 4**

Give your agent a project ID and a task. See the quickstart for your client.

## Computers and files

* `computers_create`, `computers_list`: start a computer from a template, snapshot or repository, and list a project’s computers.
* `computer_exec`: run a command and wait for it. `computer_files_read` and `computer_files_write` read and write files under `/workspace`, up to 8 MiB each.
* `computer_port_publish`: give a port an HTTPS address, public or private.
* `computer_agent_prompt`: hand a task to a coding agent in the computer. `computer_agent_events`, `computer_agent_steer`, `computer_agent_interrupt`, `computer_agent_conversations`, `computer_agent_providers` and `computer_agent_models` follow, redirect, stop and list.

## Seeing and using the screen

* `computer_screenshot`: the screen or one window, as an image.
* `computer_click`, `computer_type`, `computer_key`, `computer_scroll`, `computer_drag`: mouse and keyboard.
* `computer_fill_login`: fill a saved login by name. The password never reaches the agent.
* `computer_browser_cdp`: a short-lived DevTools address for Playwright or Puppeteer.
* `computer_replay`: what happened on the computer, and its recordings.

## Lifecycle and people

* `computer_fork`: 1 to 20 copies, with a name and instruction each.
* `computer_pause`: pause with memory or disk kept. Opening the computer wakes it.
* `computer_ask_owner`: ask the owner a yes-or-no question on an approval card and wait for the answer.
* Creating, forking and pausing need an `idempotency_key`, so retries are safe.

## Expected result

> [!TIP]
>
> Your client lists 18 tools and can use them within the key’s limits.

## Common failures

> [!WARNING]
>
> * The client cannot connect. It needs streamable HTTP and a header; older clients that support only stdio need a proxy such as `mcp-remote`.
> * A call returns a typed error. Errors use the same `{"error": {"code", "message", "retryable"}}` shape as the REST API.
> * `computer_fill_login` answers `invalid_request`. The name is not one of the computer's `logins`, or that secret was revoked; add it under the computer's settings, or save the secret again as `{"username": "…", "password": "…"}`.

## Related guides

> [card] [Give Claude Code a cloud computer](https://docs.stackshift.cloud/computers/quickstart-claude-code.md)
>
> Add the Computers MCP server to Claude Code so it can open a desktop, run commands, fork copies and ask you before it acts.

> [card] [Give Codex a cloud computer](https://docs.stackshift.cloud/computers/quickstart-codex.md)
>
> Point Codex at the Computers MCP server so it can run builds, tests and browsers on a clean machine instead of your laptop.

> [card] [Give Cursor a cloud computer](https://docs.stackshift.cloud/computers/quickstart-cursor.md)
>
> Add StackShift Computers to Cursor’s MCP settings so its agent can use a cloud machine with a real browser and terminal.

> [card] [Computers keys and limits](https://docs.stackshift.cloud/computers/keys-and-limits.md)
>
> A computers key lets an agent or tool drive computers and nothing else. Set how many it may run, how large, from which templates and how much it may spend.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.