Build Salesforce-Powered Applications in GitHub Copilot with CData Code Assist MCP
GitHub Copilot is an AI-powered coding assistant that integrates directly into Visual Studio Code and other IDEs. With support for MCP, GitHub Copilot can connect to local tools and enterprise data sources, enabling natural language interaction with live systems during development.
Model Context Protocol (MCP) is an open standard for connecting LLM clients to external services through structured tool interfaces. MCP servers expose capabilities such as schema discovery and live querying, allowing AI agents to retrieve and reason over real-time data safely and consistently.
In this article, we guide you through installing the CData Code Assist MCP for Salesforce, configuring the connection to Salesforce, connecting the Code Assist MCP add-on to GitHub Copilot, and querying live Salesforce data from within Visual Studio Code.
About Salesforce Data Integration
Accessing and integrating live data from Salesforce has never been easier with CData. Customers rely on CData connectivity to:
- Access to custom entities and fields means Salesforce users get access to all of Salesforce.
- Create atomic and batch update operations.
- Read, write, update, and delete their Salesforce data.
- Leverage the latest Salesforce features and functionalities with support for SOAP API versions 30.0.
- See improved performance based on SOQL support to push complex queries down to Salesforce servers.
- Use SQL stored procedures to perform actions like creating, retrieving, aborting, and deleting jobs, uploading and downloading attachments and documents, and more.
Users frequently integrate Salesforce data with:
- other ERPs, marketing automation, HCMs, and more.
- preferred data tools like Power BI, Tableau, Looker, and more.
- databases and data warehouses.
For more information on how CData solutions work with Salesforce, check out our Salesforce integration page.
Getting Started
Prerequisites
- Visual Studio Code is installed on your machine
- GitHub Copilot Chat extension is enabled in Visual Studio Code
- CData Code Assist MCP for Salesforce has been installed
Step 1: Download and install the CData Code Assist MCP for Salesforce
- To begin, download the CData Code Assist MCP for Salesforce
- Find and double-click the installer to begin the installation
- Run the installer and follow the prompts to complete the installation
When the installation is complete, you are ready to configure your Code Assist MCP add-on by connecting to Salesforce.
Step 2: Configure the connection to Salesforce
- After installation, open the CData Code Assist MCP for Salesforce configuration wizard
NOTE: If the wizard does not open automatically, search for "CData Code Assist MCP for Salesforce" in the Windows search bar and open the application.
- In MCP Configuration > Configuration Name, either select an existing configuration or choose
to create a new one
- Name the configuration (e.g. "cdata_salesforce") and click OK
-
Enter the appropriate connection properties in the configuration wizard
There are several authentication methods available for connecting to Salesforce: OAuth, Login (or basic), and SSO. The Login method requires you to have the username, password, and security token of the user.
OAuth Authentication (default)
The default authentication mechanism (and the one preferred by Salesforce) is OAuth. To use OAuth with CData's embedded OAuth application, leave the connection properties blank. If you have configured your own custom OAuth application with Salesforce (see the Help documentation for more information), set OAuthClientId, OAuthClientSecret, and CallbackURL to the properties for you application. Set InitiateOAuth to the desired OAuth flow ("GETANDREFRESH" will have the connector manage the entire OAuth flow).
Login (or Basic) Authentication
If you do not wish do not wish to use OAuth authentication, you can use Login (or basic) authentication. Set AuthScheme to Basic, and set the User, Password, and SecurityToken properties. You can configure your security token in Salesforce.
SSO (single sign-on) Authentication
SSO (single sign-on) can be used by setting the SSOProperties, SSOLoginUrl, and SSOExchangeURL connection properties, which allow you to authenticate to an identity provider. See the "Getting Started" chapter in the Help documentation for more information.
- Click Connect to authenticate with Salesforce through OAuth
- Click Save & Test to finalize the connection
This process creates a .mcp configuration file that GitHub Copilot will reference when launching the Code Assist MCP add-on. Now with your Code Assist MCP add-on configured, you are ready to connect it to GitHub Copilot.
Step 3: Connect the Code Assist MCP add-on to GitHub Copilot
- Download and install Visual Studio Code and enable the GitHub Copilot Chat extension
- Open or create the mcp.json file:
- For global configuration: %%APPDATA%%/Roaming/Code/User/mcp.json
- For project-specific configuration:
/.vscode/mcp.json
- Add the JSON code shown below and save the file
- After saving and testing your connection in the configuration wizard, click Next
- Select Github Copilot from the AI MCP Tool dropdown
- Follow the MCP Client Instructions to create the required configuration file
- Copy the displayed JSON code and paste it into your configuration file
Option 1: Manually add the MCP configuration
{
"servers": {
"cdata_salesforce": {
"command": "C:\Program Files\CData\CData Code Assist MCP for Salesforce\jre\bin\java.exe",
"args": [
"-Dfile.encoding=UTF-8",
"-jar",
"C:\Program Files\CData\CData Code Assist MCP for Salesforce\lib\cdata.mcp.salesforce.jar",
"cdata_salesforce"
]
}
}
}
NOTE: The command value should point to your Java 17+ java.exe executable, and the JAR path should point to the installed CData Code Assist MCP add-on .jar file. The final argument must match the MCP configuration name you saved in the CData configuration wizard (e.g. "cdata_salesforce").
Option 2: Copy the MCP configuration from the CData Code Assist MCP for Salesforce UI
Step 4: Query live Salesforce data in GitHub Copilot
- Launch Visual Studio Code and open the GitHub Copilot Chat interface. Select the tool icon to enable the configured Code Assist MCP add-on
- Ask questions about your Salesforce data using natural language. For example:
"List all tables available in my Salesforce data data connection."
- Start building with natural language prompts:
For my project, data from the Account is very important. Pull data from the most important columns like Industry and AnnualRevenue.
GitHub Copilot is now fully integrated with CData Code Assist MCP for Salesforce and can use the MCP tools to explore schemas and execute live queries against Salesforce.
Build with Code Assist MCP. Deploy with CData Drivers.
Download Code Assist MCP for free and give your AI tools schema-aware access to live Salesforce data during development. When you're ready to move to production, CData Salesforce Drivers deliver the same SQL-based access with enterprise-grade performance, security, and reliability.
Visit the CData Community to share insights, ask questions, and explore what's possible with MCP-powered AI workflows.