Allowlists, hooks and the CLI
- Allowlists: keep
terminalAllowlistin~/.cursor/permissions.jsonto read-only commands and add no*:*MCP entries (Cursor docs). - Auto-review guidance:
block_instructionssteer the classifier toward asking you about credentials, deletes and pushes, but they are “steering, not enforcement”. - Hooks: they fail open by default, so set
"failClosed": trueon every hook you rely on for security (Cursor docs). - The Cursor CLI: use
allowlistapproval with the sandbox on, denyRead(**/.env*), and never aliasagentwith--yoloor--force(Cursor docs).
The permissions.json and CLI settings are in the audit’s fix section.