Skip to content

Commit b5a02b4

Browse files
authored
Merge pull request #166 from yunkon-kim/250813-19
Add OpenTofu MCP server config for contributors using VSCode Copilot
2 parents fa33290 + 165656d commit b5a02b4

File tree

3 files changed

+18
-7
lines changed

3 files changed

+18
-7
lines changed

.gitignore

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,9 @@
1515
*.out
1616

1717
# vscode settings
18-
.vscode/
18+
!.vscode/
19+
.vscode/**
20+
!.vscode/mcp.json
1921

2022
# Dependency directories (remove the comment below to include it)
2123
vendor/

.vscode/mcp.json

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"servers": {
3+
"opentofu": {
4+
"command": "npx",
5+
"args": ["-y", "@opentofu/opentofu-mcp-server"]
6+
}
7+
},
8+
"inputs": []
9+
}

README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -53,13 +53,13 @@ Prepare credentials by looking at the README and templates in the `/secrets` dir
5353

5454
Note - There may be an issue regarding Credential settings. Contributions are welcome.
5555

56-
## Development Tools (Optional)
56+
## Development Tools
5757

5858
### OpenTofu MCP Server Integration (for contributors)
5959

60-
This enables AI-powered assistance **for your enhanced development experience**, such as OpenTofu registry search, documentation access, and code assistance.
60+
This enables AI-powered assistance **for your enhanced development experience**, such as OpenTofu registry search, documentation access, and code assistance through AI tools like GitHub Copilot.
6161

62-
As recommended by OpenTofu MCP Server, we use the **hosted service** instead of local installation for better reliability and always up-to-date registry data.
62+
We use the **npx-based installation** for reliable access to OpenTofu registry data and documentation. SSE (Server-Sent Events) transport appears to be deprecated and being replaced with Streamable HTTP transport in MCP.
6363

6464
**Setup for VS Code:**
6565

@@ -69,15 +69,15 @@ As recommended by OpenTofu MCP Server, we use the **hosted service** instead of
6969
{
7070
"servers": {
7171
"opentofu": {
72-
"type": "sse",
73-
"url": "https://mcp.opentofu.org/sse"
72+
"command": "npx",
73+
"args": ["-y", "@opentofu/opentofu-mcp-server"]
7474
}
7575
},
7676
"inputs": []
7777
}
7878
```
7979

80-
For other editors (Cursor) or local installation options, see the [OpenTofu MCP Server repository](https://github.com/opentofu/opentofu-mcp-server).
80+
For other editors (Cursor) or additional setup options, see the [OpenTofu MCP Server repository](https://github.com/opentofu/opentofu-mcp-server).
8181

8282
## Up and run MC-Terrarium
8383

0 commit comments

Comments
 (0)