Skip to main content
Glama
authz.rego607 B
package policies import data.utils # Default deny default allow := false # Admin access rule allow if { input.user.role == "admin" utils.is_valid_user(input.user) } # Read access for authenticated users allow_read if { input.action == "read" input.user.authenticated } # User roles list admin_roles := ["admin", "superuser"] # Helper function to check if user is admin is_admin(user) if { admin_roles[_] == user.role } # Check if action is allowed for user check_permission(user, action) if { user.role == "admin" allowed_actions := ["read", "write", "delete"] allowed_actions[_] == action }

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/ryota-murakami/serena'

If you have feedback or need assistance with the MCP directory API, please join our Discord server