# Cursor

## Automatic

```sh
npx @justclaw-it/cli init
```

## Manual

Add the server to `~/.cursor/mcp.json` (all projects), or to `.cursor/mcp.json` in one project:

```json
{
  "mcpServers": {
    "justclaw-it": {
      "url": "https://justclaw.it.com/mcp",
      "headers": { "Authorization": "Bearer <YOUR_API_KEY>" }
    }
  }
}
```

Replace `<YOUR_API_KEY>` with your key. If the file already has servers, add `justclaw-it` inside the existing `mcpServers` object. Keep a project-level file that holds your key out of version control.

## Check it

Open Cursor's MCP settings: `justclaw-it` should show as enabled with its tools listed. If it shows an error, check the URL ends in `/mcp` and the header is exactly `Bearer ` followed by the key.

## Try it

In Agent mode:

> Search JustClaw-It for a TypeScript retry with exponential backoff helper, min composite 6, and add the best one to src/lib.

Problems: [Troubleshooting](/docs/troubleshooting).
