SM

salesforcecli/mcp

效率工作流

本页由 AI 翻译,技术细节请以原文为准。 查看原文

487 stars 113 forks 质量 81 趋势 34Apache-2.0

用于与 Salesforce 实例交互的 MCP 服务器

概览

用于与 Salesforce 组织交互的 MCP 服务器 在这里报告错误和问题。如需功能请求及其他相关话题,请在此发起讨论。 有关 Salesforce DX MCP 服务器的一般文档,请参见 Salesforce DX 开发者指南中的这一部分。文档包括: - 全面的概述,包括安全特性的详细信息。- 快速入门指南。- 多个配置 MCP 客户端服务器的示例。- 调用核心 DX MCP 工具的示例提示。 Salesforce DX MCP 服务器是一种专门的模型上下文协议(MCP)实现,旨在促进大型语言模型(LLM)与 Salesforce 组织之间的无缝交互。该 MCP 服务器提供了一套强大的工具和功能,使 LLM 能够安全地读取、管理和操作 Salesforce 资源。

概述(AI 翻译)

[!重要] ⚠️ 生命终止日期:2026年11月2日

Salesforce DX 本地 MCP 服务器(@salesforce/mcp)将于 2026 年 11 月 2 日终止服务。 详情请参见https://github.com/forcedotcom/mcp/issues/46。

MCP

用于与 Salesforce 组织交互的 MCP 服务器

反馈

在这里报告漏洞和问题。 如需功能请求及其他相关话题,请在此发起讨论。

文献资料

有关 Salesforce DX MCP 服务器的一般文档,请参见 _Salesforce DX 开发者Guide_中的这一部分。文档包括:

  • 全面的概述,包括安全特征的详细信息。
  • 快速入门指南。
  • 在你的MCP客户端中配置服务器的多个示例。
  • 调用核心DX MCP工具的示例提示。

以下是发布说明。

Salesforce DX MCP 服务器概述

Salesforce DX MCP 服务器是一种专门的模型上下文协议(MCP)实现,旨在促进大型语言模型(LLM)与 Salesforce 组织之间的无缝交互。该 MCP 服务器提供了一套强大的工具和功能,使 LLM 能够安全地读取、管理和操作 Salesforce 资源。

本页由 AI 翻译,技术细节请以原文为准。

README

以下为原文 README 节选,完整内容请查看原文。

[!IMPORTANT] ⚠️ End of Life: November 2nd, 2026

The Salesforce DX local MCP server (@salesforce/mcp) reaches end of life on November 2nd, 2026.
See https://github.com/forcedotcom/mcp/issues/46 for more details.

MCP

MCP Server for Interacting with Salesforce Orgs

Feedback

Report bugs and issues here.
For feature requests and other related topics, start a Discussion here.

Documentation

For general documentation about the Salesforce DX MCP Server, see this section in the Salesforce DX Developer Guide. The docs include:

  • Comprehensive overview, including details about the security features.
  • Quick start guide.
  • Multiple examples of configuring the server in your MCP client.
  • Sample prompts for invoking the core DX MCP tools.

Here are the release notes.

Overview of the Salesforce DX MCP Server

The Salesforce DX MCP Server is a specialized Model Context Protocol (MCP) implementation designed to facilitate seamless interaction between large language models (LLMs) and Salesforce orgs. This MCP server provides a robust set of tools and capabilities that enable LLMs to read, manage, and operate Salesforce resources securely.

Configure the DX MCP Server

Configure the Salesforce DX MCP Server for your MCP client by updating its associated MCP JSON file; each client is slightly different, so check your MCP client documentation for details. See MCP Client Configurations for more examples.

Here’s an example for VS Code with Copilot in which you create and update a .vscode/mcp.json file in your project:

{
  "servers": {
    "Salesforce DX": {
      "command": "npx",
      "args": ["-y", "@salesforce/mcp",
              "--orgs", "DEFAULT_TARGET_ORG",
              "--toolsets", "orgs,metadata,data,users",
              "--tools", "run_apex_test",
              "--allow-non-ga-tools"]
    }
  }
}

The args format shown in the preceding example is the same for all MCP clients; it’s how you customize the DX MCP Server for your particular environment.

Notes:

  • The "-y", "@salesforce/mcp" part tells npx to automatically install the @salesforce/mcp package instead of asking permission. Don’t change this.
  • For possible flags that you can pass to the args option, and the possible values that you can pass to the --orgs, --toolsets, and --tools flags, see these sections:
在 GitHub 查看完整 README

安装

npx -y @salesforce/mcp --orgs DEFAULT_TARGET_ORG --toolsets orgs metadata data users --tools run_apex_test --allow-non-ga-tools
新手?先看 mcpskill.org 教程 →

配置

{ "mcpServers": { "Salesforce DX": { "command": "npx", "args": ["-y", "@salesforce/mcp", "--orgs", "DEFAULT_TARGET_ORG", "--toolsets", "orgs,metadata,data,users", "--tools", "run_apex_test", "--allow-non-ga-tools"] } } }