NeonN
Neon4mo ago
2 replies
endless-jade

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
Built-in hooks and how to use them effectively in Cursor.
Hooks | Cursor Docs
Was this page helpful?