This VS Code extension provides access to Power Platform Dataverse metadata through the Model Context Protocol (MCP), enabling GitHub Copilot to assist with Dataverse development.
Features
- Automatic MCP Server Registration: Seamlessly integrates the Dataverse MCP server with VS Code
- GitHub Copilot Integration: Use natural language to query and work with Dataverse metadata
- Easy Configuration: Simple setup through VS Code settings
- Bundled Server: No additional installation required - server binaries included
Requirements
- Visual Studio Code 1.96.0 or later
- GitHub Copilot extension
- Access to a Power Platform Dataverse environment
Installation
From VS Code Marketplace
- Open VS Code
- Go to Extensions (Ctrl+Shift+X)
- Search for "Dataverse Metadata MCP"
- Click Install
From VSIX File
code --install-extension dataverse-metadata-mcp-0.1.0.vsix
Setup
- Open the Command Palette (Ctrl+Shift+P)
- Run "Dataverse MCP: Configure Dataverse Connection"
- Enter your Dataverse connection string:
AuthType=OAuth;Url=https://yourorg.crm.dynamics.com/;Username=your@email.com;ClientId=your-client-id;LoginPrompt=Auto;RedirectUri=http://localhost/
Step 3: Verify Installation
- Restart VS Code
- Open a file in your workspace
- Start a Copilot chat
- Ask about Dataverse metadata (e.g., "List all tables in my Dataverse environment")
Extension Settings
This extension contributes the following settings:
dataverseMetadataMcp.enabled: Enable/disable the Dataverse MCP server
dataverseMetadataMcp.connectionString: Dataverse connection string for authentication
dataverseMetadataMcp.serverPath: Custom path to the dataverse-metadata-mcp-server executable (optional)
Commands
Dataverse MCP: Configure Dataverse Connection: Set up your Dataverse connection string
Dataverse MCP: Refresh MCP Servers: Refresh the MCP server list
Usage Examples
With this extension installed and configured, you can ask GitHub Copilot questions like:
- "Show me all the tables in my Dataverse environment"
- "What columns does the Account table have?"
- "List all business process flows"
- "Show me the relationships for the Contact table"
- "What are the global option sets in my environment?"
Development
Building from Source
- Clone the repository:
git clone https://github.com/markus-tobler/dataverse-metadata-mcp.git
cd dataverse-metadata-mcp/vscode-extension
- Install dependencies:
npm install
- Compile the extension:
npm run compile
- Press F5 to open a new VS Code window with the extension loaded
Packaging
npm run package
vsce package
Publishing
See AUTOMATED-RELEASES.md for the automated release process.
Troubleshooting
Server Not Found
The extension includes bundled server binaries for your platform. If you encounter issues:
- Check the VS Code Output panel for error messages
- Verify the extension is properly installed
- Try reloading VS Code window (Ctrl+Shift+P → "Developer: Reload Window")
Connection Issues
If you're having trouble connecting to Dataverse:
- Verify your connection string format
- Ensure you have the necessary permissions in Dataverse
- Check the VS Code Output panel for error messages
- Ensure the extension is enabled in settings
- Restart VS Code
- Check that your connection string is configured
- Verify the server is running (check Output panel)
Contributing
Contributions are welcome! Please see the main repository for contribution guidelines.
License
MIT License - see LICENSE for details
Links
Release Notes
0.1.0
Initial release of Dataverse Metadata MCP Extension
- MCP server registration with VS Code
- Connection string configuration
- Support for bundled or globally installed server
- Integration with GitHub Copilot