GitHub
Connect AI assistants to GitHub - manage repos, issues, PRs, and workflows through natural language.
作者提供的说明(英文原文)
Draw cloud architecture diagrams with official AWS, Azure and GCP icons from a prompt or Terraform.
这三项永远不会合并成一个分数:意见、测量和人气是不同的东西。
我们还没有为它写通俗的介绍。下面是我们从注册中心读取到的事实。
选择你使用的 AI 应用,然后复制设置。
你需要
你用的是哪个应用?
在上方选择你的应用。我们会记住它,下次按钮会显示“安装到 …”。
打开 Claude Desktop → Settings → Developer → Edit Config,把下面的内容粘贴到 claude_desktop_config.json
{
"mcpServers": {
"terravision": {
"command": "uvx",
"args": [
"terravision",
"mcp"
]
}
}
}在终端中运行这条命令
claude mcp add terravision -- uvx terravision mcp粘贴到项目中的 .cursor/mcp.json,或 ~/.cursor/mcp.json
{
"mcpServers": {
"terravision": {
"command": "uvx",
"args": [
"terravision",
"mcp"
]
}
}
}浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。
粘贴到项目中的 .vscode/mcp.json
{
"servers": {
"terravision": {
"type": "stdio",
"command": "uvx",
"args": [
"terravision",
"mcp"
]
}
}
}浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。
这个服务器在你的电脑上运行,而 ChatGPT 只能连接互联网上的服务器。请选择其他应用。
你的选择通过 Cookie 保存在这台设备上,无需账户。
这些设置是根据作者在注册中心的条目生成的。如果 README 的写法不同,请以 README 为准。
它在你的电脑上运行;安装后,工具列表会显示在你的 AI 应用中。
我们检查的是任何人都能看到的信息;我们没有阅读代码。不适用的检查项不计入总数。 · 检查于 2026年11月6日
注册名称已通过 GitHub 账户 patrickchugh 验证,该账户拥有此仓库
我们还没有从 GitHub 读取这个仓库
我们还没有从 GitHub 读取这个仓库
它在你的电脑上运行,没有互联网端点
在你的电脑上运行,改用本地设置
它在你的电脑上运行;我们只能读取互联网端点的工具列表
与注册中心里这个分类中所有活跃的服务器比较。只有当发布者拥有该仓库时,星标数才计入。
它在 1 项适用的基础检查中通过了 1 项。我们没有阅读代码。在添加密钥或令牌之前,请先看看这个服务器要求哪些权限,并使用只具备所需权限的密钥。
注册中心没有列出必需的密钥,不过有些服务器会在首次使用时要求你登录。
它在你的电脑上运行。你的 AI 应用会在需要时启动它,数据不会经过作者的服务器(除非它自己调用在线服务)。
GitHub 仓库最后更新于–,最新版本(0.56.1)于6天前进入注册中心。
支持 MCP 的应用,例如 Claude Desktop、Claude Code、Cursor 和 VS Code。你的电脑上还需要有 Python (uv)。
同一分类中有:GitHub, Desktop Commander, Cloudflare MCP
同一分类中其他作者的服务器,按星标数排序。
如何看卡片:★ GitHub 星标i三大支柱:评价 · 检查 · 使用情况i更新 = 最新版本发布到注册中心的时间i
Connect AI assistants to GitHub - manage repos, issues, PRs, and workflows through natural language.
MCP server for terminal commands, file operations, and process management
Cloudflare MCP servers
按原文从作者的仓库复制。PopNx MCP 没有审查或背书其内容。HTML、图片和脚本已被移除。链接会离开本站。
TerraVision is an AI-powered CLI tool that converts Terraform code into Professional Cloud Architecture Diagrams and solves the problem of keeping the most important document in cloud projects, the architecture diagram, up to date. With high velocity releases the norm now, code is the new source of truth so machine generated architecture diagrams are more accurate than relying on the freestyle diagram drawn by the cloud architect that probably doesn't match the reality of what is actually deployed in the cloud anymore.
TerraVision securely runs 100% Client Side without any dependency or access to your Cloud environment, dynamically parses your conditionally created resources and variables and generates an automatic visual of your architecture. TerraVision is designed to be a 'Docs as Code' (DaC) tool that can be included in your CI/CD pipeline to update architecture diagrams after your build/test/release pipeline phases and supplement other document generators like readthedocs.io alongside it.
Turn this...
into this...
⚠️ Alpha Software Notice
This software is still in alpha testing and code is shared on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. Use at your own risk.
TerraVision seamlessly integrates into your CI/CD pipeline to automatically keep architecture diagrams synchronized with your infrastructure code:
graph TD
A[Developer Commits Terraform Code] --> B[Git Push] B --> C[CI/CD Pipeline Triggered] C --> D[Build Stage] D --> E[Test Stage] E --> F[Terraform Plan] F --> G[🎨 TerraVision Generate Diagrams] G --> H[Deploy Stage] H --> I[Update Docs] I --> J[Publish to Confluence/ReadTheDocs]
style G fill:#ff9900,stroke:#232f3e,stroke-width:3px,color:#fff style A fill:#4a90e2,stroke:#2e5c8a,stroke-width:2px,color:#fff style J fill:#36b37e,stroke:#1f7a54,stroke-width:2px,color:#fff
--aibackend ollama) # macOS
brew install graphviz
sudo apt-get install graphviz
# Most systems have git pre-installed
git --version
# Verify installation
terraform version
# Clone the repository
git clone https://github.com/patrickchugh/terravision.git cd terravision
pip install -r requirements.txt
chmod +x terravision.py
ln -s $(pwd)/terravision.py $(pwd)/terravision
export PATH=$PATH:$(pwd)
For Windows:
# Clone the repository
git clone https://github.com/patrickchugh/terravision.git cd terravision
pip install -r requirements.txt
echo @python "%~dp0terravision.py" %* > terravision.bat
copy terravision.bat C:\Windows\System32\
# MacOS or Linux users - Install Poetry if not already installed
curl -sSL https://install.python-poetry.org | python3 -
(Invoke-WebRequest -Uri https://install.python-poetry.org -UseBasicParsing).Content | py -
git clone https://github.com/patrickchugh/terravision.git cd terravision poetry install
source $(poetry env info --path)/bin/activate
ln -s $(pwd)/terravision.py $(pwd)/terravision
export PATH=$PATH:$(pwd)
# Basic usage - analyze current directory
terravision draw
terravision draw --source ~/src/my-terraform-code
terravision draw --source ~/src/my-terraform-code --workspace production
terravision draw --source ~/src/my-terraform-code --varfile prod.tfvars
terravision draw --source ~/src/my-terraform-code --format svg terravision draw --source ~/src/my-terraform-code --format pdf
terravision draw --source ~/src/my-terraform-code --show
terravision draw --source ~/src/my-terraform-code --aibackend bedrock terravision draw --source ~/src/my-terraform-code --aibackend ollama
# Analyze Git repository
terravision draw --source https://github.com/your-repo/terraform-examples.git
terravision draw --source https://github.com/your-repo/terraform-examples.git//aws/vpc
# Export resource relationships as JSON
terravision graphdata --source ~/src/my-terraform-code
terravision graphdata --source ~/src/my-terraform-code --show_services
terravision graphdata --source ~/src/my-terraform-code --outfile my-resources.json
# Add your own custom annotations such as labels, resources or new connections
terravision draw --source https://github.com/your-repo/terraform-examples.git --annotate ./custom-annotations.yml
# Export and reuse graph data
terravision graphdata --source ~/src/terraform --outfile graph.json
terravision draw --source ./graph.json terravision draw --source ./graph.json --format svg
terravision draw --source /your_source_files --debug # createas a tfdata.json in current folder terravision draw --source tfdata.json
# Enable debug output for troubleshooting and which will dump all state info into tfdata.json
terravision draw --source ~/src/my-terraform-code --debug
TerraVision can use AI models to automatically refine and improve your architecture diagrams by fixing resource groupings, adding missing connections, and ensuring proper AWS architectural conventions.
Uses AWS Bedrock API via API Gateway for cloud-based AI refinement.
# Use Bedrock backend (default)
terravision draw --source ~/src/my-terraform-code --aibackend bedrock
Configuration: Edit modules/cloud_config.py to set your Bedrock API endpoint:
BEDROCK_API_ENDPOINT = "https://your-api-id.execute-api.us-east-1.amazonaws.com/prod/chat"
Uses a local Ollama server for privacy-focused, offline AI refinement.
# Use Ollama backend
terravision draw --source ~/src/my-terraform-code --aibackend ollama
Setup:
# Start Ollama (runs automatically on macOS/Linux after install)
ollama serve
ollama pull llama3
export OLLAMA_KEEP_ALIVE=1h
3. Edit `modules/cloud_config.py` to set your Ollama server (default is localhost):
OLLAMA_HOST = "http://localhost:11434"
The AI models use specialized prompts defined in modules/cloud_config.py:
TerraVision includes Terraform code to deploy a serverless AWS Bedrock proxy with API Gateway:
# Navigate to the Terraform directory
cd ai-backend-terraform
cp terraform.tfvars.example terraform.tfvars
terraform init terraform apply
terraform output api_endpoint
Infrastructure Components:
Terraform Variables:
variable "bedrock_mod只显示了开头部分;其余内容请在仓库中阅读