From 7cb9f258f684e09e85bb3700d47c6701542991c7 Mon Sep 17 00:00:00 2001 From: Christopher Harrison Date: Tue, 27 Jan 2026 14:32:54 -0800 Subject: [PATCH] docs: add GitHub Copilot CLI installation instructions --- README.md | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/README.md b/README.md index a4f1dbd..248e6cb 100644 --- a/README.md +++ b/README.md @@ -318,6 +318,36 @@ docker run -p 8080:8080 --rm -e TRANSPORT_MODE=streamable-http -e TRANSPORT_HOST claude mcp add --transport http terraform http://localhost:8080/mcp ``` +### Usage with GitHub Copilot CLI + +Use the Copilot CLI to interactively add the MCP server: + +```bash +/mcp add +``` + +Alternatively, create or edit the configuration file `~/.copilot/mcp-config.json` and add: + +```json +{ + "mcpServers": { + "terraform": { + "command": "docker", + "args": [ + "run", + "-i", + "--rm", + "-e", "TFE_ADDRESS=<>", + "-e", "TFE_TOKEN=<>", + "hashicorp/terraform-mcp-server:0.4.0" + ] + } + } +} +``` + +For more information, see the [Copilot CLI documentation](https://docs.github.com/en/copilot/concepts/agents/about-copilot-cli). + ### Usage with Gemini extensions For security, avoid hardcoding your credentials, create or update `~/.gemini/.env` (where ~ is your home or project directory) for storing HCP Terraform or Terraform Enterprise credentials