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

# Cursor

> A rule and the MCP server, per repository

**1. Connect a repository**

Cursor keeps user rules only in its settings screen, not in a file, so XenoCI Box connects it per repository. From the repository root

```bash theme={"system"}
box setup --project
```

```text theme={"system"}
$ box setup --project
box: wrote ./CLAUDE.md
box: wrote ./AGENTS.md
box: wrote ./.claude/skills/box/SKILL.md
box: wrote ./.agents/skills/box/SKILL.md
box: wrote ./.cursor/rules/box.mdc
box: next: claude mcp add box -- box mcp   /   codex mcp add box -- box mcp
```

`.cursor/rules/box.mdc` tells Cursor when to use box. Commit those files and everyone on the team, and every agent, finds box in that repository

**2. The MCP server**

Add box to `.cursor/mcp.json` in the repository (or `~/.cursor/mcp.json` for every project)

```bash theme={"system"}
{
  "mcpServers": {
    "box": { "command": "box", "args": ["mcp"] }
  }
}
```

Without box installed, `npx -y @xenoci/box mcp` downloads the latest CLI and checks it against the server’s checksums first

**3. Then ask**

```text theme={"system"}
$ box screenshot screen.png
box: queue: job bj_M0e9kfQmt9bDowhN (screenshot, ios, $0.05/min) submitted
…
[box] 19:21:40 screenshot box-out/screen.png
box: status: succeeded
box: results: saved to ./.box/out/bj_M0e9kfQmt9bDowhN/ (build.log, screen.png)
box: bj_M0e9kfQmt9bDowhN succeeded, 120s billed, $0.10
```

![The picture box returned: Hello from box with a counter](https://mintcdn.com/xenoci/ZFKGlbE4Q2bw14Om/images/docs-agents-screen.png?fit=max\&auto=format\&n=ZFKGlbE4Q2bw14Om\&q=85\&s=57a2bab0b30da73118373c050fedae7c)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.