N
Neon3w ago
quickest-silver

Detect protected branch

Either with the MCP server or neon CLI, I need to detect if a branch is protected. I'm using cursor hooks to prevent certain actions from being taken on protected branches. Currently, I have to manually list the protected branches. I would like MCP or CLI support to dynamically detect protection status and block actions accordingly. https://cursor.com/docs/agent/hooks
Cursor Documentation
Hooks | Cursor Docs
Built-in hooks and how to use them effectively in Cursor.
2 Replies
sensitive-blue
sensitive-blue3w ago
Adding this to the list of feature requests, thanks for sharing🙏
quickest-silver
quickest-silverOP3w ago
Thanks, @Sam! It would also be great to see some out-of-the-box protections for things like this. Thanks!

Did you find this page helpful?