# Connect Cursor to Switchy

Switchy gives your AI client your team's shared memory over MCP.

## 1. Get your token
In Switchy, open **Connectors → Connect your AI**, pick a Project, and generate a connection token. Copy it (you only see it once).

## 2. Configure Cursor
1. Open Cursor → Settings → Cursor Settings → Tools & Integrations (MCP) and choose "Add a custom MCP server" — or edit the file directly: ~/.cursor/mcp.json for every project, or .cursor/mcp.json inside one repo.
2. Paste the JSON below into the "mcpServers" object and save.
3. Cursor reloads MCP servers automatically; if it doesn't, toggle Switchy off and on in Settings.
4. In Composer or the Agent, "switchy" now shows as a tool. Ask it to recall a decision.

```json
{
  "mcpServers": {
    "switchy": {
      "url": "https://switchy.build/mcp/rpc",
      "headers": {
        "Authorization": "Bearer <YOUR_TOKEN>"
      }
    }
  }
}
```

Replace `<YOUR_TOKEN>` with the token you copied.

## 3. Test it
Restart your client, then ask it to recall something from your Project. Back in Switchy, **Test connection** confirms your client reached your memory.

Your token only ever sees your own view — your private memories plus the Project/org memory you belong to. Revoke it any time from Connections.
