Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GraphQLModel ¶
GraphQLModel represents an exposed model with its operations.
type RBACState ¶
type RBACState struct {
Roles []RBACRole
GraphQLModels []GraphQLModel
}
RBACState holds the derived RBAC state for MCP tools. Since the MCP server may not have DB access, this works off replayed policy definitions rather than live database queries.
func DeriveRBACState ¶
DeriveRBACState returns the current RBAC state by scanning policy files and GraphQL policy files in the project directory. Parses Go source to extract CreateRole/AlterRole/DropRole calls and Expose/Unexpose calls.
Click to show internal directories.
Click to hide internal directories.