Skip to content
Merged
Show file tree
Hide file tree
Changes from 6 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions .github/labeler.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,13 @@ Terraform Enterprise:
'content/terraform-enterprise/**'
]

Terraform MCP Server:
- any:
- changed-files:
- any-glob-to-any-file: [
'content/terraform-mcp-server/**'
]

Terraform migrate:
- any:
- changed-files:
Expand Down
1 change: 1 addition & 0 deletions CODEOWNERS
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
/content/terraform-plugin-sdk @hashicorp/terraform-devex @hashicorp/terraform-education
/content/terraform-plugin-testing @hashicorp/terraform-devex @hashicorp/terraform-education
/content/terraform-docs-agents @hashicorp/team-hcpt-agent-engineering
/content/terraform-mcp-server @hashicorp/team-docs-packer-and-terraform
/content/terraform-migrate @hashicorp/team-docs-packer-and-terraform
/content/terraform-cdk @hashicorp/cdktf

Expand Down
10 changes: 10 additions & 0 deletions __fixtures__/productConfig.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -241,6 +241,16 @@ export const PRODUCT_CONFIG = {
versionedDocs: true,
websiteDir: 'website',
},
'terraform-mcp-server': {
assetDir: 'img',
basePaths: ['mcp-server'],
contentDir: 'docs',
dataDir: 'data',
productSlug: 'terraform',
semverCoerce: semver.coerce,
versionedDocs: true,
websiteDir: 'website',
},
'terraform-migrate': {
assetDir: 'img',
basePaths: ['migrate'],
Expand Down
4 changes: 4 additions & 0 deletions content/terraform-docs-common/data/cloud-docs-nav-data.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,10 @@
{
"title": "Getting Started",
"href": "https://learn.hashicorp.com/collections/terraform/cloud-get-started?utm_source=WEBSITE&utm_medium=WEB_IO&utm_offer=ARTICLE_PAGE&utm_content=DOCS"
},
{
"title": "Terraform MCP Server",
"path": "mcp-server"
},
{
"title": "Migrate to HCP Terraform",
Expand Down
28 changes: 1 addition & 27 deletions content/terraform-docs-common/data/docs-nav-data.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,33 +21,7 @@
{
"title": "Overview",
"path": "tools"
},
{
"title": "Terraform MCP server",
"badge": {
"text": "BETA",
"type": "outlined",
"color": "neutral"
},
"routes": [
{
"title": "Overview",
"path": "tools/mcp-server"
},
{
"title": "Deploy server",
"path": "tools/mcp-server/deploy"
},
{
"title": "Prompt model",
"path": "tools/mcp-server/prompt"
},
{
"title": "Reference",
"path": "tools/mcp-server/reference"
}
]
}
}
]
},
{ "title": "Glossary", "path": "glossary" }
Expand Down
6 changes: 6 additions & 0 deletions content/terraform-docs-common/redirects.jsonc
Original file line number Diff line number Diff line change
Expand Up @@ -659,5 +659,11 @@
"source": "/terraform/cloud-docs/migrate/tf-migrate/reference/configuration",
"destination": "/terraform/migrate/reference/configuration",
"permanent": true
},
// Move MCP server to new versioned space
{
"source": "/terraform/docs/tools/mcp-server:slug*",
"destination": "terraform/mcp-server/:slug*",
"permanent": true
}
]
21 changes: 21 additions & 0 deletions content/terraform-mcp-server/v0.1.x/data/mcp-server-nav-data.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
[
{
"heading": "Use Terraform MCP Server"
},
{
"title": "Overview",
"path": ""
},
{
"title": "Deploy",
"path": "deploy"
},
{
"title": "Prompt",
"path": "prompt"
},
{
"title": "Reference",
"path": "reference"
}
]
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@ description: |-

The Terraform Model Context Protocol (MCP) server enables AI models to generate Terraform configuration using up-to-date information from the Terraform Registry. This page explains how to install, configure, and integrate the MCP server with your AI client.

@include 'beta.mdx'

## Overview

The Terraform MCP server is a specialized service that provides AI models with access to current Terraform provider documentation and module information. You can deploy the server to the following environments:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@ description: Learn about the Terraform model context protocol (MCP) server and h

The Terraform Model Context Protocol (MCP) server enhances AI models with real-time access to current Terraform provider documentation, modules, and policies from the [Terraform registry](https://registry.terraform.io). This ensures AI-generated Terraform configurations use accurate, up-to-date information rather than potentially outdated training data.

@include 'beta.mdx'

## What is the Terraform MCP server?

The Model Context Protocol (MCP) is an open standard that enables AI models to securely connect with external tools, applications, and data sources. MCP allows AI models to access information beyond their training data, providing more current and accurate responses.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@ description: |-

This topic provides example prompts for helping you write Terraform configuration after installing the Terraform model context protocol (MCP) server. Refer to [Deploy the Terraform MCP server](/terraform/docs/tools/mcp-server/deploy) for instructions on how to deploy the server.

@include 'beta.mdx'

## Overview

To trigger the MCP server tools, ask your LLM questions about your provider configuration or general questions about Terraform providers and modules. Note that for your LLM to use the server, your questions must pertain to provider configuration from the registry. The LLM uses other sources, such as content from the internet, to respond to general questions about Terraform configuration or requests to generate code.
Expand Down
11 changes: 11 additions & 0 deletions productConfig.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -247,6 +247,17 @@ export const PRODUCT_CONFIG = {
versionedDocs: true,
websiteDir: 'website',
},
'terraform-mcp-server': {
assetDir: '',
basePaths: ['mcp-server'],
contentDir: 'docs',
dataDir: 'data',
navDataPath: 'mcp-server',
productSlug: 'terraform',
semverCoerce: semver.coerce,
versionedDocs: true,
websiteDir: 'website',
},
'terraform-migrate': {
assetDir: '',
basePaths: ['migrate'],
Expand Down
Binary file modified scripts/prebuild/prebuild-arm-linux-binary.gz
Binary file not shown.
Binary file modified scripts/prebuild/prebuild-arm-mac-binary.gz
Binary file not shown.
Binary file modified scripts/prebuild/prebuild-x64-linux-binary.gz
Binary file not shown.