Agents
Cursor
The XOROX integration for Cursor: setup with xorox init, MCP activation, and what to expect.
Cursor is a supported coding agent for XOROX, alongside Claude Code. This page covers the details specific to it.
Setup
See Quickstart for the full flow. In short: install XOROX, create a project credential, run xorox init in the project Cursor has open, then reopen the project and enable the XOROX MCP server.
What xorox init configures
When it detects Cursor (or you pass --agent cursor), xorox init writes two files Cursor reads when a project loads:
{
"version": 1,
"hooks": {
"beforeSubmitPrompt": [
{ "command": "'/path/to/xorox' hook cursor-before-submit" }
]
}
}{
"mcpServers": {
"xorox": {
"command": "/path/to/xorox",
"args": ["mcp"]
}
}
}Both are merged into any existing content in those files — other hooks or MCP servers you have configured are left alone. They point at your installed xorox command and contain no credentials, and they stay local to your machine (see Installation).
Cursor reads these files when a project loads, not continuously. If Cursor was already open when you ran xorox init, reopen the project.
Automatic Ruleset context
A beforeSubmitPrompt hook runs on every prompt you submit in that project. It fetches your project's active Rulesets and the Specifications index from XOROX and supplies them to the agent automatically — see Rulesets.
The Rulesets are fetched from XOROX on every prompt, so an edited Ruleset is used from the next prompt onward. They arrive as a snapshot labeled with its revision and marked as superseding any earlier XOROX Ruleset snapshots in the same chat. Earlier snapshots remain in the chat's history, though; the agent is told to follow the newest.
When your Rulesets are too large to supply inline, the agent is instead told to fetch them with the xorox_get_rulesets MCP tool, so the XOROX MCP server needs to be enabled (below). You don't need to do anything else.
This fails open: if XOROX is unreachable or misconfigured, your prompt still goes through normally — it just won't carry XOROX context that time.
Enabling the MCP server
Cursor detects a project's declared MCP server from .cursor/mcp.json automatically, but it does not enable it for you. This is a one-time, per-project step:
- Open Cursor Settings → Tools & MCP.
- Find xorox in the list and enable it.
- Start a new Agent chat. A chat already open may still be using its old tool list.
If the agent can't load your Rulesets, check first that the xorox server is enabled here.
Tool approval
The first time the agent actually calls a XOROX tool, Cursor shows its own permission prompt: Run or Always run. Run approves that one call; Always run stops it asking again for that tool in this project.
Specifications and Tasks
Unlike Rulesets, Specifications and Tasks aren't pushed automatically — the agent retrieves them by calling a XOROX MCP tool when it decides it needs to. Tasks can come from XOROX itself, GitHub, or Notion. See MCP tools for the exact tool names and arguments.
Supported platforms
xorox supports macOS and Linux (arm64 and x86_64) and 64-bit Windows (x64). See Installation.