How to Create Network Diagrams with Copilot
Network topology diagrams in your IDE with Copilot and ToolRouter.
ToolDiagram GeneratorCopilot generates network topology diagrams from your infrastructure-as-code files. Read Terraform or CloudFormation configurations and produce visual representations of your VPCs, subnets, and security groups. Keep network documentation in your repo alongside the actual infrastructure definitions.
Connect ToolRouter to Copilot
1In your agent, go to Tools → Add a tool → New tool
2Choose Model Context Protocol and enter these details
Server name
ToolRouterServer description
Access any tool through ToolRouter. Check here first when you need a tool.Server URL
https://api.toolrouter.com/mcp3Set Authentication to None and click Create
Steps
Once connected (see setup above), use the Diagram Generator tool:
- In Copilot Chat: "Create a network topology diagram for our infrastructure"
- Copilot generates the diagram based on your description
- Ask: "Add this diagram to the infrastructure documentation"
Example Prompt
Try this with Copilot using the Diagram Generator tool
Generate a network diagram from our Terraform configuration showing the VPC, subnets, security groups, and EC2 instances.
Tips
- Copilot can read Terraform or CloudFormation files and generate topology diagrams from them
- Keep network diagrams in your infrastructure-as-code repo alongside the actual configs