Revyl Documentation

Agents

MCP setup

Connect Revyl to Cursor, Claude Code, Codex, ChatGPT, Claude, Grok, VS Code, or another MCP client

Connect Revyl over MCP so your coding agent can run the current app source, control cloud devices, and verify changes. Custom MCP is optional. The Cursor plugin installs the CLI and signs you in without starting this local MCP server. Chat apps such as ChatGPT, Claude, and Grok use Revyl's hosted MCP server instead, and so do VS Code and other MCP clients that sign in with OAuth. Agents you run in T3 Code or Orca use the setup for that agent. For agents that run in the cloud, such as the GitHub Copilot coding agent, Codex cloud, Claude Code on the web, Cursor Cloud Agents, Devin, Amp, Factory, and OpenCode's GitHub agent, see Cloud agents.

Set up with an agent

Paste one prompt and your coding agent does the rest.

Setup prompt

Connect Revyl to this coding agent over MCP.

Read https://docs.revyl.com/agents/mcp.md and follow it. It's the current Revyl guide for this, so prefer it over anything you remember about Revyl.

Pick this agent's path from the page: its Cursor, Codex, Claude Code, or OpenCode plugin where one exists, otherwise the hosted MCP server. Use the standalone CLI-based path only for a client with neither, and install and sign in the CLI first only then.

You're done when the server is registered and you've told me how to restart this agent, so a new chat can start a Revyl device session, give me its viewer link, and stop it.

Ask me before anything that needs my login or approval.

Codex and Claude Code plugin

One Revyl plugin installs in both Codex and Claude Code from the public RevylAI/revyl-cli repository's marketplace. It supplies a checksum-pinned CLI launcher, CLI-backed skills that behave the same in both hosts, Revyl's hosted MCP server for finding builds and driving devices, and a read-only check when a session starts. It is not listed in either host's public plugin directory.

  • Commands you start: revyl-test, revyl-device, revyl-build, revyl-proof, revyl-status, revyl-stop, revyl-setup, and revyl-cli-auth-bypass. Claude Code runs them as /revyl-cli:<name>; Codex runs them as $<name>. Each asks before it uses device time or build minutes.
  • Skills the agent picks up on its own: revyl-dev-loop, revyl-proof-ci, revyl-build-config, revyl-build-ci-upload, revyl-find-build, revyl-ci-sync, revyl-headless, revyl-proof-automation, and revyl-github.
  • Claude Code only: the revyl-verifier subagent that revyl-test hands device checks to, and an opt-in offer to check each commit (offer_proof_after_commit; Codex users set REVYL_PLUGIN_OFFER_PROOF=1).
codex plugin marketplace add RevylAI/revyl-cli
codex plugin add revyl@revyl

You can also install Revyl from the revyl marketplace through /plugins.

To install from a local exported revyl-cli/ folder instead, pass its absolute path in place of RevylAI/revyl-cli. Start a fresh session after installing.

The hosted server's tools sign in with Revyl's OAuth page, separately from the CLI, once per host. Sign in when you first want them:

codex mcp login revyl-workspace

Codex runs a plugin's hooks only after you trust them: open /hooks and trust the Revyl session check. Codex asks again after a plugin update changes the hook.

Headless runs such as claude -p and codex exec can't complete the OAuth sign-in, so they use the CLI with REVYL_API_KEY, or call the hosted server with an API key. Everything the plugin's skills do also works through the CLI alone.

When a session starts, the plugin adds a few lines of context: whether the CLI is signed in and finds your .revyl/config.yaml, and, in a GitHub repository, whether the Revyl GitHub App is connected and pull-request builds are on for the project. A pushed pull request then has a Revyl build ready to test. When GitHub isn't set up, the agent may offer to set it up, at most once a week; it never sends you an install link or changes configuration until you say yes. The check never signs in or starts a device; the only thing it downloads is the plugin's pinned, checksum-verified CLI, on the first session.

When the agent changes your mobile app's code, it offers to check the change on a Revyl cloud device before calling the work done. Approve the device or build operation, naming the app and target environment; nothing that uses device time starts without your go-ahead. On first use, the skill checks the pinned launcher version and authentication status; approve its normal Revyl sign-in link when prompted. Installation does not run commands or modify your app source or configuration.

Optional standalone MCP setup for coding agents follows the hosted server section. Choose it when you want MCP tools instead of the plugin's CLI-backed skills.

Hosted MCP server for ChatGPT, Claude, and Grok

Chat apps connect to Revyl's hosted MCP server rather than a local CLI:

https://backend.revyl.ai/api/v1/mcp

It needs no CLI install or API key. On first connection, the app opens Revyl's sign-in, where you choose the organization to connect. Its tools find your apps, open an app's Atlas map or a live session, list running sessions, start an iOS, Android, or web session or a Revyl computer (a macOS workspace for the agent), take a screenshot, and stop a session. On a device or browser the agent acts and checks the screen in plain language, or taps, types, swipes, presses keys, and opens links directly, up to ten at a time; in a Revyl computer it clicks, types, presses keys, and scrolls one step at a time, finding what to click from a description. After a session, the agent can report its recording and steps with a link to watch it in Revyl; the recording's own download link is never given to the agent. For Atlas, the agent can search and summarize a map, compare the maps of two builds, and, only when you ask, create a public read-only share link to a map. For GitLab, it reports whether your organization is connected and links to Integrations → GitLab, where an owner or admin connects it; never paste a GitLab token into a chat. The tools also list an app's builds and follow one until it is ready, so after you push to a pull request the agent can wait for that pull request's build and open a session on it. Revyl builds pull requests only for projects with pull-request builds set up. When you ask, the agent can also build an app from the GitHub repository linked to it in Revyl, at the newest pushed commit of a branch, with the app's build profile, and cancel a build it started; it builds only what is pushed. If your organization has not connected GitHub, the agent can offer to, and once you agree it gives you the Revyl GitHub App install link to open yourself. A build uses your organization's build minutes and a session its device time, so the agent starts either only when you ask. A device or browser session the agent starts ends after five minutes with nothing acting on it. After one hour the agent can no longer control it, and its next call about the session ends it. The agent can ask for other limits when it starts the session. Revyl computers come with Pro, so the organization needs a card on file to start one. They can also create, stop, restart, snapshot and delete computers that keep their disk between sessions; see Persistent computers.

The same tools work with your saved tests and workflows. They list them with each one's last result, show a test's steps as test YAML, with its recent runs when you ask, and run a test or workflow on the build, branch, or device you name. They follow the run, cancel it, and read its result: whether it passed, and for a failure the step that failed, the reason, and, when you ask, the screen at that step, with a link to the full report. When you ask, the agent creates a test from plain-language steps, test YAML, or the steps of a device session you drove, changes a test's steps as a new version, and checks test YAML before saving it. A run uses device time, so the agent starts one only when you ask. A hosted tool deletes a test or a workflow only when the server URL names the deletes toolset, as below. No hosted tool builds unpushed changes or edits source; use the dashboard, the plugin, or the CLI-based MCP setup on this page for those. For work on your own files, such as building from local source, uploading a build, the hot-reload dev loop, or project config, the agent reads the Revyl CLI's steps from the server and runs them in your shell. Hosted tools also install an app into a running session, download a file onto a device, and read a device's network requests; code-execution scripts are in the devices toolset, and billing status and the add-card link are in the org toolset except on ChatGPT and Codex. ?toolsets=all includes both toolsets.

To give an agent fewer tools, add ?toolsets=core to the server URL for the device loop alone; core, builds, runs, and atlas combine with commas, as in ?toolsets=core,runs. A URL that names toolsets offers the embedded Revyl view only with workspace, and Mac computers only with computers. Add read_only=true to leave out every tool that starts or changes something. No URL offers deleting tests, workflows, apps, or other saved resources until it names the deletes toolset, as in ?toolsets=all,deletes. A read-only agent still ends a session that is past its one-hour limit when it reads that session's screen or steps.

Install Revyl from ChatGPT's plugin directory: open Settings → Plugins, select Revyl, choose Install plugin, then Connect and sign in to Revyl. Atlas and device views show inside the conversation. Availability depends on your ChatGPT plan and workspace; see OpenAI's connected apps guide.

Hosted MCP server for VS Code and other MCP clients

Coding agents and IDEs that connect to a remote MCP server by URL and sign in with OAuth can use the same hosted server as the chat apps above, with no CLI install or API key:

https://backend.revyl.ai/api/v1/mcp

Add the URL to the client, then start or connect the server. The client opens Revyl's sign-in in your browser, where you choose the organization to connect, and keeps the token for later sessions. The tools are the ones described for the chat apps above.

VS Code with GitHub Copilot shows Atlas and live device views inside the chat (VS Code's MCP Apps support, which VS Code marks experimental). The other clients below don't render MCP Apps, so the same tools return links that open Atlas and live sessions in your browser. If VS Code blocks the embedded view, the chat shows a card with an Open in browser button instead.

Each tab below was checked against that client's own documentation for remote-URL and OAuth support. VS Code, Cline, Kilo Code, and OpenCode were also tested end to end against Revyl; the others are unverified with Revyl.

Needs VS Code with GitHub Copilot in agent mode. Install Revyl in VS Code, review the server, and choose Install. To add it by hand instead, run Chat: Open Customizations from the Command Palette, open MCP Servers, choose Add Server → HTTP, paste the URL, name it revyl, and choose Global → Copilot Global. To share it with a repository, commit a .mcp.json at its root:

{
  "mcpServers": {
    "revyl": {
      "type": "http",
      "url": "https://backend.revyl.ai/api/v1/mcp"
    }
  }
}

VS Code asks you to sign in to Revyl when the server starts. If Copilot then says it can't reach Revyl, run MCP: List Servers from the Command Palette, choose revyl, and choose Authenticate. See VS Code's MCP server guide.

Revyl extension. The Revyl extension for VS Code registers the same server for you and adds a Revyl panel. Revyl: Open Atlas and Revyl: Open Device Session in the Command Palette open Atlas or a live device session in an editor tab beside your code, and Copilot can open the same tab with the #revylPanel tool. The panel never starts a device session. It needs VS Code 1.109 or later and GitHub Copilot. Its Visual Studio Marketplace and Open VSX listings aren't published yet, so for now build it from the public repository with Node.js and install the VSIX:

git clone https://github.com/RevylAI/revyl-cli
cd revyl-cli/plugins/revyl-vscode
npm ci && npm run package
code --install-extension revyl.vsix

Or run Extensions: Install from VSIX... from the Command Palette and choose revyl.vsix. See the extension's README for its requirements and the endpoints it uses.

A client that connects only to local servers, or can't sign in to a remote server with OAuth, uses the CLI-based MCP server instead.

T3 Code and Orca

T3 Code and Orca run coding agents such as Claude Code, Codex, Cursor, and OpenCode, and each agent loads its own MCP servers. Add Revyl to the agent you run there, and its threads or worktrees get your Revyl apps and builds plus cloud iOS, Android, web, and Mac sessions. Either server works: the hosted URL with OAuth, or the local revyl mcp serve, which signs in with revyl auth login or REVYL_API_KEY.

Add Revyl to the agent on the machine where T3 Code runs it: the Codex and Claude Code plugin, the Cursor setup, or, for any other agent, the hosted URL as a remote MCP server or revyl mcp serve as a local one. A Cursor agent in T3 Code can't finish an OAuth sign-in itself, so with the hosted server run agent mcp login revyl from the project folder first.

Then run Restart agent session from T3 Code's command palette. The conversation continues, and your next message starts the agent with Revyl connected. See T3 Code's composer guide.

Install the Revyl CLI

The Cursor Marketplace plugin installs a pinned CLI through its hooks. For a manual install, Claude Code, or standalone Codex MCP:

curl -fsSL https://revyl.com/install.sh | sh

Authentication

Every standalone CLI or MCP setup below starts with revyl auth login. It prints an approval URL and a short code, opens the URL when this machine has a browser, and waits for you to approve. Approval happens through Revyl rather than a local port, so the same command works on your laptop, in a cloud agent, over SSH, and in a container — just open the printed URL wherever you are signed in.

For a machine with nobody present to approve, use revyl auth login --api-key or set REVYL_API_KEY. That key is optional unattended authentication, not required. Hosted agents are covered under Cloud agents below. See Authentication for the full reference.

The MCP server reads whatever the CLI stored, so authenticating once in a terminal is enough — the next tool call picks it up without restarting the session.

Cursor

The Cursor plugin installs the CLI and signs you in. It does not start this local MCP server. Optional custom MCP below uses a literal command only (revyl or /usr/local/bin/revyl), never ${...}.

From the app repository, authenticate and install the MCP dev-loop skill:

revyl auth login
revyl skill install --name revyl-mcp-dev-loop --cursor

Create .cursor/mcp.json in the repository:

{
  "mcpServers": {
    "revyl": {
      "command": "revyl",
      "args": ["mcp", "serve", "--tool-profile", "dev"]
    }
  }
}

Restart Cursor if it was already open when you installed the CLI. Start a new Agent chat and ask:

Run this app on a Revyl device.

The dev tool profile exposes 11 focused setup, dev-loop, and device tools, including setup_status. It is intentionally narrower than the core and full tool profiles. Use the CLI or a broader tool profile for test, workflow, and other management operations. --tool-profile was named --profile before; the old name still works and prints a deprecation notice.

The command above explicitly selects the MCP-specific revyl-mcp-dev-loop skill. Running revyl skill install without selectors installs the recommended CLI skills instead (the revyl-cli router plus the explicit-only auth-bypass and Atlas review skills), which are the CLI fallback rather than this MCP skill. The Marketplace plugin does not start this server; install the MCP skill only when you opt into custom MCP.

How the plugin installs the CLI

Plugin hooks use an explicitly configured REVYL_BINARY when present in the environment. Otherwise they:

  1. read the runtime version and per-platform SHA-256 values pinned in the plugin release;
  2. select the matching macOS, Linux, or Windows asset from the immutable Revyl CLI GitHub Release;
  3. reuse the versioned cached executable only when its SHA-256 still matches;
  4. otherwise adopt an already-installed Revyl CLI — the first of revyl on PATH, /usr/local/bin/revyl, ~/.revyl/bin/revyl, or ~/.local/bin/revyl whose SHA-256 equals the pinned value — by copying it into the versioned cache and verifying the copy;
  5. download a missing or corrupt executable to a temporary file with a bounded timeout and up to three attempts with backoff, verify it, install it atomically, and verify the cached file again;
  6. copy the verified executable onto a user PATH location without replacing a different existing CLI: ~/.revyl/bin/revyl or ~/.local/bin/revyl on macOS and Linux, and %USERPROFILE%\.revyl\bin\revyl.exe or %LOCALAPPDATA%\Revyl\bin\revyl.exe on Windows. An explicit REVYL_BINARY override is not published.

The default cache is under $XDG_CACHE_HOME or $HOME/.cache/revyl/cursor-plugin on macOS and Linux, and %LOCALAPPDATA%\Revyl\cursor-plugin on Windows. A new plugin runtime pin uses a new versioned directory. A corrupt cached executable is never run and is replaced on the next online start. Agent shells still need the published PATH directories prepended; the cache path is not a revyl command.

sessionStart is a fast path: if the pin is already cached, it bridges a real REVYL_API_KEY or tells the agent to run revyl auth login. The first revyl command may download. When every download attempt fails, the launcher names the asset it could not fetch and points at REVYL_BINARY as the manual override.

Optional standalone CLI-based MCP clients

Revyl recognizes Claude Code, Codex, Cursor, Gemini CLI, OpenCode, VS Code Copilot, and Cline from the environment they give the commands they run. For any other agent or MCP client, set REVYL_AGENT=<agent-name> (lowercase letters, digits, ., _, or -) in the MCP server's env and in the shell the agent runs revyl from, so Revyl knows an agent is driving it.

Claude Code

Use this only when you choose standalone MCP instead of the Codex and Claude Code plugin.

Open a new terminal, authenticate, and run from the app repository:

revyl auth login
claude mcp add --scope project --transport stdio revyl -- revyl mcp serve --tool-profile dev
revyl skill install --name revyl-mcp-dev-loop --claude

Codex

Use this only when you choose standalone MCP instead of the Codex and Claude Code plugin. Open a new terminal, authenticate, and run from the app repository:

revyl auth login
codex mcp add revyl -- revyl mcp serve --tool-profile dev
revyl skill install --name revyl-mcp-dev-loop --codex

Skill selection, storage, and updates

The examples above select one skill. Repeat --name to select several, use --cli or --mcp for a family, or use --all for every skill. --cli selects the revyl-cli router, which carries every model-invocable CLI guide in references/, plus the explicit-only revyl-cli-auth-bypass and revyl-cli-atlas-review. Without a selector, revyl skill install uses the recommended skills that revyl skill list shows, which are the same three. In an interactive terminal, the picker preselects them, so pressing Enter installs them. In a script, or with --yes or --json, they are installed directly and named on stderr; --json output adds "selection": "default". Interactive revyl init offers the same preselected picker. An empty selection skips installation. Without an agent flag or a detected agent directory, installation targets Cursor and Codex.

By default, packages are shared in .agents/skills/. Cursor, Codex, and OpenCode discover that directory directly; Claude Code uses relative per-skill links in .claude/skills/. Selecting one agent does not hide a shared skill from other agents that read .agents/skills/. Add --global for user-wide installation under your home directory. A symlinked shared directory is supported only when it resolves inside the selected project or home directory.

Use --copy when you need independent packages in .cursor/skills/, .codex/skills/, or .claude/skills/, or when your filesystem cannot create Claude's compatibility links. On Windows without symlink privileges, select Claude Code (copy mode) in revyl init. Shared installation checks link support before writing packages, so an unsupported filesystem does not leave a partial install. Shared installation checks all agent directories in the selected scope, even agents you did not select. Conflicting packages, including retired auth-bypass platform aliases, are preserved rather than migrated or pruned. When conflicting packages or missing link support block shared storage, a noninteractive revyl skill install says so on stderr and continues as if --copy were given. An interactive install, or one where a selected agent already links a selected skill to shared storage, stops before writing instead and names its recovery: move the listed conflicting packages aside, or use --copy when only Claude's links are unavailable. --copy never replaces existing links. Move conflicting copies aside to switch to shared storage.

A project install inside a Git repository also writes a short Revyl skill index into the repository root's AGENTS.md, or into CLAUDE.md when that is the only instruction file and does not mention AGENTS.md. The index sits between <!-- revyl:skills:start --> and <!-- revyl:skills:end --> markers, names the revyl-cli router and its guides, and names the directory to run revyl from (or -C <dir>) when the Revyl project lives below the repository root. Content outside the markers is kept, a rerun replaces only the index, and an older Revyl dev-loop block stays unless --force replaces it. Pass --no-agents-md to skip it. A --global install, or one outside a Git repository, never writes an instruction file. One stderr line names the file it wrote; --json and --quiet silence it. In project scope skill update refreshes an existing index and adds one when Revyl skills are installed, and --no-agents-md skips both. Installation does not inject Cursor rules.

Each installation includes SKILL.md and the package's source-authored agent metadata, references, scripts, and assets when present. Auth-bypass reads only the reference matching the detected stack, rather than loading every platform recipe. Auth-bypass and Atlas review require an explicit user request in all supported clients; ordinary workflows permit implicit invocation.

Inspect or refresh installed packages separately from the CLI binary:

revyl skill list --installed --json
revyl skill update
revyl skill update revyl-mcp-dev-loop
revyl skill update --global
revyl skill update --consolidate

Installed listing covers project and global scopes. Updates default to the current project and only refresh already-installed, unmodified Revyl-managed packages. Local edits and unmanaged packages are preserved and reported; updates never add new skills. revyl upgrade leaves skills unchanged. --consolidate is the one exception: it installs the revyl-cli router where separately installed revyl-cli-<guide> skills are present, then removes only their unmodified Revyl-managed copies and reports edited ones. It then refreshes the other installed packages as plain skill update does. Ordinary installation also preserves an existing package. Use --force only to deliberately replace a selected package and discard its local edits.

The open skills installer reads the same packages from the public CLI repository:

npx skills add RevylAI/revyl-cli#stable -y
npx skills add RevylAI/revyl-cli#stable --skill revyl-mcp-dev-loop -y

Without --skill, it offers the recommended skills that revyl skill list shows. #stable follows the latest CLI release, while main can include skill changes that are not released yet. npx skills update refreshes packages it installed; revyl skill update reports them as not managed by Revyl and leaves them unchanged.

Follow your Git branch

MCP tools read the Git branch only of the project you point them at, never the server's own folder. Set REVYL_PROJECT_DIR to your app's folder in the server's environment, or pass project_dir on each call. Automatic runs, sessions, and uploads use that branch when the app's automatic Git branch detection is enabled. With detection off, or without either directory input, they use the app's default branch. Explicit branch, exact build, and saved build choices still apply.

Cursor: add env to the revyl entry in the repository's .cursor/mcp.json. Cursor fills in ${workspaceFolder}, the folder that holds .cursor/, so the shared file works on every machine. Append your app's subfolder if the app isn't at the repository root.

{
  "mcpServers": {
    "revyl": {
      "command": "revyl",
      "args": ["mcp", "serve", "--tool-profile", "dev"],
      "env": { "REVYL_PROJECT_DIR": "${workspaceFolder}" }
    }
  }
}

Claude Code: add a local-scope entry. It stays private to you and takes precedence over the repository's shared revyl entry.

claude mcp add --scope local --transport stdio revyl -e REVYL_PROJECT_DIR=/absolute/path/to/your/app -- revyl mcp serve --tool-profile dev

Codex: this replaces the revyl entry in your own ~/.codex/config.toml.

codex mcp add revyl --env REVYL_PROJECT_DIR=/absolute/path/to/your/app -- revyl mcp serve --tool-profile dev

See Git branch detection for how runs and uploads use the branch.

Launch Configuration Inputs

MCP launch tools expose the same startup inputs as the CLI. On start_dev_loop, start_device_session, run_test, and run_workflow, use:

  • build_profile on start_dev_loop for the named local build profile (profile, its old name, still works and adds a warning to the result);
  • platform on start_dev_loop for its ios or android recipe and device;
  • session_profile on start_dev_loop and start_device_session for the session profile Revyl runs on its hosted runner before the session is ready, or none to start without the project's default profile;
  • launch_vars for stored environment-configuration names or IDs;
  • launch_arg_sets for stored ordered iOS argument-set names or IDs;
  • launch_arguments for exact inline iOS argument tokens;
  • launch_env on start_device_session for inline environment variables, as an object of keys to values, like the CLI's --launch-env;
  • device_model and os_version on start_device_session for the iOS or Android device, like revyl device start --device-model and --os-version: without os_version, the session uses the newest runtime the model supports, and a model or pair the device catalog doesn't offer is refused; and
  • branch_name, build_selection, and project_dir to choose the branch and build, as in Branch and build inputs.

Inline environment variables override stored ones with the same key. Their values appear in the conversation, so keep secrets in launch_vars. Arrays preserve their input order. Stored argument sets are flattened first, then inline tokens are appended. Inline tokens are non-secret. Android-only launches reject iOS arguments, while mixed workflows skip them for Android children.

Setup recovery

The agent calls start_dev_loop first. When setup is ready, Revyl returns the viewer immediately. Otherwise the result contains one structured remediation:

  • auth_required, auth_expired, or auth_invalid: run remediation.command to log in; invalid stored credentials are replaced by the successful login before the single retry. Revyl also registers an approval for you and returns it as outcome.authorization_url and outcome.authorization_code, so you can approve in a browser without touching a terminal — clients that render inline MCP apps show this as an authorize button. The accompanying message also names the Cloud secret bridge below, which is the recovery to prefer when no one is present to complete a login.
  • cloud_secret_required: run remediation.command to bridge the injected remediation.env_name secret into the credential store. restart_required is false, so retry in the same session. When no secret is present the command says so; run revyl auth login and post the printed approval URL, or add optional REVYL_API_KEY as a Runtime Secret and start a fresh Cloud Agent.
  • cloud_context_invalid: when remediation.action_kind is restart_session, start a fresh Cloud session and do not retry in the current session.
  • project_not_initialized: use remediation.command to pull an existing UI-created or server-managed project, or remediation.alternative_command to initialize a genuinely new project. Choose from repository and user context; ask when unclear, then run only that exact command in remediation.working_directory.
  • project_legacy_config: run remediation.check_command to review the proposal and complete migration report, then run remediation.apply_command to create the backup and apply it.
  • project_outside_git: select a project directory inside an active Git worktree and retry with it as project_dir.
  • project_ambiguous: choose one remediation.candidate_roots value and retry with that exact project_dir.
  • project_invalid: run remediation.check_command, repair remediation.config_path, and retry.

After one remediation, the agent retries start_dev_loop once. A second failure is reported instead of entering a setup loop.

When setup fails, a step is blocked, or the user stops or changes course partway, the agent also reports it to the Revyl team with revyl feedback --type bug (Revyl broke) or --type friction (it worked but was hard), naming the setup step it reached, what blocked it, and where the user stopped. A setup that only succeeded after a workaround is reported as friction. Reports never include the app's data.

If start_dev_loop instead fails with a build profile or platform selection error, use the valid choices in the error to retry once with exact build_profile and platform values. Do not guess or invent a default. The deprecated platform_key input returns dev_loop_platform_key_removed; retry with build_profile and platform.

setup_status provides the same secret-free setup diagnostics when explicitly requested, but it is not required before a normal dev loop. Its signals object reports the markers behind the classification without exposing any secret: whether a Cloud context file was read, whether it failed to parse, and whether REVYL_API_KEY was absent, unresolved, or present. An unresolved value means the host passed its literal interpolation syntax rather than the secret itself.

Cloud agents

Cloud coding agents work in a hosted sandbox that has none of your local CLI installation or sign-in. Each recipe below takes one of two routes:

  • Hosted server: the agent connects to the hosted MCP server and you sign in to Revyl with OAuth once. An agent that can't complete the OAuth flow sends a personal Revyl API key instead, as described in Hosted server with an API key.
  • CLI: the agent's environment setup installs the CLI, and the CLI-based MCP server and every revyl command authenticate with REVYL_API_KEY. Create a key as described in Getting an API Key and store it only in the agent's secret settings, never in a committed file.

Except for Omnara, none of these recipes has been tested end to end with Revyl yet. Each follows the vendor's current documentation, and each is marked Untested until it has been run.

For the CLI route:

  • If revyl isn't on the PATH of the process that starts the MCP server, use the binary's absolute path as command.
  • If the server reports cloud_secret_required, it can't see the key that the agent's shell has; run the secret bridge.
  • An agent Revyl doesn't detect on its own can set REVYL_AGENT, as described under Optional standalone CLI-based MCP clients.
  • When the agent's outbound network is restricted, allow backend.revyl.ai. Build uploads and live sessions also reach hosts that Revyl returns at run time; see Sandboxed environments.

Hosted server with an API key

An agent that can't complete OAuth, such as a CI job or a headless run, can call the hosted server with a personal Revyl API key. Create the key as described in Getting an API Key, store it in the agent's secret settings, and send it as a bearer token:

{
  "mcpServers": {
    "revyl-workspace": {
      "type": "http",
      "url": "https://backend.revyl.ai/api/v1/mcp",
      "headers": { "Authorization": "Bearer ${REVYL_API_KEY}" }
    }
  }
}

The key acts as the person who created it, in that person's organization, with the permissions it has on Revyl's REST API. A person in several organizations acts in the first one Revyl lists for them, as on the REST API; sign in with OAuth to choose another. The server accepts it only in the Authorization header, never in the URL, and refuses a key that belongs to no person. A key it rejects fails the connection with a 403 that says so, rather than starting an OAuth sign-in. Use the secret substitution syntax your agent documents; the ${REVYL_API_KEY} form above is Claude Code's.

To let a headless run call tools without a prompt for each one, allow the tools that change nothing and leave the rest to ask:

open_revyl_workspace, list_apps, list_device_sessions, screenshot, get_device_step, get_session_recording, get_exploration, atlas_search, atlas_graph, atlas_diff, get_atlas, get_atlas_annotations, list_builds, get_build, connect_gitlab, list_tests, get_test, get_run and validate_test.

GitHub Copilot coding agent

Untested. Copilot's cloud agent can't sign in with OAuth to a remote server configured in repository settings, so it can't use the hosted server. Use the CLI-based server with an API key instead.

Setup steps run only in sessions on GitHub Actions, such as one started by assigning an issue to Copilot. Choose Actions when you start a session elsewhere; a cloud sandbox session doesn't run setup steps, so it has no revyl command.

  1. Install the CLI in .github/workflows/copilot-setup-steps.yml on your default branch. The job must be named copilot-setup-steps:

    name: Copilot Setup Steps
    on: workflow_dispatch
    
    jobs:
      copilot-setup-steps:
        runs-on: ubuntu-latest
        permissions:
          contents: read
        steps:
          - name: Install the Revyl CLI
            run: |
              curl -fsSL https://revyl.com/install.sh | sh
              echo "$HOME/.revyl/bin" >> "$GITHUB_PATH"
  2. In the repository's Settings → Secrets and variables → Agents, add a secret named COPILOT_MCP_REVYL_API_KEY with your API key. Copilot passes only secrets whose names start with COPILOT_MCP_ to MCP servers.

  3. In Settings → Copilot → MCP servers, add:

    {
      "mcpServers": {
        "revyl": {
          "type": "local",
          "command": "revyl",
          "args": ["mcp", "serve", "--tool-profile", "dev"],
          "env": {
            "REVYL_API_KEY": "$COPILOT_MCP_REVYL_API_KEY"
          },
          "tools": ["*"]
        }
      }
    }

Copilot calls MCP tools without asking first, and a device session uses your organization's device time, so list only the tools you want in tools if * is too broad. Copilot's firewall doesn't apply to MCP servers or setup steps. For the agent to also run revyl in its own shell, add a second Agents secret named REVYL_API_KEY and allow backend.revyl.ai under Settings → Copilot → Internet access. See GitHub's MCP configuration guide.

Codex cloud

Untested. OpenAI's Codex Cloud documentation doesn't cover MCP servers in cloud tasks, so this recipe uses the CLI and Revyl skills committed to your repository.

  1. From the app repository, run revyl skill install --codex and commit .agents/skills/. Codex cloud tasks load skills stored in the repository.
  2. Open Settings → Codex Cloud → Environments, then create or edit the environment. Add pip install revyl to its install script so the CLI is on every task's PATH.
  3. Under Environment variables, add REVYL_API_KEY with your API key. Use an environment variable rather than an HTTP secret: an HTTP secret gives programs only a placeholder, and the CLI reads the key itself.
  4. If Enable all public internet access is off, keep the package-manager domains on and add backend.revyl.ai under Additional allowed domains.

See OpenAI's cloud environments guide.

Claude Code on the web

Untested. Cloud sessions don't install plugins a repository turns on, so the Codex and Claude Code plugin isn't available there. A session with one repository does load the repository's .mcp.json.

  1. Commit the project-scoped server from Claude Code; its claude mcp add --scope project command writes .mcp.json.
  2. In the environment selector on claude.ai/code, add or edit an environment and set:
    • Setup script, which runs as root before Claude starts:

      #!/bin/bash
      UV_TOOL_BIN_DIR=/usr/local/bin uv tool install revyl
    • Environment variables: REVYL_API_KEY=<your Revyl API key>. Anyone who uses the environment can read its variables, so keep the key in an environment only you use.

    • Network access: Limited, with Allow package managers checked for PyPI and backend.revyl.ai under Allowed domains.

To use the hosted server's tools as well, add Revyl as a Claude custom connector (see the Claude tab under Hosted MCP server for ChatGPT, Claude, and Grok) and enable it on the session. Connector traffic goes through Anthropic, so it doesn't need an allowed domain. See Anthropic's cloud environments guide.

Cursor Cloud Agents

Untested. Cloud Agents do not inherit the CLI installation or credentials from your local machine. Install the Cursor plugin; its hooks download the pinned CLI. Then:

  1. Ask the agent to run revyl auth login and post the approval URL as a clickable markdown link, or add optional REVYL_API_KEY as a Runtime Secret for unattended agents.
  2. Start a new Cloud Agent so hooks can see the environment.
  3. Ask the agent to run the app with a remote build.

If you install the CLI yourself in Cloud setup instead of using the plugin, use the GitHub raw installer above. Optional custom MCP must use a literal command (revyl or /usr/local/bin/revyl), never ${CURSOR_PLUGIN_ROOT} or ${env:...}. Cloud Agents do not start plugin MCP.

Untested: Cloud Agents also connect to HTTP MCP servers and sign each user in with OAuth, so they can use the hosted server's tools. Add https://backend.revyl.ai/api/v1/mcp as an HTTP server from the MCP dropdown in cursor.com/agents, or have a team admin add it under Dashboard → Plugins & MCPs. Cursor proxies HTTP MCP calls through its backend rather than the agent's VM. If you restrict Cloud Agent network access to an allowlist, add backend.revyl.ai for CLI commands. See Cursor's Cloud Agent capabilities.

When the agent reports cloud_secret_required

A Cloud Agent injects Runtime Secrets into the shell, but the MCP server runs as a separate process that may not see them. Bridge the secret from a terminal in the agent:

revyl auth persist-cloud-env

The command copies REVYL_API_KEY from the current shell into the credential store. It reads an existing secret and cannot create one: if no key is present, run revyl auth login and post the printed approval URL, or add optional REVYL_API_KEY as a Runtime Secret and start a fresh Cloud Agent.

Never paste the secret value into chat, a command argument, or a commit. The bridge reads it from the environment and never prints it.

Devin

Untested. Devin signs in to remote MCP servers with OAuth, so it can use the hosted server:

  1. Open Customize → MCPs, choose +, then New MCP. An admin adding it for the whole organization chooses Add custom MCP instead.
  2. Name it Revyl, select the HTTP transport, enter https://backend.revyl.ai/api/v1/mcp as the Server URL, choose OAuth as the authentication method, and select Add.
  3. Choose Connect and sign in to Revyl. For an organization server, Access decides whose sign-in sessions use: with Organization, every member shares one connection, so Devin recommends a service account; with Personal, each member signs in.

The hosted server starts cloud builds of a linked repository and runs saved tests, but it can't read your checkout. For CLI commands, install the CLI in your environment blueprint and add REVYL_API_KEY under Settings → Resources → Secrets (personal secrets stay in your own sessions). Devin binds a secret only to the commands that need it, so tell it that revyl reads REVYL_API_KEY.

initialize: |
  curl -fsSL https://revyl.com/install.sh | sh

See Devin's MCP guide.

Amp

Untested. Add the hosted server to the Amp CLI, which signs in through your browser:

amp mcp add revyl https://backend.revyl.ai/api/v1/mcp
amp mcp doctor

Threads that run on that machine can then use the tools. A remote server stored on ampcode.com, which orbs and Amp on the web use, can't sign in to Revyl yet. In an orb, use the CLI instead: add REVYL_API_KEY as a secret in Amp's personal, project, or workspace settings, and install the CLI in the project's setup. The Revyl plugin for Amp adds device tools whose screenshots the model sees, Watch live and Stop devices buttons, and a screenshot after each edit while a device is running. Amp doesn't render MCP Apps, so the tools return links that open Atlas and live sessions in your browser. See Amp's MCP guide.

Factory

Untested. Factory's cloud Environments use the CLI route:

  1. In Settings → Environments, add the CLI install to the environment's setup script:

    curl -fsSL https://revyl.com/install.sh | sh
  2. In Settings → Account → Secrets, add REVYL_API_KEY. Runtime secrets become environment variables in sessions; they aren't available while the Environment builds.

  3. Commit .factory/mcp.json to the repository. Droid fills in ${REVYL_API_KEY} from the session's environment, so the key stays out of the file:

    {
      "mcpServers": {
        "revyl": {
          "type": "stdio",
          "command": "revyl",
          "args": ["mcp", "serve", "--tool-profile", "dev"],
          "env": { "REVYL_API_KEY": "${REVYL_API_KEY}" }
        }
      }
    }

See Factory's MCP guide and Environment prerequisites.

Omnara

Omnara agents call the hosted server directly and sign in with an Omnara MCP OAuth secret, which Omnara refreshes on its own:

  1. Create the secret, then sign in to Revyl and choose the organization the agent should use:

    npx omnara secrets mcp-oauth --owner-kind project --owner-project-id <project-id> \
      --mcp-url https://backend.revyl.ai/api/v1/mcp --name revyl-mcp-oauth

    This works on Omnara Cloud. Revyl's sign-in accepts only Omnara Cloud's callback URL, so on a self-hosted Omnara this fails with invalid_redirect_uri. There, run connect-revyl.mjs with --project <project-id> instead. It signs in through a local callback and stores the same kind of secret.

  2. Add the server to the agent's config with the secret's ID:

    mcp:
      revyl-workspace:
        url: https://backend.revyl.ai/api/v1/mcp
        auth:
          type: oauth
          secret_id: sec_...

Omnara has the full block with Revyl's skill and permission defaults, and a prompt that adds both to an existing agent.

OpenCode GitHub agent

Untested. OpenCode's GitHub agent runs in your repository's GitHub Actions when someone comments /oc on an issue or pull request. The runner can't complete OAuth, so the Revyl plugin uses the CLI route:

  1. In the app repository, run opencode github install. It installs the OpenCode GitHub app and writes .github/workflows/opencode.yml.

  2. Commit an opencode.json that adds the plugin with the CLI-based server:

    {
      "plugins": [
        {
          "package": "github:RevylAI/revyl-cli#main::path:plugins/revyl-opencode",
          "options": { "mcp": "local" }
        }
      ]
    }
  3. In .github/workflows/opencode.yml, add a CLI install step before Run OpenCode, and add REVYL_API_KEY to that step's env beside its model key:

    - name: Install the Revyl CLI
      run: |
        curl -fsSL https://revyl.com/install.sh | sh
        echo "$HOME/.revyl/bin" >> "$GITHUB_PATH"
    
    - name: Run OpenCode
      uses: anomalyco/opencode/github@latest
      env:
        ANTHROPIC_API_KEY: ${{ secrets.ANTHROPIC_API_KEY }}
        REVYL_API_KEY: ${{ secrets.REVYL_API_KEY }}
      with:
        model: anthropic/claude-sonnet-5-5
  4. Add REVYL_API_KEY under the repository's Settings → Secrets and variables → Actions.

Then comment, for example, /oc start an Android session of the app and check the login screen. See OpenCode's GitHub guide.

Revyl docs server

The docs site runs a read-only MCP server at https://docs.revyl.com/mcp that needs no sign-in. It searches and reads documentation with search_revyl_documentation, get_revyl_documentation_page, and list_revyl_documentation_pages. It does not start devices or builds; that is the job of the Revyl MCP server above.

Manual CLI fallback

Use the standalone CLI for CI, terminal workflows, unsupported MCP clients, offline environments, advanced operations, or recovery. Install it with the platform command above, then run the bounded loop from the app directory:

revyl auth login
revyl init --non-interactive

# Hot-reload/local build flow.
revyl dev --build-profile development --platform ios --detach --json --no-open

# Native or Cloud flow using remote builders.
revyl dev --build-profile development --platform ios --remote --seed-latest --detach --json --no-open

revyl dev status
revyl dev rebuild --wait --timeout 600 --json
revyl device screenshot --out before.png
revyl device validation "The expected screen is visible" --json

revyl dev stop

Run from the actual app root in a monorepo. If framework detection is wrong, rerun detection from that root:

revyl init --detect

If the detected recipe still needs adjustment, edit the named profile in .revyl/config.yaml directly and run revyl config validate. For Xcode, pass a scheme during detection with --xcode-scheme <platform-key>=<scheme> so Revyl embeds it in the generated build commands.

Use revyl dev list, explicit contexts, or revyl dev attach only when intentionally reusing an existing session. See the dev loop guide for framework-specific behavior.

Verify

Start a new agent chat and ask:

Run this app on a Revyl device.

The agent should share the viewer URL immediately, return device-backed evidence, and stop the device when finished.

For proving CI-uploaded PR builds with a Cursor Automation (no Revyl GitHub App), see Cursor proof (BYO-CI).

On this page