Skip to main content

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 detectionterraform plan shows 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:

ResourceDescription
mintmcp_global_rulesOrganization-wide rules that monitor LLM traffic for secrets and prompt injection patterns. Configure automated actions like Slack alerts and content blocking.

How it works

  1. Authenticate with terraform login app.mintmcp.com
  2. Declare your desired configuration in .tf files
  3. Plan with terraform plan to preview changes
  4. Apply with terraform apply to push changes to MintMCP

Changes are applied atomically with optimistic concurrency control (etags), so concurrent modifications are detected and rejected safely.

Next steps