Salesforce 标志

Salesforce

组织
salesforcecli

MCP Server for interacting with Salesforce instances

发布者salesforcecli
代码仓库mcp
语言TypeScript
复刻数
111
星标数
476
可用工具
0
传输类型stdio
分类
许可协议Apache-2.0
链接
  • 将工具接入 AI 工作流

    Salesforce 提供 MCP 功能,可供兼容的 AI 客户端和智能体使用。

  • 0 个可用工具

    浏览下方可调用的操作;如果服务器提供了名称和描述,也会一并显示。

  • 可直接复制的配置

    使用安装配置片段,在您首选的 MCP 客户端中配置此服务器。

  • 开源社区热度

    关联的代码仓库有 476 个 Star 和 111 个 Fork。

mcp

MCP Server for Interacting with Salesforce Orgs

NPM License

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:

json
{
  "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:
  • When writing the args option, surround both the flag names and their values in double quotes, and separate all flags and values with commas. Some flags are Boolean and don't take a value.
  • The preceding example shows three flags that take a string value (--orgs, --toolsets, and --tools) and one Boolean flag (--allow-non-ga-tools). This configuration starts a DX MCP Server that enables all the MCP tools in the orgs, metadata, data, and users toolsets and a specific tool called run_apex_tests. It also enables tools in these configured toolsets that aren't yet generally available.

MCP Client Configurations

Here are examples of configuring the Salesforce DX MCP Server in various MCP clients.

Claude Code

To configure Claude Code to work with Salesforce DX MCP Server, add this snippet to the .mcp.json file in your project:

json
{
  "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"]
    }
  }
}

Cline

To configure Cline to work with Salesforce DX MCP Server, add this snippet to your Cline cline_mcp_settings.json file:

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

Cursor

To configure Cursor to work with Salesforce DX MCP Server, add this snippet to your Cursor mcp.json file:

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

Other MCP Clients

For these other clients, refer to their documentation for adding MCP servers and follow the same pattern as in the preceding examples to configure the Salesforce DX MCP Server:

Available Flags for the "args" Option

These are the flags that you can pass to the args option.

Flag NameDescriptionRequired?Notes
--allow-non-ga-toolsBoolean flag to allow the DX MCP Server to use both the generally available (GA) and NON-GA tools that are in the toolsets or tools you specify.NoBy default, the DX MCP server uses only the tools marked GA.
--debugBoolean flag that requests that the DX MCP Server print debug logs.NoDebug mode is disabled by default. NOTE: Not all MCP clients expose MCP logs, so this flag might not work for all IDEs.
--dynamic-tools(experimental) Boolean flag that enables dynamic tool discovery and loading. When specified, the DX MCP server starts with a minimal set of core tools and loads new tools as needed.NoThis flag is useful for reducing the initial context size and improving LLM performance. Dynamic tool discovery is disabled by default. NOTE: This feature works in VSCode and Cline but may not work in other environments.
--no-telemetryBoolean flag to disable telemetry, the automatic collection of data for monitoring and analysis.NoTelemetry is enabled by default, so specify this flag to disable it.
--orgsOne or more orgs that you've locally authorized.YesYou must specify at least one org. See Configure Orgs for the values you can pass to this flag.
--toolsIndividual tool names that you want to enable.NoYou can use this flag in combination with the --toolsets flag. For example, you can enable all tools in one toolset, and just one tool in a different toolset.
--toolsetsSets of tools, based on functionality, that you want to enable.NoSet to "all" to enable every tool in every toolset. See Configure Toolsets for the values you can pass to this flag.

Configure Orgs

The Salesforce MCP tools require an org, and so you must include the required --orgs flag to specify at least one authorized org when you configure the MCP server. Separate multiple values with commas.

You must explicitly authorize the orgs on your computer before the MCP server can access them. Use the org login web Salesforce CLI command or the VS Code SFDX: Authorize an Org command from the command palette.

These are the available values for the --orgs flag:

--orgs ValueDescription
ALLOW_ALL_ORGSAllow access to all authorized orgs. Use this value with caution.
DEFAULT_TARGET_DEV_HUBAllow access to your default Dev Hub org. If you've set a local default Dev Hub org in your DX project, the MCP server uses it. If not, the server uses a globally-set default Dev Hub org.
DEFAULT_TARGET_ORGAllow access to your default org. If you've set a local default org in your DX project, the MCP server uses it. If not, the server uses a globally-set default org.
<username or alias>Allow access to a specific org by specifying its username or alias.

[!NOTE] The DEFAULT_TARGET_ORG and DEFAULT_TARGET_DEV_HUB tokens are resolved dynamically on every tool call, not pinned when the server starts. They track whatever the default org resolves to for the working directory a tool operates in, so switching your default org (or working in a directory with a different local default) changes which org these tokens allow. This mirrors how the sf CLI resolves the default target-org when you don't pass --target-org. If you want to lock the server to a fixed set of orgs regardless of the current default, pass explicit usernames or aliases to --orgs instead of the DEFAULT_TARGET_* tokens.

Configure Toolsets

The Salesforce DX MCP Server supports toolsets—a way to selectively enable different groups of MCP tools based on your needs. This allows you to run the MCP server with only the tools you require, which in turn reduces the LLM context.

Use the --toolsets flag to specify the toolsets when you configure the Salesforce DX MCP Server. Separate multiple toolsets with commas.

These are the available toolsets.

ToolsetDescriptionSee Tool List
allEnables all available tools from all toolsets. We recommend that you configure only the toolsets you’re going to use, rather than all of them with this value. The DX MCP Server includes over 60 MCP tools, so enabling them all in your MCP client can overwhelm the LLM context.N/A
aura-expertsTools that provide Aura component analysis, blueprinting, and migration expertise..Link
code-analysisTools for static analysis of your code using Salesforce Code Analyzer.Link
coreCore set of DX MCP tools. This toolset is always enabled.Link
dataTools to manage the data in your org, such as listing all accounts.Link
devopsTools to securely and autonomously read, manage, and operate DevOps Center resources.Link
enrichmentTools to enrich metadata components in your DX project.Link
experts-validationTools to validate and score LWC components for production readiness across accessibility, security, and best practices.Link
lwc-expertsTools to assist with Lightning Web Component (LWC) development, testing, optimization, and best practices.Link
metadataTools to deploy and retrieve metadata to and from your org and your DX project.Link
mobileTools for mobile development and capabilities.Link
mobile-coreA subset of tools from the mobile toolset focused on essential mobile capabilities.Link
orgsTools to manage your authorized orgs.Link
scale-productsTools for detecting and fixing Apex performance.Link
testingTools to test your code and features.Link
usersTools to manage org users, such as assigning a permission set.Link

Configure Tools

The Salesforce DX MCP Server also supports registering individual tools. This can be used in combination with toolsets to further fine-tune registered tools.

Use the --tools flag to enable specific tools when you configure the Salesforce DX MCP Server. Separate multiple tools with commas. The --tools flag is optional.

The following sections list all the tools that are included in a specific toolset.

[!NOTE] The tools marked NON-GA are not yet generally available. Specify the --allow-non-ga-tools flag to use them.

Aura Experts Toolset

For complete documentation, see Use the Aura-to-LWC Migration Tools in the Lightning Web Components Developer Guide.

  • create_aura_blueprint_draft (GA) - Creates a comprehensive Product Requirements Document (PRD) blueprint for Aura component migration. Analyzes Aura component files and generates framework-agnostic specifications suitable for LWC migration, including business requirements, technical patterns, and migration guidelines.
  • enhance_aura_blueprint_draft (GA) - Enhances an existing draft PRD with expert analysis and unknown resolution. Takes a draft blueprint and applies specialized Aura expert knowledge to resolve dependencies, add technical insights, and improve the migration specifications for better LWC implementation guidance.
  • orchestrate_aura_migration (GA) - Orchestrates the complete Aura to LWC migration workflow. Provides end-to-end guidance for the entire migration process, from initial analysis through final implementation, including best practices, tooling recommendations, and quality assurance steps.
  • transition_prd_to_lwc (GA) - Provides migration bridge guidance for creating LWC components from Aura specifications. Takes the enhanced PRD and generates specific implementation guidance, platform service mappings, and step-by-step instructions for building the equivalent LWC component.

Code Analysis Toolset

For complete documentation, see Use MCP Tools to Analyze Your Code in the Salesforce Code Analyzer Developer Guide.

  • create-custom-rule (NON-GA) - Creates a custom XPath-based PMD rule from a provided Apex code sample.
  • describe_code_analyzer_rule (GA) - Gets the description of a Code Analyzer rule.
  • generate_xpath_prompt (NON-GA) - Builds the prompt that guides XPath authoring from AST context. Invoked when creating an XPath-based PMD custom rule.
  • list_code_analyzer_rules (GA) - Selects Code Analyzer rules based on a number of criteria.
  • query_code_analyzer_results (GA) - Queries a Code Analyzer results JSON file and returns filtered violations. Supports filters such as severity, category/tag, engine, rule, and file name, plus top-N and sorting. Use this after running run_code_analyzer to read the generated results file. After completion, this tool will summarize and explain the filtered results to the user.
  • run_code_analyzer (GA) - Performs a static analysis against code. This tool can validate that code conforms to best practices, check for security vulnerabilities, and identify possible performance issues. It returns a JSON containing the absolute path to a results file if such a file was created and a string indicating the overall success or failure of the operation.

Core Toolset (always enabled)

For sample prompts that invoke the core DX MCP tools, see Use the Core Salesforce DX MCP Tools in the Salesforce DX Developer Guide.

  • get_username (GA) - Determines the appropriate username or alias for Salesforce operations, handling both default orgs and Dev Hubs.
  • resume_tool_operation (GA) - Resumes a long-running operation that wasn't completed by another tool.

Data Toolset

For sample prompts that invoke the core DX MCP tools, see Use the Core Salesforce DX MCP Tools in the Salesforce DX Developer Guide.

  • run_soql_query (GA) - Runs a SOQL query against a Salesforce org.

DevOps Center Toolset

For complete documentation, see Merge Conflict Resolution with DevOps Center MCP Tools (Managed Package) in Salesforce Help.

  • check_devops_center_commit_status (GA) - Check the current status of a work item committed to DevOps Center.
  • checkout_devops_center_work_item (GA) - Checks out the branch associated with a selected work item by name.
  • commit_devops_center_work_item (GA) - Commit SFDX project changes and register the commit SHA in DevOps Center.
  • create_devops_center_pull_request (GA) - Commit local changes to a DevOps Center work item’s feature branch.
  • detect_devops_center_merge_conflict (GA) - Detects merge conflicts for a selected work item or in a given source branch.
  • list_devops_center_projects (GA) - List all DevOps Center projects in a specific org.
  • list_devops_center_work_items (GA) - List all the work items for a specific DevOps Center project.
  • create_devops_center_work_item (GA) - Creates a new DevOps Center work item in the selected project.
  • update_devops_center_work_item_status (GA) - Sets a work item’s status to In Progress or Ready to Promote.
  • promote_devops_center_work_item (GA) - Promote an approved work item to the next stage in the DevOps Center pipeline.
  • resolve_devops_center_deployment_failure (GA) - Diagnose and resolve deployment failures.
  • resolve_devops_center_merge_conflict (GA) - Apply a selected resolution method to a merge conflict.

Enrichment Toolset

  • enrich_metadata (NON-GA) - Enrich metadata from your org in your DX project.

Lightning Web Components (LWC) Experts Toolset

For complete documentation, see Use DX MCP Tools for LWC in the Lightning Web Components Developer Guide.

Component Development

  • create_lwc_component_from_prd (GA) - Creates complete LWC components from PRD specifications with proper structure. and best practices
  • create_lwc_jest_tests (GA) - Generates Jest test suites for LWC components with coverage and mocking.
  • review_lwc_jest_tests (GA) - Reviews and validates Jest test implementations for LWC components.

Development Guidelines

  • create_lightning_type (GA) - Provides guidance for creating Custom Lightning Types (CLT) for Salesforce applications, agent actions, Lightning web components, and Lightning Platform integrations.
  • explore_slds_blueprints (NON-GA) - Retrieves SLDS blueprint specifications by name, category, Lightning component, CSS class, or styling hook.
  • guide_design_general (GA) - Provides SLDS guidelines and best practices for Lightning Web Components with accessibility, responsive design, and component usage patterns.
  • guide_component_accessibility (GA) - Provides accessibility guidelines and testing instructions for LWC components.
  • guide_lwc_best_practices (GA) - Offers LWC development best practices and coding standards guidance.
  • guide_lwc_development (GA) - Provides LWC development workflow and implementation guidelines.
  • guide_lwc_rtl_support (GA) - Provides Right-to-Left (RTL) internationalization support and RTL development guidance.
  • guide_lws_security (GA) - Provides security analysis in accordance with product security guidelines and Lightning Web Security guidelines.
  • guide_slds_blueprints (NON-GA) - Provides comprehensive SLDS blueprints guidelines, reference documentation, and a complete index of all available blueprints by category.
  • guide_utam_generation (NON-GA) - Provides UI Test Automation Model (UTAM) Page Object generation guidelines and best practices.
  • lwc-doc-error (GA) - Retrieves information about LWC error messages, including static guidance for resolving the issue based on the error code.
  • reference_lwc_compilation_error (GA) - References LWC compilation errors by looking up error codes against a knowledge base of documented error patterns, causes, and fixes.
  • guide_slds_styling (NON-GA) - Retrieves SLDS styling hooks guidance and reference documentation.
  • explore_slds_styling (NON-GA) - Search and explore SLDS styling hooks with support for exact lookup, fuzzy matching, prefix search, and wildcard patterns.
  • guide_lbc_usage (GA) - Provides an index of available Lightning Base Components with short descriptions, helping developers identify which components suit their use case.
  • explore_lbc_components (GA) - Given a list of Lightning Base Component names, returns full API documentation from markdown knowledge files.

Lightning Data Service (LDS) Tools

  • create_lds_graphql_mutation_query (GA) - Provides guidance for creating GraphQL mutation queries.
  • create_lds_graphql_read_query (GA) - Create GraphQL read queries for LDS.
  • explore_lds_uiapi (GA) - Explores and documents Lightning Design System UI API capabilities.
  • fetch_lds_graphql_schema (GA) - Fetch GraphQL schema structure for LDS.
  • guide_lds_data_consistency (GA) - Provides data consistency patterns and best practices for LDS components.
  • guide_lds_development (GA) - Provides LDS development guidelines and component integration.
  • guide_lds_graphql (GA) - Provides LDS GraphQL usage patterns and guidelines.
  • guide_lds_referential_integrity (GA) - Provides referential integrity patterns for LDS data management.
  • orchestrate_lds_data_requirements (GA) - Provides step-by-step guidance for analyzing and clarifying LDS data requirements to produce PRD-ready specifications.
  • test_lds_graphql_query (GA) - Tests a GraphQL query against a connected Salesforce org and returns the result. This tool is a sub-tool of the GraphQL query creation tools and must only be called as part of their workflows.

Migration & Integration Tools

  • guide_figma_to_lwc_conversion (GA) - Converts Figma designs to LWC component specifications.
  • guide_lo_migration (GA) - Provides guidance to convert a Lightning Out (beta) app into a Lightning Out 2.0 app.
  • run_lwc_accessibility_jest_tests (GA) - Provides accessibility testing utilities and Jest integration for LWC components.
  • verify_aura_migration_completeness (GA) - Provides Aura to LWC migration completeness checklist and validation.

Workflow Tools

  • orchestrate_lwc_component_creation (GA) - Provides guidance for the entire Aura-to-LWC migration process.
  • orchestrate_lwc_component_optimization (GA) - Provides performance optimization and best practices for LWC components.
  • orchestrate_lwc_component_testing (GA) - Provides comprehensive testing workflow and test generation guidance.
  • orchestrate_lwc_slds2_uplift (NON-GA) - Provides migration guidance for upgrading to SLDS 2.

Experts Validation Toolset

  • validate_and_optimize (GA) - Returns a validation runbook that instructs the agent to run a suite of validators (accessibility, security, best practices, etc.), produce SARIF issues, and score results
  • score_issues (GA) - Computes a readiness score (0-100) and quality grade (draft, prototype, review-for-production) from SARIF issues

Metadata Toolset

For sample prompts that invoke the core DX MCP tools, see Use the Core Salesforce DX MCP Tools in the Salesforce DX Developer Guide.

  • deploy_metadata (GA) - Deploys metadata from your DX project to an org.
  • retrieve_metadata (GA) - Retrieves metadata from your org to your DX project.

Mobile Toolset

For complete documentation, see Use the mobile Toolset in the Mobile and Offline Developer Guide.

  • create_mobile_lwc_app_review (GA) - Provides TypeScript API documentation for Salesforce LWC App Review Service, offering expert guidance for implementing app review features in LWC components.
  • create_mobile_lwc_ar_space_capture (GA) - Provides TypeScript API documentation for Salesforce LWC AR Space Capture, offering expert guidance for implementing AR space capture features in LWC components.
  • create_mobile_lwc_barcode_scanner (GA) - Provides TypeScript API documentation for Salesforce LWC Barcode Scanner, offering expert guidance for implementing barcode scanning features in LWC components.
  • create_mobile_lwc_biometrics (GA) - Provides TypeScript API documentation for Salesforce LWC Biometrics Service, offering expert guidance for implementing biometric authentication features in LWC components.
  • create_mobile_lwc_calendar (GA) - Provides TypeScript API documentation for Salesforce LWC Calendar Service, offering expert guidance for implementing calendar integration features in LWC components.
  • create_mobile_lwc_contacts (GA) - Provides TypeScript API documentation for Salesforce LWC Contacts Service, offering expert guidance for implementing contacts management features in LWC components.
  • create_mobile_lwc_document_scanner (GA) - Provides TypeScript API documentation for Salesforce LWC Document Scanner, offering expert guidance for implementing document scanning features in LWC components.
  • create_mobile_lwc_geofencing (GA) - Provides TypeScript API documentation for Salesforce LWC Geofencing Service, offering expert guidance for implementing geofencing features in LWC components.
  • create_mobile_lwc_location (GA) - Provides TypeScript API documentation for Salesforce LWC Location Service, offering expert guidance for implementing location services in LWC components.
  • create_mobile_lwc_nfc (GA) - Provides TypeScript API documentation for Salesforce LWC NFC Service, offering expert guidance for implementing NFC features in LWC components.
  • create_mobile_lwc_payments - Provides TypeScript API documentation for Salesforce LWC Payments Service, offering expert guidance for implementing payment processing features in LWC components.
  • get_mobile_lwc_offline_analysis (GA) - Analyzes LWC components for mobile-specific issues and provides detailed recommendations for mobile offline compatibility and performance improvements.
  • get_mobile_lwc_offline_guidance (GA) - Provides structured review instructions to detect and remediate mobile offline code violations in LWC components for Salesforce mobile apps.

Mobile-core Toolset

For complete documentation, see Use the mobile-core Toolset in the Mobile and Offline Developer Guide.

  • create_mobile_lwc_barcode_scanner (GA) - Provides TypeScript API documentation for Salesforce LWC Barcode Scanner, offering expert guidance for implementing barcode scanning features in LWC components.
  • create_mobile_lwc_biometrics (GA) - Provides TypeScript API documentation for Salesforce LWC Biometrics Service, offering expert guidance for implementing biometric authentication features in LWC components.
  • create_mobile_lwc_location (GA) - Provides TypeScript API documentation for Salesforce LWC Location Service, offering expert guidance for implementing location services in LWC components.
  • get_mobile_lwc_offline_analysis (GA) - Analyzes LWC components for mobile-specific issues and provides detailed recommendations for mobile offline compatibility and performance improvements.
  • get_mobile_lwc_offline_guidance (GA) - Provides structured review instructions to detect and remediate mobile offline code violations in LWC components for Salesforce mobile apps.

Orgs Toolset

For sample prompts that invoke the core DX MCP tools, see Use the Core Salesforce DX MCP Tools in the Salesforce DX Developer Guide.

  • create_org_snapshot (NON-GA) - Create a scratch org snapshot.
  • create_scratch_org (NON-GA) - Create a scratch org.
  • delete_org (NON-GA) - Delete a locally-authorized Salesforce scratch org or sandbox.
  • list_all_orgs (GA) - List all configured Salesforce orgs, with optional connection status checking.
  • open_org (NON-GA) - Open an org in a browser.

Scale Products Toolset

For complete documentation, see the README in the mcp-provider-scale-products subdirectory.

  • scan_apex_class_for_antipatterns (GA) - Analyzes Apex class files for performance antipatterns and provides recommendations for fixing them.

Testing Toolset

For sample prompts that invoke the core DX MCP tools, see Use the Core Salesforce DX MCP Tools in the Salesforce DX Developer Guide.

  • run_agent_test (GA) - Executes agent tests in your org.
  • run_apex_test (GA) - Executes Apex tests in your org.

Users Toolset

For sample prompts that invoke the core DX MCP tools, see Use the Core Salesforce DX MCP Tools in the Salesforce DX Developer Guide.

  • assign_permission_set (GA) - Assigns a permission set to the user or on behalf of another user.

安装

TypingMind
前提条件:

Node.js 18+

{
  "mcpServers": {
    "salesforce": {
      "command": "npx",
      "args": [
        "-y",
        "@salesforce/mcp",
        "--orgs",
        "DEFAULT_TARGET_ORG",
        "--toolsets",
        "all"
      ]
    }
  }
}

将 Salesforce MCP 与多个 AI 模型配合使用

TypingMind 在工作区级别连接 MCP 工具,因此连接 Salesforce 后,您就可以在 TypingMind 中搭配不同的 AI 模型使用,无需为每个模型单独设置。 此 MCP 通过您设备上的 TypingMind MCP 连接器在本地运行。

本地连接器设置指南

如果 MCP 服务器需要访问您电脑上的本地文件、应用或私有资源,请选择此方式。

1

打开 MCP 设置

在 TypingMind 中,依次前往“设置”、“高级设置”和“模型上下文协议”,然后选择“设置连接器”。

  1. 在您的浏览器中打开 TypingMind。
  2. 点击“设置”图标。
  3. 进入“高级设置”。
  4. 打开“模型上下文协议”部分。
  5. 点击“设置连接器”,然后选择“此设备”。
TypingMind MCP 连接器设置界面,已选择“此设备”
2

运行连接器命令

选择“此设备”,从 TypingMind 复制命令并在终端中运行。使用 MCP 时,请保持该进程运行。

  1. 复制 TypingMind 显示的设置命令。
  2. 在 macOS 上打开“终端”,或在 Windows 上打开 Windows Terminal。
  3. 粘贴并运行命令。
  4. 如果终端询问您是否继续,请确认安装软件包。
  5. 使用 MCP 工具时,请保持终端窗口及其中的进程运行。
3

将 Salesforce 添加为服务器

当连接器状态为“就绪”时,点击“编辑服务器”,然后粘贴 MCP 服务器配置。

  1. 等待连接器状态显示为“就绪”。
  2. 点击“编辑服务器”。
  3. 粘贴 Salesforce MCP 服务器配置。
  4. 保存服务器列表。
  5. 如需确认连接器是否仍处于就绪状态,请刷新。
TypingMind MCP 设置界面,显示正在运行的服务器和“编辑服务器”按钮
{
  "mcpServers": {
    "salesforce": {
      "command": "npx",
      "args": [
        "-y",
        "@salesforce/mcp"
      ]
    }
  }
}
4

在不同模型中使用同一连接

保存服务器列表,打开“插件”,启用 Salesforce MCP 工具,然后在 TypingMind 中选择任意受支持的 AI 模型,即可在聊天中使用这些工具,或将其分配给智能体。

  1. 在 TypingMind 中打开“插件”页面。
  2. 启用 Salesforce MCP 工具。
  3. 开始聊天并选择您想使用的 AI 模型。
  4. 在聊天中使用 MCP 工具,或将其分配给 AI 智能体。
  5. 根据需要随时切换到其他 AI 模型,无需重新连接 MCP。
在 TypingMind 聊天中使用已启用的 MCP 工具和选定的 AI 模型
您能使用 Salesforce 帮我完成这项任务吗?
Salesforce
当然。我已阅读。
以下是我使用 Salesforce 得到的结果。

常见问题

Salesforce MCP 服务器有什么用途?

Salesforce 是一个 MCP 服务器,可让兼容的 AI 客户端连接外部工具并获取上下文。在 TypingMind 中,只需添加一次此 MCP 服务器,即可在您的 AI 工作区中使用其工具。

可以在 TypingMind 中让多个 AI 模型使用 Salesforce MCP 吗?

可以。TypingMind 在工作区层面连接 MCP 工具,因此您可以让 Claude、ChatGPT、Gemini 等不同 AI 模型,或您在 TypingMind 中配置的其他模型使用 Salesforce,而无需为每个模型单独配置 MCP 服务器。

为什么在 TypingMind 中使用 Salesforce MCP?

TypingMind 将多个 AI 模型、提示词、插件、AI 智能体、API 密钥和 MCP 工具整合到同一个工作区中,是优秀的大语言模型聊天前端之一。连接 Salesforce 后,您可以在偏好的不同模型中使用其 MCP 工具,同时在 TypingMind 中井然有序地管理聊天工作流程。

如何将 Salesforce MCP 连接到 TypingMind?

Salesforce 通过 TypingMind 本地 MCP 连接器运行。当 MCP 服务器需要访问您计算机上的本地文件、桌面应用、命令行工具或私有资源时,这种方式最合适。

Salesforce MCP 在 TypingMind 中提供哪些工具?

Salesforce 提供 MCP 功能,您可以在 TypingMind 的插件页面启用这些功能,然后在聊天中使用,或将其分配给 AI 智能体。

使用 Salesforce MCP 需要向 TypingMind 提供我的 API 密钥吗?

不需要。TypingMind 采用本地优先的设计,让您自行掌控模型提供商、API 密钥、提示词和 MCP 配置。如果 Salesforce 需要身份验证,请在创建连接时,为该 MCP 服务器添加所需的请求头、OAuth 设置或本地配置。

相关 MCP 服务器

查看全部

立即创建您自己的 AI 工作区

订阅我们的电子简报,获取新功能和后续赠奖活动的通知 👇