# Cursor & Cline

First written 2 June 2026, revised 6 October 2026.

Both editors connect to a remote MCP server by URL. Add ~alter to the editor's MCP config and its identity tools appear in the agent. Anonymous tools work with no account; connect via OAuth to reach the authenticated tools. Already ran alter login? npx -y @truealter/cli wire detects Cursor and writes this for you, with your own capability token filled in.

## Connection

| Endpoint | `https://mcp.truealter.com/api/v1/mcp` |
| Transport | Streamable HTTP (JSON-RPC 2.0 over POST) |
| Auth header | Authorization: Bearer <capability_token> (omit for anonymous tools; the token is issued when you sign in, see Authentication) |
| Config | Cursor: .cursor/mcp.json · Cline: cline_mcp_settings.json |

## Setup

### 1Cursor

Add ~alter to .cursor/mcp.json in the project, or ~/.cursor/mcp.json globally. Cursor infers Streamable HTTP from the url, so no transport field is needed. The capability token is issued when you approve the OAuth sign-in; `alter login` signs you in and keeps one for you.

```
{
  "mcpServers": {
    "alter": {
      "url": "https://mcp.truealter.com/api/v1/mcp",
      "headers": { "Authorization": "Bearer <capability_token>" }
    }
  }
}

```
### 2Cline

Add the same server to cline_mcp_settings.json. Cline accepts a remote server by url with headers.

```
{
  "mcpServers": {
    "alter": {
      "url": "https://mcp.truealter.com/api/v1/mcp",
      "headers": { "Authorization": "Bearer <capability_token>" },
      "disabled": false,
      "autoApprove": []
    }
  }
}

```
## Verify

Open the MCP panel in either editor. ~alter should show as connected with its tool list.

## Notes

- -Neither client needs a transport or type field; both infer Streamable HTTP from the url. Drop the headers block for anonymous access.

- -Keep the server name tilde-free. The name here is alter (no wave); the client turns it into the tool prefix, and a tilde is not a legal character there, so the tools would show but never run. Use letters, numbers, hyphens or underscores only.

- -No account tier is required. MCP works on every Cursor plan, including the free plan, and Cursor adds the server from local config.

- -Cursor supports ${env:VAR} interpolation in the header value if you would rather not hard-code the capability token.

- -If Cline shows the server using the older SSE transport after adding, re-check that it negotiated Streamable HTTP.

[MCP server reference](https://truealter.com/docs/mcp)[Tools reference](https://truealter.com/docs/mcp/tools)[Connect via OAuth](https://truealter.com/docs/authentication)[Cursor MCP docs ↗](https://cursor.com/docs/context/mcp)

https://truealter.com/docs/clients/cursor
