# Connect an AI assistant over MCP

> Connect Claude Code, Cursor, VS Code or any MCP client to an Arc-Tech workspace, with the server address, tokens and copy-paste setup.

Source: https://arc-tech.dev/docs/connect

Every workspace has an MCP server at:

```text
https://mcp.arc-tech.dev/w/<workspace slug>
```

The slug is the workspace's name in its web address: `app.arc-tech.dev/<workspace slug>`.

## Create a token

An owner or admin does this once for each client:

1. Open the workspace's settings, then **MCP server**.
2. Switch on **Enable MCP server**.
3. Choose **Create token** and pick **Read only** or **Read & write**.
4. Copy the token now. It starts with `arc_` and is shown only once.

A token acts as the person who made it, with their role, and never more than the token allows. If they leave the workspace, the token stops working. Revoke a token at any time to cut off that client.

> Keep the token secret. Don't commit it to a repository or paste it into a design or page.

## Claude Code

```bash
claude mcp add --transport http arc-tech https://mcp.arc-tech.dev/w/<workspace slug> \
  --header "Authorization: Bearer <YOUR_TOKEN>"
```

## Cursor

Add to `~/.cursor/mcp.json`:

```json
{
  "mcpServers": {
    "arc-tech": {
      "url": "https://mcp.arc-tech.dev/w/<workspace slug>",
      "headers": { "Authorization": "Bearer <YOUR_TOKEN>" }
    }
  }
}
```

## VS Code

Add to `.vscode/mcp.json`:

```json
{
  "servers": {
    "arc-tech": {
      "type": "http",
      "url": "https://mcp.arc-tech.dev/w/<workspace slug>",
      "headers": { "Authorization": "Bearer <YOUR_TOKEN>" }
    }
  }
}
```

## Any other client

Use the **streamable HTTP** transport, with the address above and an `Authorization: Bearer` header. The server keeps no session between calls and answers with JSON.

Besides tools, it offers **resources** (`arc://designs/<id>` for architecture designs, and `arc://docs/<id>` for pages) and **prompts**:

- `review_architecture`: Review an architecture design for gaps, risks and inconsistencies between environments.
- `document_design`: Write a documentation page describing an architecture design.

## Check it works

Ask your assistant: *List my Arc-Tech projects.* If it can't connect, see [errors and limits](https://arc-tech.dev/md/errors.md).
