
severity1/terraform-cloud-mcp
Developer toolsこのページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。 原文を見る
テラフォームクラウドAPIでAIアシスタントを統合したモデルコンテキストプロトコル(MCP)サーバーで、自然な会話でインフラストラクチャを管理することができます
概要
テラフォームクラウドAPIでAIアシスタントを統合したモデルコンテキストプロトコル(MCP)サーバーで、自然な会話でインフラストラクチャを管理できます。 ドメイン固有のモジュールの周りに構築されたPydanticモデルと構築されたこのサーバーは、Claude、Claude Code CLI、Claude Desktop、Cursor、Copilot StudioなどのMCPサポートプラットフォームと互換性があります。 - : 認証されたユーザーまたはサービスアカウントのアカウントの詳細を取得します。 - : ワークスペースの作成、読み込み、更新、ロック/アンロック、オプションでワークスペースの削除(安全制御付き)。 - : プロジェクトの作成、リスト作成、更新、オプションでプロジェクトの削除、プロジェクトタグのバインディングの管理、プロジェクト間のワークスペースの移動 - : 実行を作成します。, リストラン, 実行詳細を取得, 申請/カード/キャンセルを実行します。. - : 高度なHTTPリダイレクト処理で計画詳細とJSON実行出力を取得します。 - : 詳細を適用し、失敗した状態のアップロードから回復を取得します.
概要(AI 翻訳)
テラフォームクラウドAPIでAIアシスタントを統合したモデルコンテキストプロトコル(MCP)サーバーで、自然な会話でインフラストラクチャを管理できます。 ドメイン固有のモジュールの周りに構築されたPydanticモデルと構築されたこのサーバーは、Claude、Claude Code CLI、Claude Desktop、Cursor、Copilot StudioなどのMCPサポートプラットフォームと互換性があります。
お問い合わせ
##特徴
-アカウント管理:認証されたユーザーまたはサービスアカウントのアカウントの詳細を取得します。
- ワークスペース管理: ワークスペースの作成、読み込み、更新、ロック/アンロック、オプションでワークスペースの削除(安全制御付き)。
- プロジェクト管理: プロジェクトを作成、リスト、プロジェクトを更新し、必要に応じてプロジェクトを削除。プロジェクトタグのバインディングを管理し、プロジェクト間でワークスペースを移動します。
- 運営管理: 実行を作成, リストラン, 実行詳細を取得, 申請/カード/キャンセルを実行します.
- 計画管理: 高度な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
}
}
}
}