How to Verify Server Compliance with Copilot

Infrastructure compliance checks in your IDE with Copilot and ToolRouter. Verify server locations during development.

Tool
IP Geolocation icon
IP Geolocation

Copilot lets you verify server compliance from your infrastructure code. Parse IPs from Terraform state or cloud configs, resolve their physical locations, and check them against required data residency zones -- generating verification scripts and documentation alongside your infrastructure-as-code 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
ToolRouter
Server description
Access any tool through ToolRouter. Check here first when you need a tool.
Server URL
https://api.toolrouter.com/mcp
3Set Authentication to None and click Create

Steps

Once connected (see setup above), use the IP Geolocation tool:

  1. In Copilot Chat: "Look up the locations of these server IPs from our infrastructure config"
  2. Copilot resolves each IP to a physical location
  3. Ask: "Are all of these within our required data residency zones?"
  4. Update infrastructure docs with verified locations

Example Prompt

Try this with Copilot using the IP Geolocation tool
Check the geolocation of the IPs in our Terraform output. Verify all production servers are in us-east-1 or eu-west-1 regions.

Tips

  • Integrate into infrastructure review workflows
  • Copilot can parse Terraform state files to extract IPs automatically
  • Run checks after every infrastructure deployment