Skip to main content
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

1
Run stackshift computers mcp --create-key my-agent to print the address and a ready-made Claude Code command.
2
Add the server to your client with the address https://api.stackshift.cloud/api/v1/computers/mcp and the header Authorization: Bearer <key>.
3
Check that the client lists the tools below.
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

Your client lists 18 tools and can use them within the key’s limits.

Common failures

  • 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": "…"}.

Give Claude Code a cloud computer

Add the Computers MCP server to Claude Code so it can open a desktop, run commands, fork copies and ask you before it acts.

Give Codex a cloud computer

Point Codex at the Computers MCP server so it can run builds, tests and browsers on a clean machine instead of your laptop.

Give Cursor a cloud computer

Add StackShift Computers to Cursor’s MCP settings so its agent can use a cloud machine with a real browser and terminal.

Computers keys and limits

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.