# Connecting Cline to a remote MCP sandbox: streamableHttp, OAuth sign-in and what autoApprove should list

> Add the remote Sandscale MCP server to Cline so its installs and test runs can go to a Firecracker microVM instead of your machine. The cline_mcp_settings.json entry, sign-in, which tools to auto-approve, a rule that points Cline at the sandbox, and what Cline's settings cannot enforce.

Add the remote Sandscale MCP server to Cline so its installs and test runs can go to a Firecracker microVM instead of your machine. The cline_mcp_settings.json entry, sign-in, which tools to auto-approve, a rule that points Cline at the sandbox, and what Cline's settings cannot enforce.

November 29, 2026 · 6 min read · The Sandscale team

**Short answer:** Cline runs terminal commands on the machine it is installed on. A [remote MCP sandbox server](https://sandscale.dev/sandboxes/mcp) gives it a second place to run them: its own Firecracker microVM, started and used through MCP tool calls. In Cline’s settings the server is a `streamableHttp` entry with the URL `https://mcp.sandscale.dev/mcp` and no credentials in the file. Sign-in is OAuth, so each call runs as you.

Sources, read in November 2026: Cline’s [MCP overview](https://docs.cline.bot/mcp/mcp-overview), [Auto Approve](https://docs.cline.bot/features/auto-approve), [Tools](https://docs.cline.bot/tools-reference/all-cline-tools) and [Rules](https://docs.cline.bot/customization/cline-rules) pages and its [v4.1.7 release notes](https://github.com/cline/cline/releases/tag/v4.1.7); Sandscale’s [Quickstart](https://sandscale.dev/docs/quickstart), [Connect Claude or ChatGPT](https://sandscale.dev/docs/guides/connect-claude-chatgpt) and [MCP tools](https://sandscale.dev/docs/reference/mcp) references.

## Why give Cline a second place to run things

Cline’s built-in tools include one that runs shell commands. Its Auto Approve page says Cline does not use a fixed allowlist: the model marks each command with a `requires_approval` flag, and examples of commands usually treated as safe include `npm test` while installing a package with `npm install` is usually flagged. Those are examples, not guarantees, per the page.

That is a reasonable design for your own project and a poor one for an unfamiliar repository, where an install script or a test suite is exactly the code you do not want running next to your SSH keys. A sandbox server is a way to run that code somewhere else, on purpose.

## The remote server entry

Cline’s MCP overview gives the shape of a remote entry. For Sandscale it is:

```json
{
  "mcpServers": {
    "sandscale": {
      "type": "streamableHttp",
      "url": "https://mcp.sandscale.dev/mcp",
      "disabled": false,
      "autoApprove": []
    }
  }
}
```

Two details from Cline’s docs matter here. First, `type` selects the transport, and leaving it out defaults to the legacy `sse` transport, so set `"type": "streamableHttp"` explicitly. Second, there is no `headers` block. Sandscale’s remote server uses OAuth, not a pasted key, and Cline’s security notes say to store secrets in environment variables rather than in config.

Where the file lives depends on how you run Cline. In the IDE extension, click the MCP Servers icon, open the Configure tab and choose Configure MCP Servers to edit the JSON, or use the Remote Servers tab: enter a name, the URL, and pick Streamable HTTP. The Cline CLI reads `~/.cline/data/settings/cline_mcp_settings.json`, which you can move with the `CLINE_MCP_SETTINGS_PATH` environment variable. From a script, Cline’s docs show `cline mcp add NAME URL --transport http --yes`, and a `cline mcp` wizard that lists, edits, enables and removes servers.

## Sign in

Per Sandscale’s connector guide, a client that supports remote MCP servers finds Sandscale’s sign-in at `auth.sandscale.dev`, registers itself and opens a Sandscale sign-in page. You sign in and approve the app; the approval page names the app and says it is not made by Sandscale. From then on each tool call runs as you, with a short-lived credential that stays on Sandscale’s server.

On Cline’s side, the documented pieces are these: the `cline mcp` wizard has an Authorize OAuth action that runs or reruns browser authorization for a remote server, and the v4.1.7 release notes mention pre-registered OAuth clients for remote MCP servers that do not offer dynamic client registration, and OAuth authorization for SSE servers on a 401. Cline’s docs do not describe the IDE extension’s sign-in screens, so we do not either. If the browser step does not start, remove the entry and add it again, or use the CLI wizard’s authorize action, and check the server’s output in Cline’s MCP panel.

## Decide what `autoApprove` lists

`autoApprove` is a per-server array in the entry, and Cline’s guidance is to limit it to safe tools. The array holds tool names, as a [Cline issue](https://github.com/cline/cline/issues/7616) shows with examples. The Sandscale reference marks which remote tools change things, so the split is easy to draw.

Reasonable to auto-approve, because they only read:

- `sandbox_list`, `workspace_list`
- `sandbox_download_file`
- `storage_list_buckets`, `storage_describe_bucket`
- `vault_list_secrets`, which returns names only; no Sandscale MCP tool returns a Vault value

Leave to a person, because they change something:

- `sandbox_create`, `sandbox_run` and `sandbox_upload_file`
- `sandbox_stop`, which the reference marks as not undoable: it deletes the sandbox’s disk
- `workspace_start` and `workspace_stop`

`sandbox_run` is the one to read each time. Its input is a command, and it runs wherever Cline says: in a sandbox you created for this task, or in one that already holds something you care about.

```json
"autoApprove": ["sandbox_list", "sandbox_download_file"]
```

## Point Cline at the sandbox with a rule

Cline’s Rules are Markdown files in `.clinerules/` (or `.cline/rules/`) in the workspace, and it also reads `AGENTS.md`. A short rule says where installs and tests go:

```md
# Untrusted code goes to the sandbox

Do not run `npm install`, `pip install` or the test suite in this repository
on the local machine. Create a sandbox with the Sandscale tools, upload the
files the task needs with `sandbox_upload_file`, run the command there with
`sandbox_run`, report the exit code and the failing lines, and stop the
sandbox when you are done.
```

A rule is an instruction to the model, not a control. Cline’s built-in command tool is still available, and with auto-approval for commands on, Cline can still run something locally. If you want a harder line, keep “Execute all commands” off in Auto Approve and read each command before approving it.

There is also a practical limit on files. The remote server moves files one at a time with `sandbox_upload_file` (text in `content`, bytes in `content_base64`). For a whole repository, the agent can clone it inside the sandbox if your network policy lets the sandbox reach your git host; otherwise upload only what the task needs.

## What Sandscale enforces whatever Cline is set to

Cline’s approvals are one gate. Sandscale’s hold regardless of the client:

- Every tool call goes through the same API, permissions, plan limits and audit log as the console and the SDK. A refusal comes back to Cline with the API’s own error code.
- The audit log records the tool, the region, the outcome and the app for each call, never the arguments.
- Each app can make up to 120 calls a minute and each person up to 60.
- The connector answers for the United States and refuses another region with `region_unavailable`.
- New sandboxes get the network your plan and your organization’s policy allow.

To disconnect, remove the server in Cline, or revoke the connector with `DELETE /api/v1/me/mcp-connectors/{id}`; revoking ends the app’s sessions at once.

## A first task

“Create a sandbox, upload `package.json` and `package-lock.json`, run `npm ci` there, then run `npm test` and tell me which tests failed. Stop the sandbox when you are done.” It exercises create, upload, run and stop and keeps the install off your machine. (`npm ci` needs a network policy that lets the sandbox reach your package registry.) The stop call gives you a natural moment to look at an approval prompt.

## FAQ

### How do I add a remote MCP server to Cline?

Add an entry under `mcpServers` with `"type": "streamableHttp"` and the server’s `url`, or use the Remote Servers tab and pick Streamable HTTP. Without `type`, Cline defaults to the legacy SSE transport.

### Does Cline need an API key for the Sandscale server?

No key goes in the file. The remote server signs in with OAuth and acts as you. For scripts that call the API directly, use a personal API key with the SDK or REST API instead.

### Can Cline’s auto-approve run sandbox commands without asking?

Only for tools you list in `autoApprove`. Keep `sandbox_run` off that list unless you accept that a model-written command will run without a prompt, inside the sandbox it chose.

### Does a rule force Cline to use the sandbox?

No. Rules are instructions the model follows. Cline’s own terminal tool stays available, so keep command auto-approval off if local execution must be reviewed.

## Related

- [Connecting Cursor to the Sandscale MCP server](https://sandscale.dev/blog/sandscale-mcp-server-in-cursor)
- [Adding the Sandscale MCP server to Codex](https://sandscale.dev/blog/sandscale-mcp-server-in-codex)
- [Setting up the Sandscale MCP server in Claude Code](https://sandscale.dev/blog/sandscale-mcp-server-in-claude-code)
- [Remote or local: choosing between Sandscale’s two MCP servers](https://sandscale.dev/blog/remote-vs-local-sandscale-mcp-server)

**On this page**

1. Why give Cline a second place to run things
2. The remote server entry
3. Sign in
4. Decide what autoApprove lists
5. Point Cline at the sandbox with a rule
6. What Sandscale enforces whatever Cline is set to
7. A first task
8. FAQ
9. Related

**Run your agents in a box of their own**

Each sandbox is a Firecracker microVM. Free includes 100 awake vCPU-hours a month.

[Start free](https://cloud.sandscale.dev/auth/signup)

## Keep reading

- [November 29, 2026 · **Browser-free test runs for coding agents: a fast tier to run on every edit, and a browser tier to leave for CI** · How to split a project's tests so a coding agent's loop never needs a real browser: node and DOM-emulated tests first, browser end-to-end tests last. Vitest projects, jsdom and happy-dom limits, pytest markers, Node's test runner, Playwright tags and go test -short, plus how to make a filtered run fail loudly instead of passing by running nothing.](https://sandscale.dev/blog/browser-free-test-runs-for-coding-agents)
- [November 29, 2026 · **Running Aider in scripted mode on a cloud workspace: --message-file, --test-cmd and what to check afterwards** · Run Aider non-interactively inside a Sandscale workspace, a persistent Firecracker microVM: install, API keys, --message-file with --yes-always, --test-cmd with --auto-test, how Aider commits, and reviewing the result from your own terminal.](https://sandscale.dev/blog/aider-scripted-runs-in-a-cloud-workspace)

---
Source: https://sandscale.dev/blog/cline-with-a-remote-mcp-sandbox
