Configuration as Code
Manage your organization's MintMCP security policies as version-controlled
Terraform configurations. Instead of clicking through the UI, you declare your
desired state in .tf files and apply changes with terraform plan and
terraform apply.
info
Configuration as Code is available for enterprise organizations. Reach out to enterprise@mintmcp.com to have it enabled for your org.
Benefits
- Version control — Every policy change is a commit in your repo, giving you a full audit trail of who changed what and when.
- Review workflows — Policy changes go through pull requests, so your team can review and approve before anything is applied.
- Reproducibility — Spin up identical policy configurations across environments or organizations from the same Terraform files.
- Drift detection —
terraform planshows you exactly what has drifted from your declared state, so manual UI changes never go unnoticed.
Available resources
The MintMCP Terraform provider supports managing Global Rules for your organization:
| Resource | Description |
|---|---|
mintmcp_global_rules | Organization-wide rules that monitor LLM traffic for secrets and prompt injection patterns. Configure automated actions like Slack alerts and content blocking. |
How it works
- Authenticate with
terraform login app.mintmcp.com - Declare your desired configuration in
.tffiles - Plan with
terraform planto preview changes - Apply with
terraform applyto push changes to MintMCP
Changes are applied atomically with optimistic concurrency control (etags), so concurrent modifications are detected and rejected safely.
Next steps
- Getting started — Install the provider and apply your first configuration.
- Global Rules reference — Full reference for the
mintmcp_global_rulesresource.