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

# Cline

> Add the 2extract MCP server to Cline in VS Code so it can provision proxies as part of a task.

Cline is a VS Code extension with its own MCP configuration, separate from the editor's built-in Copilot support.

***

## Add the server

Open the Cline panel, click the **MCP Servers** icon, then **Configure MCP Servers**. That opens `cline_mcp_settings.json`.

```json cline_mcp_settings.json icon="brackets-curly" theme={null}
{
  "mcpServers": {
    "2extract": {
      "type": "streamableHttp",
      "url": "https://mcp.2extract.com/mcp",
      "headers": {
        "Authorization": "Bearer 2xt_YOUR_API_KEY"
      },
      "disabled": false
    }
  }
}
```

<Note>
  Cline names the remote transport `streamableHttp`. If your version does not recognise it, look at an existing entry in the same file for the shape it expects, then supply the same three values: `https://mcp.2extract.com/mcp`, Streamable HTTP, and `Authorization: Bearer 2xt_...`.
</Note>

Cline writes this file itself, so it may reformat your edits - that is normal.

***

## Verify

The server appears in the **MCP Servers** panel with a green indicator and its tool list. Then start a task:

> What is my 2extract balance?

<Check>
  Cline requests approval for the tool call, then reports the number.
</Check>

***

## Auto-approve

Cline can auto-approve individual tools so it stops asking every time. Safe candidates are the read-only ones:

* `getAccountBalance`
* `getAccountTrafficUsage`
* `listProxyResources`
* `listGeoCountries` and the other `searchGeo*` tools

<Warning>
  Do not auto-approve `createProxyResource` - it is billable. Do not auto-approve `deleteProxyResource` or `regenerateProxyPassword` - they are destructive and the confirmation is the only thing standing between an agent and a deleted proxy.
</Warning>

***

## Troubleshooting

<AccordionGroup>
  <Accordion title="Server shows red in the MCP panel">
    Open the entry to see the error. A missing `/mcp` path or a malformed header are the usual causes.
  </Accordion>

  <Accordion title="Config edits keep disappearing">
    Cline owns this file and rewrites it. Make changes through the panel where possible, and close the JSON editor before switching back to the panel.
  </Accordion>

  <Accordion title="Unauthorized on every call">
    The key is wrong, expired, or the header is missing the word `Bearer`.
  </Accordion>
</AccordionGroup>

***

## Next steps

<CardGroup cols={2}>
  <Card title="Tools" icon="wrench" href="/ai/mcp-server/tools">
    Which tools are safe to auto-approve.
  </Card>

  <Card title="Usage Examples" icon="terminal" href="/ai/mcp-server/usage-examples">
    Sessions from request to connection string.
  </Card>
</CardGroup>
