Salesforce as the MCP Client
Цей контент ще не доступний вашою мовою.
Module 4 of 5 in the chapter MCP, Headless Systems, and Agent Tools, chapter 22 of the Integration Architect course. Each module stands on its own. Previous: Salesforce as the MCP Server · Next: Tools Are a Contract, and an Attack Surface
The question this module answers: When an Agentforce agent calls a tool on someone else’s MCP server, how is that set up, who is the call made as, and what limits shape the design?
The Other Direction
Section titled “The Other Direction”Module 3 was outside AI calling into Salesforce. This is the other way. In Salesforce’s Winter ‘27 words: “Your Agentforce agents can call MCP tools, and external AI clients can call your agents as MCP tools” (The Salesforce Developer’s Guide to the Winter ‘27 Release (opens in a new tab), checked 2026-11-21).
So an agent helping a service rep can call a shipping company’s tracking tool, a payment provider’s refund tool, or your own ERP’s tools, each on its own MCP server. For an integration architect, it’s a callout (chapter 9) where the agent picks which one to make.
Where Servers Are Registered
Section titled “Where Servers Are Registered”Salesforce has two places to register a server, depending on who runs it (MCP for Agentforce (opens in a new tab), Salesforce Help, checked 2026-11-21):
- Third-party servers go in the Agentforce Registry.
- MuleSoft and Salesforce-hosted servers go in API Catalog.
Then you allowlist the tools the agent may use. Each allowed tool becomes an agent action in the asset library, and you add it to the agent “so your agent can call the tool in conversation.”
Notice the allowlist. Registering a server doesn’t give the agent every tool on it. You choose. Choose few (module 5).
Who the Call Is Made As
Section titled “Who the Call Is Made As”When an agent calls an outside server, whose identity does the other side see? Salesforce lets you choose per server: “MCP for Agentforce supports various methods of authentication through Salesforce external credentials, including OAuth client credentials and browser flow (for per-user authentication)” (Considerations for MCP for Agentforce (opens in a new tab), Salesforce Help, checked 2026-11-21).
That’s the choice from chapter 13 again: one identity for the whole org, or the person’s own. The Identity course walks through it, and when to choose each, in MCP, the Door for Tools. Read it before you register your first server.
One lesson here is about dates, not identity. When this course was researched in October 2026, Salesforce’s own pages disagreed: one said user-level sign-in wasn’t supported, another explained how to set it up. By November, they agreed. That’s normal for a feature this new, and it’s why every fact in this chapter carries the day it was checked. Check again before you build.
Limits That Shape the Design
Section titled “Limits That Shape the Design”Salesforce publishes the limits, and each one is a design decision in disguise (same Considerations page).
Tools only. “MCP for Agentforce supports server tools only. MCP server apps, prompts, and resources aren’t supported.” If a server’s value is in its resources or prompts (module 2), an Agentforce agent won’t see them.
One transport. “MCP for Agentforce supports servers that use the Streamable HTTP transport protocol. HTTP+SSE and other protocols are unsupported.” That’s the transport the specification itself is moving away from (module 2): ask any server you plan to use which it speaks.
Two clocks. “The MCP client timeout limit is 60 seconds,” and “The Atlas reasoning engine timeout is 120 seconds,” for example “when multiple servers are called and collectively take longer than 120 seconds to respond.” So a tool must answer in well under a minute, and an agent that calls three slow tools in one turn can run out of time altogether. Long work belongs behind a tool that starts it and another that checks on it, not one tool that waits.
Simple answers. Salesforce advises tools “with simple structured JSON responses.” A deeply nested answer is harder for the agent to read correctly.
Registrations don’t travel. “MCP server registration metadata isn’t packaged… Before you deploy a package in the new environment, register the MCP servers and allowlist the tools the agent uses.” So every environment, sandbox to production, needs the registration and the allowlist done again. Put it in the deployment checklist (chapter 14 module 9), or the agent will reach production with actions that point at nothing.
And the three questions I ask about every callout still apply to a tool call (chapter 19 module 5). Where is a failure logged? What does the person talking to the agent see when the tool is down? Is there a retry, and is the tool safe to call twice?
When the System Has No MCP Server Yet
Section titled “When the System Has No MCP Server Yet”Many systems don’t have an MCP server. Then you have two good options.
Wrap the API you already have. If the system has an API, an agent can already call it as an action through Salesforce’s own tools, such as External Services (chapter 4 module 2). That’s the API path from module 2.
Let the integration layer publish one. “If your integrations are already live in MuleSoft, you can use MCP Bridge to convert your integrations into an MCP Server” (Choose the Right Agentforce Integration Pattern (opens in a new tab), Salesforce, 2026-04-01, checked 2026-11-21). The system APIs from chapter 18 module 4 become tools, with the middle’s contracts and logs behind them.
And once there are many servers, from many vendors, put a gateway in front of them. Salesforce’s own words: “MCP gateways — similar to API gateways, but purpose-built for the protocol,” and “Products like MuleSoft AI Gateway provide centralized governance across all your MCP servers, not just Salesforce” (Salesforce Hosted MCP Servers Are Now Generally Available (opens in a new tab), checked 2026-11-21). That’s chapter 18 module 6, arriving where it was promised.
Beyond the exam. Agentforce as an MCP client isn’t in the Integration Architect exam’s objectives. The exam habits carry over: a callout needs a named or external credential, a timeout, error handling and a retry plan.
What an Architect Decides Here
Section titled “What an Architect Decides Here”- Which outside servers an agent may use, registered in the right place, and which few tools are allowlisted.
- Who each call is made as, chosen per server with the Identity course’s rules.
- Whether each tool fits the limits: tools only, Streamable HTTP, well under 60 seconds, simple answers.
- The deployment step that registers servers and allowlists tools in every environment.
- What to do for systems without a server: an API action, or the integration layer publishing one, behind a gateway when there are many.
Explore
Section titled “Explore”- Considerations for MCP for Agentforce (opens in a new tab), Salesforce Help (checked 2026-11-26): the limits.
- MCP for Agentforce (opens in a new tab), Salesforce Help (checked 2026-11-26): registering servers and adding tools.
- The Salesforce Developer’s Guide to the Winter ‘27 Release (opens in a new tab), Salesforce Developers Blog, 2026-10-09 (checked 2026-11-26): agents calling MCP tools.
- How to Choose the Right Integration Pattern for Agentforce (opens in a new tab), Salesforce, 2026-04-01 (checked 2026-11-26): API, MCP or A2A.
- Salesforce Hosted MCP Servers Are Now Generally Available (opens in a new tab), Salesforce Developers Blog, April 2026 (checked 2026-11-26): gateways in front of many servers.
- MCP, the Door for Tools: the Identity course, who the call is made as.
