Skip to main content

VS Code + GitHub Copilot

GitHub Copilot in VS Code supports MCP servers via Agent Mode.

Install and configure

  1. Open VS Code and ensure GitHub Copilot is installed
  2. Switch Copilot to Agent Mode (via the gear menu in Copilot Chat)
  3. Add the Zscaler MCP Server to your MCP configuration:
{
"mcpServers": {
"zscaler-mcp-server": {
"command": "uvx",
"args": ["--env-file", "/path/to/.env", "zscaler-mcp-server"]
}
}
}
  1. Refresh the tools list in Copilot Chat
  2. Prompt the agent

With service selection

{
"mcpServers": {
"zscaler-mcp-server": {
"command": "uvx",
"args": [
"--env-file", "/path/to/.env",
"zscaler-mcp-server",
"--services", "zia,zpa"
]
}
}
}

With Docker

{
"mcpServers": {
"zscaler-mcp-server": {
"command": "docker",
"args": [
"run", "-i", "--rm",
"--env-file", "/full/path/to/.env",
"zscaler/zscaler-mcp-server:latest"
]
}
}
}

Try prompts

  • "Create a ZPA segment group named DevServices"
  • "List my ZIA URL categories"
  • "Show the experience score for my Toronto office in ZDX"

📚 Learn more about Agent Mode in the VS Code Copilot documentation.