
severity1/terraform-cloud-mcp
Developer tools이 페이지는 AI로 자동 번역되었습니다. 기술적인 세부 사항은 원문을 확인하세요. 원문 보기
A Model Context Protocol (MCP) 서버는 Terraform Cloud API와 AI Assistant를 통합하여 자연 대화를 통해 인프라를 관리할 수 있습니다
개요
A Model Context Protocol (MCP) 서버는 Terraform Cloud API와 AI Assistants를 통합하여 자연 대화를 통해 인프라를 관리할 수 있습니다. Pydantic 모델과 도메인 별 모듈 주위에 구조 된이 서버는 Claude, Claude Code CLI, Claude Desktop, Cursor, Copilot Studio 등 모든 MCP 지원 플랫폼과 호환됩니다. - : 인증된 사용자 또는 서비스 계정의 계정 정보를 가져옵니다. - : Create, read, update, lock/unlock workspaces, 그리고 선택적으로 workspaces를 삭제합니다. - : 생성, 목록, 업데이트 프로젝트 및 선택적으로 프로젝트 삭제; 프로젝트 태그 바인딩을 관리하고 프로젝트 간의 작업 공간을 이동합니다. - : 실행, 목록 실행, 실행 세부 사항, apply/discard/cancel 실행. - : 고급 HTTP 리디렉션 처리로 계획 세부 사항 및 JSON 실행 출력을 검색합니다. - : 세부 사항을 적용하고 실패한 상태로 회복하십시오.
개요(AI 번역)
A Model Context Protocol (MCP) 서버는 Terraform Cloud API와 AI Assistants를 통합하여 자연 대화를 통해 인프라를 관리할 수 있습니다. Pydantic 모델과 도메인 별 모듈 주위에 구조 된이 서버는 Claude, Claude Code CLI, Claude Desktop, Cursor, Copilot Studio 등 모든 MCP 지원 플랫폼과 호환됩니다.
특징
- Account Management: 인증된 사용자 또는 서비스 계정의 계정 정보를 가져옵니다.
- Workspace 관리: Create, read, update, lock/unlock workspaces, 그리고 선택적으로 workspaces를 삭제합니다.
- 관리: 생성, 목록, 업데이트 프로젝트 및 선택적으로 프로젝트 삭제; 프로젝트 태그 바인딩을 관리하고 프로젝트 간의 작업 공간을 이동합니다.
- Run 관리: 실행, 목록 실행, 실행 세부 사항, apply/discard/cancel 실행.
- ** 플랜 관리**: 고급 HTTP 리디렉션 처리와 계획 세부 사항 및 JSON 실행 출력을 검색합니다.
- Apply Management: 세부사항을 적용하고 실패한 상태로 회복하십시오.
이 페이지는 AI로 자동 번역되었습니다. 기술적인 세부 사항은 원문을 확인하세요.
README
원문 README의 일부입니다. 원문 보기.
Terraform Cloud MCP Server
A Model Context Protocol (MCP) server that integrates AI assistants with the Terraform Cloud API, allowing you to manage your infrastructure through natural conversation. Built with Pydantic models and structured around domain-specific modules, this server is compatible with any MCP-supporting platform including Claude, Claude Code CLI, Claude Desktop, Cursor, Copilot Studio, and others.
Features
- Account Management: Get account details for authenticated users or service accounts.
- Workspace Management: Create, read, update, lock/unlock workspaces, and optionally delete workspaces (with safety controls).
- Project Management: Create, list, update projects, and optionally delete projects; manage project tag bindings and move workspaces between projects.
- Run Management: Create runs, list runs, get run details, apply/discard/cancel runs.
- Plan Management: Retrieve plan details and JSON execution output with advanced HTTP redirect handling.
- Apply Management: Get apply details and recover from failed state uploads.
- Organization Management: List, create, update organizations, view organization entitlements, and optionally delete organizations (with safety controls).
- Cost Estimation: Retrieve detailed cost estimates for infrastructure changes including proposed monthly costs, prior costs, resource counts, and usage projections.
- Assessment Results: Retrieve health assessment details, JSON output, schema files, and logs from Terraform Cloud health assessments.
- State Version Management: List, retrieve, create, and download state versions; get current state for workspaces.
- State Version Outputs: List and retrieve specific outputs from state versions including values and sensitivity information.
- Variables Management: Complete workspace variable and variable set management including creation, updates, assignments, and optionally deletion (with safety controls).
Performance Features
- Audit-Safe Response Filtering: Conservative token optimization (5-15% reduction) with 100% audit compliance - preserves all user accountability, security configuration, and change tracking data for comprehensive compliance scenarios.
Safety Features
- Destructive Operation Controls: Delete operations are disabled by default and require explicit enablement via environment variable
- Read-Only Mode: All write operations can be disabled with
READ_ONLY_TOOLS=truefor maximum safety in production environments
설치
docker run -i --rm -e TFC_TOKEN -e TFC_ADDRESS -e ENABLE_DELETE_TOOLS -e READ_ONLY_TOOLS terraform-cloud-mcp:latest설정
{
"mcpServers": {
"terraform-cloud-mcp": {
"command": "/path/to/uv", # Get this by running: `which uv`
"args": [
"--directory",
"/path/to/your/terraform-cloud-mcp", # Full path to this project
"run",
"terraform-cloud-mcp"
],
"env": {
"TFC_TOKEN": "your_actual_token_here", # replace with actual token
"TFC_ADDRESS": "https://app.terraform.io", # optional, change for self-hosted TFE
"ENABLE_DELETE_TOOLS": "false", # set to "true" to enable destructive operations/tools
"READ_ONLY_TOOLS": "false" # set to "true" to only enable ready-only operations/tools
}
}
}
}