ข้ามไปยังเนื้อหา

MCP and Headless 360 Let Agents From Outside In, as a User

เนื้อหานี้ยังไม่มีในภาษาของคุณ

Module 5 of 6 in the chapter Beyond the Record: Agents, chapter 20 of Securing Salesforce: Sharing and Visibility. Each module stands on its own.

The question this module answers: An AI app outside Salesforce can now call Salesforce directly. Whose access does it use, and how do you keep it to what the job needs?

Every capability, for any authenticated caller

Section titled “Every capability, for any authenticated caller”

Until now, this chapter’s agents lived inside Salesforce. The newest ones don’t. Salesforce’s Summer ‘26 release made it a headline: “Headless 360 makes every major Salesforce capability available as an API, Model Context Protocol (MCP) tool, or CLI command — accessible to any authenticated caller, whether that’s an app, a human, or an autonomous AI agent” (The Salesforce Developer’s Guide to the Summer ‘26 Release (opens in a new tab), Salesforce Developers blog, June 2026, checked 2026-11-26).

So a person can sit in an AI app outside Salesforce, connect it to the org, and ask it questions that it answers with Salesforce data. How that app gets in, and how it proves who it’s working for, is the Identity and Access course’s job (MCP: The Door for Tools). This module asks the sharing question: once it’s in, what can it see?

Salesforce’s answer is clear, and it’s this course’s answer: “Every MCP tool call runs with the same permissions as the user who authorized the connection” (Security Best Practices (opens in a new tab), Hosted MCP Servers, Salesforce Developers, checked 2026-11-26). Then, in Salesforce’s own list:

  • “The agent has the same object-level access (CRUD permissions) as the user.”
  • “The agent respects field-level security restrictions.”
  • “The agent follows record sharing rules.”
  • “All actions are attributed to the named user in audit trails.”

And the line I’d teach from: “if a user cannot perform an action in the Lightning UI or over the REST API, they cannot perform it via MCP” (same page).

That’s good news if your sharing model is right. It’s the same model, and no new hole. But read it the other way round too. Whatever the person can see in the UI, the outside app can now read through an API, in bulk, for whatever the person asks it. A sales rep who can see every account in the region can ask an AI app on their laptop for every account in the region, with phone numbers, and get them. The sharing model allowed it before. Now it takes one sentence.

So the first defense isn’t new at all. It’s everything from Part 2: give each person only the records their job needs. An outside agent can’t see past it. It also never needed to.

Salesforce says to “start with the most restrictive configuration that meets your use case, then expand access only as needed” (Security Best Practices), and offers four ways to narrow it. Each is a decision this course has already taught you to make:

  • Who may connect at all. “Link External Client Apps to specific profiles and permission sets to control which users can access which MCP clients.” It’s module 3’s Agent Access idea, for outside apps: a permission set for the people whose job needs it.
  • Reading, not changing. “The platform/sobject-reads server exposes only read operations, eliminating modification risks entirely.”
  • One question, not every question. With Named Queries, administrators “define specific SOQL queries as reusable APIs, providing controlled data access without exposing the full query surface.” The app can ask that question, and only that one.
  • Your own tools. “Use Apex Invocable Actions, REST endpoints, or Flows to implement precise business logic and conditional access rules beyond what standard permissions can express.” That’s module 4 again: a custom tool has a run context, and it can read past the person if you let it. Same keywords, same modes, same inventory.

And one choice Salesforce makes for you: servers “are disabled by default and require explicit administrative action to enable” (same page). Turning one on is a design decision. Write down which server, for which permission set, and why.

Because every call runs as a named person, Salesforce writes it down like any other API call: “agent actions appear in standard Salesforce API logs with full user attribution. You can identify MCP traffic by filtering for records where API_CLIENT_CATEGORY = SALESFORCE_HOSTED_MCP” (Security Best Practices).

Give that filter a row in chapter 19’s monitoring plan: who’s connecting from outside, how much they pull, and who reads it. And remember chapter 19 module 4: data an outside app pulls through the API has left Salesforce by an exit, and the API exits are the ones you watch yourself.

Agents from outside come in as a user Agents from outside come in as a user. An AI app outside Salesforce, such as Claude, ChatGPT, Cursor or your own, signs in as a person through an external client app, linked to a permission set that decides who may connect. It calls the tools of an MCP server that an admin turned on: a read-only server, Named Queries, or custom tools. Every call runs with the person's access: objects, fields and sharing, the same as in the user interface. Below, the API logs record every call under the person's name, and a filter on the hosted MCP client category finds them. Footnote: if they can't do it in the user interface, they can't do it through MCP; if they can, the app can do it in bulk. {"author": "Steve Simpson", "blueprint": "1.0.0", "builder": "standard 1.60.0", "built": "2026-11-23", "id": "DGM-SVA-AG-06", "rights": "\u00a9 2026 Twinshark LLC. All rights reserved.", "template": "cells 0.5.0", "theme": "stevetecharc 1.5.0"} OUTSIDE SALESFORCE INSIDE THE ORG WHO SEES IT AFTERWARDS OUTSIDE SALESFORCE INSIDE THE ORG An outside AI app Claude, ChatGPT, Cursor or your own External client app linked to a permission set: who may connect An MCP server turned on by an admin: read-only, Named Queries, custom tools The person's access objects, fields, sharing: the same as in the UI API logs every call, under the person's name; filter on the hosted MCP client category recorded signs in as a person calls its tools runs as If they can't do it in the UI, they can't do it through MCP. If they can, the app can do it in bulk. HOW TO READ IT someone can read it later © 2026 Twinshark LLC · stevetecharc.com
Click to enlarge
  • Whether outside agents may connect at all, and which MCP servers are turned on.
  • Which permission set may use each external client app.
  • For each use case, the narrowest tool: read-only, a Named Query, or a custom tool with a known run context.
  • Whether each person’s record access is still right, now that an outside app can ask for all of it at once.
  • The monitoring row for MCP traffic: the filter, the threshold and the reader.

Beyond the exam: what AI changes. This is the change. The org used to be reached through screens Salesforce built, at the speed a person reads. Now any authenticated app can ask for any capability, as fast as it can ask. The sharing model didn’t change. How much of it anyone can use at once did.