Command Palette

Search for a command to run...

UnylyUnyly
Весь каталог

Blog Terraform Mcp Server Github Actions Example

БесплатноНе проверен

Example repository for Terraform MCP Server with GitHub Actions

GitHubEmbed

Описание

Example repository for Terraform MCP Server with GitHub Actions

README

This repository demonstrates using HashiCorp's Terraform MCP Server with GitHub Actions for automated Terraform validation and AI-enhanced analysis using GitHub Models.

Overview

This example showcases how to:

  • Validate Terraform plans using the official HashiCorp Terraform MCP Server
  • Integrate AI-powered analysis using GitHub Models (GPT-4o)
  • Automate validation in GitHub Actions CI/CD pipeline
  • Deploy Azure infrastructure with best practices

Features

  • MCP Server Integration: Uses HashiCorp's official Terraform MCP Server for schema validation
  • AI-Enhanced Analysis: Leverages GitHub Models for security and best practice recommendations
  • Azure Resources: Example Terraform configuration deploying common Azure resources:
    • Resource Group
    • Virtual Network & Subnet
    • Storage Account
    • App Service Plan
    • Linux Web App

GitHub Actions Workflow

The workflow (terraform-mcp.yaml) runs on pull requests and:

  1. Starts the Terraform MCP Server using Docker
  2. Runs terraform init and terraform plan
  3. Validates resource schemas using MCP
  4. Analyzes the plan with GitHub Models for security recommendations
  5. Comments results on the PR

Usage

  1. Fork this repository
  2. Create a pull request with Terraform changes
  3. The workflow will automatically validate your changes
  4. Review the MCP validation results and AI recommendations in the PR comments

Requirements

  • GitHub repository with Actions enabled
  • Terraform 1.13.4+
  • Azure subscription (for actual deployment)

Local Testing

# Initialize Terraform
terraform init

# Create a plan
terraform plan -out=tfplan.binary

# View the plan
terraform show tfplan.binary

MCP Server

This project uses the official HashiCorp Terraform MCP Server:

  • Docker image: hashicorp/terraform-mcp-server:latest
  • Provides provider schema validation
  • Ensures configurations follow provider specifications

GitHub Models

AI analysis is powered by GitHub Models, which provides:

  • Security recommendations
  • Best practice suggestions
  • Resource configuration review
  • No additional API keys required (uses GITHUB_TOKEN)

License

MIT

from github.com/thomast1906/blog-terraform-mcp-server-github-actions-example

Установка Blog Terraform Mcp Server Github Actions Example

У этого сервера нет опубликованного пакета — он собирается из исходников. Открой репозиторий и следуй инструкции в README.

▸ github.com/thomast1906/blog-terraform-mcp-server-github-actions-example

FAQ

Blog Terraform Mcp Server Github Actions Example MCP бесплатный?

Да, Blog Terraform Mcp Server Github Actions Example MCP бесплатный — установка в пару кликов через Unyly без оплаты.

Нужен ли API-ключ для Blog Terraform Mcp Server Github Actions Example?

Нет, Blog Terraform Mcp Server Github Actions Example работает без API-ключей и переменных окружения.

Blog Terraform Mcp Server Github Actions Example — hosted или self-hosted?

Self-hosted: сервер запускается локально на твоей машине командой из раздела установки.

Как установить Blog Terraform Mcp Server Github Actions Example в Claude Desktop, Claude Code или Cursor?

Открой Blog Terraform Mcp Server Github Actions Example на unyly.org, выбери вкладку своего клиента (Claude Desktop, Claude Code, Cursor) и нажми Install — конфиг сгенерируется автоматически, без правки JSON.

Похожие MCP

Compare Blog Terraform Mcp Server Github Actions Example with

Не уверен что выбрать?

Найди свой стек за 60 секунд

Автор?

Embed-бейдж для README

Похожее

Все в категории development