Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
This article explains how to set up and use the Microsoft Dataverse model context protocol (MCP) server with Visual Studio GitHub Copilot.
Prerequisites
- The Visual Studio Code GitHub Copilot MCP client must be allowed in the environment. More information: Configure and manage the Dataverse MCP server for an environment
- Visual Studio Code installed with GitHub Copilot extension. More information: GitHub Copilot extension for Visual Studio Code
Steps to connect to Dataverse MCP server in Visual Studio Code
Open Visual Studio Code. Select View > Command Palette (Ctrl+Shift+P), type MCP: Add Server and press Enter.
Select HTTP or Server Sent Events and then press Enter.
Paste your instance URL, such as
https://contoso.crm.dynamics.com/, append /api/mcp to it, and press Enter. You can get the instance URL at make.powerapps.com > Settings (gear icon) > Session details > Instance url.
This step generates the MCP server configuration in Visual Studio Code.
Press Ctrl+Alt+I and ensure that agent mode is selected.