什么是 MCP(Model Context Protocol)?
Model Context Protocol 是一个开放标准,消除了在 AI 应用和企业平台之间构建自定义集成的复杂性。开发者无需为每个用例构建定制集成,只需使用现成的 MCP Server 即可即时将 AI 应用连接到 Salesforce、Heroku 和 MuleSoft。这彻底改变了开发方式——无需学习平台特定的 API、CLI 或认证流程即可立即访问。
MCP 工作原理(五步流程)
- 从 AI 应用提问或请求与连接服务相关的操作
- AI 应用连接到对应的 MCP Server
- MCP Server 在目标平台上安全处理请求
- 数据或动作结果返回给 AI 应用
- AI 应用显示信息或确认已完成的操作
Salesforce MCP 六大解决方案
| 解决方案 | 平台 | 示例 |
|---|---|---|
| Heroku MCP Server | Heroku | "List all my Heroku apps" / "Deploy the HerokuRules project" |
| Anypoint Connector for MCP | MuleSoft | "Get a list of all approved vendors, including their product categories" |
| MuleSoft MCP Server | MuleSoft | "Create a Mule project that creates an order in NetSuite every time an opportunity is updated to Closed Won" |
| Salesforce DX MCP Server (Beta) | Salesforce | "Query my DreamHouse org and show me info about my properties" / "Run agent tests in my org" |
| Salesforce Hosted MCP Servers | Salesforce | "Look at the Account object — which fields are required to create an Account?" / "Get all accounts with annual revenue over 1 billion" |
| Agentforce Vibes MCP Client | Salesforce | 在 Vibes Extension 中使用 Salesforce DX MCP Server 查询组织、运行 Agent 测试 |
Agentforce Vibes Extension
Agentforce Vibes Extension 是一个 AI 驱动的开发者工具,作为 VS Code 扩展提供(在 VS Code 和 Open VSX 市场中均可获取)。它是 Salesforce Extension Pack 的组成部分,使用 Salesforce 自有的安全 AI 模型(CodeGen 和 xGen-Code)。
核心能力
- 从自然语言生成代码 —— 输入提示,生成 Apex/LWC/Agent Script
- 自动代码补全 —— 输入时自动建议代码补全
- MCP Client —— 连接 Salesforce DX MCP Server (Beta),用自然语言查询组织和运行 Agent 测试
- Skills 系统 —— 模块化指令集(developing-agentforce / testing-agentforce / observing-agentforce),按需加载,不消耗上下文窗口
MCP 集成流程
自然语言命令 → MCP Server → 组织操作 → 结果返回。开发者无需编写 SOQL 或记忆 CLI 命令,直接用自然语言与 Salesforce 组织交互。
MCP 开放标准将 AI 应用与企业平台连接起来。Salesforce 六大 MCP 解决方案加上 Agentforce Vibes Extension MCP Client,构成了一个强大的 AI 驱动开发工具链。