Skip to main content
Arga’s MCP server lets supported coding agents provision twins, inspect twin environments, start browser tests, and run Saved Tests.

Prerequisites

Install

The installer adds an arga-context server entry to supported local clients:
  • ~/.cursor/mcp.json
  • ~/.claude/mcp.json
  • ~/.config/codex/mcp.json
It preserves existing mcpServers entries and uses the device credential stored by arga login. The installed server points to <api-url>/mcp with a bearer authorization header:

Custom API URL

You can also set ARGA_API_URL before running the installer.

Twin tools

Lists available twin names, labels, surface kinds, and twin-hosted MCP paths where available.
Provisions and optionally seeds one or more twins.The result contains the Twin Run ID. Poll get_twin_run until the status is ready or failed.
Returns status, per-twin URLs, environment variables, access details, and seed results for a Twin Run.
Restores a ready short-lived Twin Run to the baseline captured at provisioning time.
Extends a Twin Run within the TTL allowed by your plan.
Ends a short-lived Twin Run immediately.

Choose a generation mode

For a prompt with complex requirements, an agent can call create_twin_run with:
The tool schema advertises both supported values and the Fast default. Poll get_twin_run until the run is ready or failed. A saved scenario_id reuses existing seed data; changing the mode does not regenerate it. To save a reusable scenario, use the REST API or the CLI.

Persistent Scenario environment tools

Creates or returns the persistent twin environment attached to a saved Scenario. Pass scenario_id, optional comma-separated twins, and optional public access.
Returns the status and stable twin URLs for one Scenario.
Restores a ready persistent environment from its saved Scenario.
Tears down the persistent environment attached to one Scenario.
Lists persistent Scenario environments owned by the authenticated account.

Browser test tools

Starts an ad hoc browser Test Run.Point the application at any required twin endpoints before starting the Test Run.
Runs a Saved Test by test_id. Pass start_url to override the URL stored with the test and prompt to add run-specific guidance.
Returns status, events, artifacts, editable TestConfig, and summary fields for a Test Run.
Lists Saved Tests. Pass repo_full_name to filter them to one repository.

Compatibility tools

Older servers may also expose start_url_validation, get_validation_results, cancel_validation_run, provision_twins, get_twin_provision_status, and cancel_run. Prefer the Twin Run and Test Run tools above for new agent workflows. Your MCP client’s tools/list response is the authoritative list for the server version you are connected to.