Remote state and collaboration for Terraform.
## Scalr MCP Server: Terraform Collaboration Platform The **Scalr MCP Server** integrates the Terraform collaboration platform into Google Antigravity, enabling developers to manage workspaces, runs, and policies for enterprise Terraform at scale. ### Why Scalr MCP? - **Terraform enterprise** - Scale Terraform in organizations - **Workspace management** - Organize infrastructure as workspaces - **Policy enforcement** - OPA policies for compliance - **Cost estimation** - Pre-run cost estimates - **VCS integration** - Git-driven workflows ### Key Features #### 1. Workspace Management ```python # Create workspace workspace = await mcp.call("scalr", "create_workspace", { "name": "production-vpc", "environment": "prod", "vcs_repo": { "identifier": "org/terraform-vpc", "branch": "main" }, "working_directory": "environments/prod" }) # List workspaces workspaces = await mcp.call("scalr", "list_workspaces", { "environment": "prod" }) ``` #### 2. Run Management ```python # Queue run run = await mcp.call("scalr", "create_run", { "workspace_id": workspace["id"], "message": "Deploy VPC changes" }) # Get run status status = await mcp.call("scalr", "get_run", { "run_id": run["id"] }) print(f"Status: {status[\"status\"]}") # Apply run await mcp.call("scalr", "apply_run", { "run_id": run["id"] }) ``` #### 3. Variable Management ```python # Set variables await mcp.call("scalr", "create_variable", { "workspace_id": workspace["id"], "key": "aws_region", "value": "us-east-1", "category": "terraform" }) # Set sensitive variable await mcp.call("scalr", "create_variable", { "workspace_id": workspace["id"], "key": "db_password", "value": "secret", "sensitive": True }) ``` #### 4. Policy Checks ```python # List policy groups policies = await mcp.call("scalr", "list_policy_groups", { "environment": "prod" }) # Get policy check results results = await mcp.call("scalr", "get_policy_results", { "run_id": run["id"] }) ``` ### Configuration ```json { "mcpServers": { "scalr": { "command": "npx", "args": ["-y", "@anthropic/mcp-scalr"], "env": { "SCALR_HOSTNAME": "your-org.scalr.io", "SCALR_TOKEN": "your-api-token" } } } } ``` ### Use Cases **Enterprise Terraform**: Scale Terraform across teams. **Cost Control**: Estimate costs before apply. **Compliance**: Enforce policies on infrastructure. **GitOps**: VCS-driven infrastructure changes. The Scalr MCP Server enables enterprise Terraform management.
{
"mcpServers": {
"scalr": {}
}
}