Salesforce MCP 解决方案与 Agentforce Vibes 扩展指南

MCP 完整指南:Model Context Protocol 五步交互流程、六大 Salesforce MCP 方案详细表(Heroku/MuleSoft×2/Salesforce×3 含示例 Prompt)、Agentforce Vibes Extension(CodeGen+xGen-Code AI 模型+自然语言编码+MCP Client+Skills 系统三大 Skill 详解)。...

📅 2026/7/22 ✍️ ponybai 🏷️ agentforce, salesforce, ai

MCP Solutions for Developers

s270

Model Context Protocol (MCP) 是一个开放标准,消除了为每个用例构建自定义集成的复杂性。通过预构建的 MCP Server,开发者可以立即将 AI 应用连接到 Salesforce、Heroku 和 MuleSoft 的功能和服务。

MCP 五步交互流程

  1. 从你的 AI 应用提问或请求与连接服务相关的操作
  2. AI 应用连接到对应的 MCP Server
  3. MCP Server 安全地在目标平台上处理请求
  4. 数据或操作结果返回给 AI 应用
  5. AI 应用展示信息或确认完成的操作

这种方法通过提供对企业数据和服务的即时访问,无需学习平台特定的 API、CLI 或认证流程,彻底改变了开发方式。参见 Introducing MCP Support Across Salesforce

How MCP Works & Salesforce 六大方案

s271
平台MCP 方案描述示例 Prompt
HerokuHeroku MCP ServerLLM 与 Heroku Platform 无缝交互"List all my Heroku apps" / "Deploy the HerokuRules project"
MuleSoftAnypoint Connector for MCP通过 MCP Connector 连接 LLM 应用与你的 API"Get all approved vendors with product categories"
MuleSoftMuleSoft MCP ServerLLM 与 MuleSoft Anypoint Platform 交互"Create a Mule project that syncs Salesforce opps to NetSuite"
SalesforceSalesforce DX MCP Server (Beta)自然语言执行复杂 Org 命令,无需编写代码或查询"Query my DreamHouse org" / "Run agent tests in my org"
SalesforceAgentforce Vibes MCP Client在 Agentforce Vibes 中使用 Salesforce DX MCP Server同上
SalesforceHosted MCP ServersAI 助手安全访问 Salesforce 数据进行日常业务任务"Which fields are required to create an Account?" / "Get accounts with revenue over 1B"

Agentforce Vibes Extension

s272

Agentforce Vibes 是一个 AI 驱动的开发者工具,以 VS Code 扩展形式提供。基于 Salesforce 自有安全 AI 模型 CodeGenxGen-Code 构建。

核心功能

  • 自然语言生成代码:用自然语言描述需求,Vibes 自动生成代码
  • 自动代码补全:输入时自动建议代码补全
  • MCP Client:作为 MCP Client 连接 Salesforce DX MCP Server——用自然语言查询 Org、运行 Agent 测试
  • Skills 系统:模块化指令集(developing-agentforce / testing-agentforce / observing-agentforce),按需加载不占用上下文,支持构建/修改/调试/部署 Agentforce Agent

获取方式:包含在 Salesforce Extension Pack、Salesforce Extension Pack (Expanded) 和 Agentforce Vibes IDE 中。VS Code 和 Open VSX 市场均可安装。

Skills 详解

Agent Skills 是指令、脚本和资源的文件夹,Agent 可以发现并用于更准确高效地完成任务。Vibes 的 Skills 系统覆盖完整的 Agentic 开发生命周期:

  • developing-agentforce:构建、修改 Agentforce Agent(Agent Script)
  • testing-agentforce:全面的测试能力——从 Subagent 自动推导 Utterance、Preview 冒烟测试、Trace 分析、迭代修复循环
  • observing-agentforce:Agent 运行时的可观测性监控

sf-skills GitHub 仓库下载 Skills 文件,配合 Cursor、Claude Code 等第三方 AI 工具使用。

MCP 是连接 AI 应用与 Salesforce 生态的开放桥梁。从 Heroku 到 MuleSoft 到 Salesforce,六大方案覆盖全平台。