Rego dependency analysis
rego_depsCompute transitive dependencies of a Rego rule reference, identifying all base and virtual documents it relies on.
Instructions
Static dependency analysis for a Rego reference. Given a target ref like "data.example.allow", returns the base document references (input/data leaves) and virtual document references (rules) it depends on, transitively.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| paths | Yes | Policy / data paths to load before computing dependencies. Each must be inside an allowed root (OPA_MCP_ALLOWED_PATHS). | |
| ref | Yes | Reference to compute dependencies for, e.g. "data.example.allow". |