MCP Solutions for Developers
Model Context Protocol (MCP) 是一个开放标准,消除了为每个用例构建自定义集成的复杂性。通过预构建的 MCP Server,开发者可以立即将 AI 应用连接到 Salesforce、Heroku 和 MuleSoft 的功能和服务。
MCP 五步交互流程
- 从你的 AI 应用提问或请求与连接服务相关的操作
- AI 应用连接到对应的 MCP Server
- MCP Server 安全地在目标平台上处理请求
- 数据或操作结果返回给 AI 应用
- AI 应用展示信息或确认完成的操作
这种方法通过提供对企业数据和服务的即时访问,无需学习平台特定的 API、CLI 或认证流程,彻底改变了开发方式。参见 Introducing MCP Support Across Salesforce。
How MCP Works & Salesforce 六大方案
| 平台 | MCP 方案 | 描述 | 示例 Prompt |
|---|---|---|---|
| Heroku | Heroku MCP Server | LLM 与 Heroku Platform 无缝交互 | "List all my Heroku apps" / "Deploy the HerokuRules project" |
| MuleSoft | Anypoint Connector for MCP | 通过 MCP Connector 连接 LLM 应用与你的 API | "Get all approved vendors with product categories" |
| MuleSoft | MuleSoft MCP Server | LLM 与 MuleSoft Anypoint Platform 交互 | "Create a Mule project that syncs Salesforce opps to NetSuite" |
| Salesforce | Salesforce DX MCP Server (Beta) | 自然语言执行复杂 Org 命令,无需编写代码或查询 | "Query my DreamHouse org" / "Run agent tests in my org" |
| Salesforce | Agentforce Vibes MCP Client | 在 Agentforce Vibes 中使用 Salesforce DX MCP Server | 同上 |
| Salesforce | Hosted MCP Servers | AI 助手安全访问 Salesforce 数据进行日常业务任务 | "Which fields are required to create an Account?" / "Get accounts with revenue over 1B" |
Agentforce Vibes Extension
Agentforce Vibes 是一个 AI 驱动的开发者工具,以 VS Code 扩展形式提供。基于 Salesforce 自有安全 AI 模型 CodeGen 和 xGen-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,六大方案覆盖全平台。


