Cursor
Add human-in-the-loop capabilities to Cursor AI for safer code changes.
Prerequisites
- Cursor IDE installed
- A RelayRail account with an API key
- Node.js 18+ installed
Configuration
Create or edit your Cursor MCP configuration:
~/.cursor/mcp.json
mcp.json
{
"relayrail": {
"command": "npx",
"args": ["@relayrail/server", "start"],
"env": {
"RELAYRAIL_API_KEY": "rr_your_api_key_here"
}
}
}Use Cases
Code Review Approvals
Ask Cursor to request your approval before applying changes to critical files.
Deployment Notifications
Get notified via SMS when Cursor completes a task or encounters an error.
Long-Running Tasks
Start a refactoring task and get notified when it's done, even if you step away.
Example Workflow
In Cursor's chat, you can say:
"Refactor the auth module to use the new API. Ask me for approval before making each change, and send me a notification when you're done."
Cursor will:
- Analyze the changes needed
- Send you an approval request via SMS for each change
- Wait for your response before proceeding
- Notify you when the refactoring is complete
Tips
- -Use high-priority notifications for errors
- -Set up approval workflows for production deployments
- -Use commands to trigger Cursor actions remotely