Use this guide to connect GitHub Copilot in Visual Studio Code to your DynamicWeb solution through the DynamicWeb MCP Server.
Note
Before you follow this guide, make sure you've completed the setup in Connect an agent.
Visual Studio Code 1.99 or later is required.
Configure mcp.json
GitHub Copilot uses an mcp.json file for MCP configuration.
- In Visual Studio Code, open or create
.vscode/mcp.jsonin your project, or use the user-level configuration for global access - Add the DynamicWeb MCP server:
{
"servers": {
"dynamicweb": {
"type": "http",
"url": "https://<your-dw-instance>/Admin/mcp",
"headers": {
"Authorization": "Bearer <your-api-key>"
}
}
}
}
- Click the Start button shown at the top of the file to activate the server
- Open Copilot Chat, switch to Agent mode, and click the tools icon to confirm that the DynamicWeb tools are available
Note
If you are on a Copilot Business or Enterprise plan, an organization admin must enable the MCP servers in Copilot policy before this will work