MCP setup
After wiring Curxor's MCP server into your editor: select an element on the page → write what you want → click Copy Code to get a CX-XXXXXX → paste it to the AI, which reads the element context and makes the change.
One-click setup
Run the command below to auto-configure Claude Code / Cursor / Trae / Codex:
bash
curxor mcp setup
mcp setup auto-configures Claude Code / Cursor / Trae / Codex (skipping any that aren't installed). If it doesn't take effect, see Troubleshooting below.
Check the configuration state:
bash
curxor mcp status
You'll need to restart Cursor / Trae or open a new Claude Code / Codex session for it to take effect.
Workflow
- Select the target element on your dev page and type how you want to change it
- Set the send target to
Copy Code— the clipboard gets aCX-XXXXXX - Paste it into Cursor / Claude Code / Trae / Codex and send
- The AI reads that element's context (source location + screenshot) and makes the change
Troubleshooting
- The AI doesn't recognize the CX code: MCP isn't active. Run
curxor mcp statusto confirm it's configured, then restart the editor / open a new session. - Code invalid or expired: the pasted code is misspelled, missing, or expired — copy a fresh one in the browser.
- CLI not running: run
curxor statusto confirm the CLI is online (first time needscurxor init).
Auto-configuration not working (e.g. the editor can't read the terminal PATH)? Write the config into the project-root .mcp.json manually — set command to the real path from which curxor:
json
{
"mcpServers": {
"curxor": {
"command": "/Users/you/.local/bin/curxor",
"args": ["mcp"]
}
}
}