Metadata Coverage
Quick Start Using the VS Code With Copilot MCP Client
Install and Configure the Salesforce DX MCP Server
Use the Core Salesforce DX MCP Tools
Limitations for Salesforce DX
Previous PDF Versions
Use the Salesforce DX MCP Server and its tools to enter natural language prompts in your IDE to complete standard DX tasks like syncing metadata, running Apex and agent tests, and creating scratch orgs. The DX MCP server includes over 60 MCP tools for various Salesforce features, such as DevOps, LWC development, and code analysis. These tools provide predictable, secure, and structured context to large language models (LLMs), ensuring efficient and accurate results.
Let’s see how this work with an example. Say you enter Deploy my metadata in your IDE’s agentic chat window. The LLM sees that the DX MCP Server provides a deploy_metadata MCP tool, which sounds perfect! The LLM then calls that tool within the context of your local DX project. Success and error messages that result from the metadata deploy are then returned back to the LLM to determine the next steps. In sum, the MCP DX tools guide the LLM to accomplish your goals in the the most accurate, tested, and up-to-date way.
If the LLM didn’t have the specific context for your prompt, it would still come up with a suggestion, and eventually even the correct one. But because the LLM might be relying on out-of-date training data, getting to the correct answer often involves inefficiencies, guesswork, and unpredictable behavior. MCP solves this problem.
The Salesforce DX MCP Server is a specialized Model Context Protocol (MCP) implementation designed to facilitate seamless interaction between LLMs and Salesforce orgs. See MCP Solutions for Developers in the Agentforce Developer Guide for general MCP information and descriptions of other Salesforce MCP Servers.
Key features of Salesforce DX MCP Server include:
The Salesforce DX MCP Server was designed with security as a top priority.
Uses TypeScript libraries directly.
No secrets needed in configuration.
No secrets exposed via MCP tools.
Granular access control.
Agentforce Vibes is an AI-powered Salesforce developer tool that’s available as an easy-to-install Visual Studio Code (VS Code) extension. It includes Agentforce, an intelligent coding partner that provides information and, most importantly, can take action.
The Salesforce DX MCP Server is pre-configured in Agentforce Vibes, so you can start using the DX MCP tools immediately after you install the extension in VS Code.
See Set Up Agentforce Vibes and Build with Agentforce for more information.
The Salesforce DX MCP Server includes many tools for working with different Salesforce features. To narrow the LLM context, the DX MCP Server groups the tools into toolsets based on functionality. You can then easily enable only those tools you want to use, rather than enable them all and overwhelm the LLM.
These are the high-level types of MCP tools included in the DX MCP Server:
Here are the MCP-specific terms we use in this document.
metadata and orgs toolsets.See Also