# MCP client OAuth setup and headless launch governance

*AIforce Foundations Study Guide · AIforce and Headless Toolkit · Last updated December 2, 2026 · https://www.certifyforce.com/study-guide/aiforce-foundations/aiforce-and-headless-toolkit/mcp-client-oauth-setup-and-headless-launch-governance*

What must be in place before an external AI client such as Claude or ChatGPT can use Salesforce-hosted MCP servers: enabled servers, an External Client App with the right callback, scopes and security settings, the correct server URL and optional hardening. Then the governance a team needs before launching a headless use case.

- Certification: Salesforce AIforce Foundations
- Exam section: AIforce and Headless Toolkit
- Study guide: https://www.certifyforce.com/study-guide/aiforce-foundations

**Official exam objective:**

> Identify the options, prerequisites, and connectivity requirements for enabling Salesforce capabilities across external AI applications and interfaces.

## What the exam expects

- Recognize that Salesforce-hosted MCP servers must be turned on before any client can use them.
- Identify the one-time org setup for an MCP client: who performs it, the External Client App, the client-specific callback URL, OAuth scopes and security settings.
- Match the server URL to the org type, such as production or sandbox.
- Describe optional hardening and a safe testing path before connecting a full AI client.
- Explain the governance a headless use case needs before launch: documentation, monitoring, incident response and a plan to stop issues.
- Key terms: **External Client App (ECA)** (registers the MCP client as an OAuth application in Salesforce); **callback URL** (where Salesforce returns the user after authorization, set per client); **OAuth scopes** (the permissions the client gets on behalf of authenticated users); **consumer key** (the ECA credential the client is configured with); **headless use case** (work that reaches Salesforce from outside its interface, often across several systems).

## Key facts

| Fact | Detail | Source |
|---|---|---|
| Default server state | Disabled until an admin enables it | [Activate MCP Servers](https://developer.salesforce.com/docs/platform/hosted-mcp-servers/guide/activate-mcp-servers.html) |
| Who sets up the ECA | System Administrator or equivalent | [Set Up Your Org](https://developer.salesforce.com/docs/platform/hosted-mcp-servers/guide/setup-overview.html) |
| Client registration | External Client App; Connected Apps unsupported | [Create an External Client App](https://developer.salesforce.com/docs/platform/hosted-mcp-servers/guide/create-external-client-app.html) |
| Callback URL | Specific to the MCP client | [Set Up Your Org](https://developer.salesforce.com/docs/platform/hosted-mcp-servers/guide/setup-overview.html) |
| OAuth scopes | Permissions on behalf of authenticated users | [Set Up Your Org](https://developer.salesforce.com/docs/platform/hosted-mcp-servers/guide/setup-overview.html) |
| Security settings | PKCE and JWT-based tokens | [Set Up Your Org](https://developer.salesforce.com/docs/platform/hosted-mcp-servers/guide/setup-overview.html) |
| Server URL | Differs by org type, such as production vs sandbox | [Find Your Server URL](https://developer.salesforce.com/docs/platform/hosted-mcp-servers/guide/server-urls.html) |
| Before launch | Documented steps and permissions; per-use-case monitoring and incident plan | [Security and Governance in Headless](https://help.salesforce.com/s/articleView?id=platform.aif_governance.htm&type=5&language=en_US) |
| Monitoring reach | Salesforce monitoring stops at the Salesforce boundary | [Security and Governance in Headless](https://help.salesforce.com/s/articleView?id=platform.aif_governance.htm&type=5&language=en_US) |

## Check yourself

- When a newly created External Client App doesn't work with the client straight away, what is the likely reason?
- Why does Salesforce describe the org's MCP authentication setup as one-time?
- When refresh-token rotation is turned on for the External Client App, what happens to older tokens?

## Sources

- [Set Up Your Org](https://developer.salesforce.com/docs/platform/hosted-mcp-servers/guide/setup-overview.html)
- [Activate MCP Servers](https://developer.salesforce.com/docs/platform/hosted-mcp-servers/guide/activate-mcp-servers.html)
- [Create an External Client App](https://developer.salesforce.com/docs/platform/hosted-mcp-servers/guide/create-external-client-app.html)
- [Connecting an MCP Client](https://developer.salesforce.com/docs/platform/hosted-mcp-servers/guide/client-connection-overview.html)
- [Find Your Server URL](https://developer.salesforce.com/docs/platform/hosted-mcp-servers/guide/server-urls.html)
- [SObject Reads MCP Server](https://developer.salesforce.com/docs/platform/hosted-mcp-servers/references/reference/sobject-reads.html)
- [Security and Governance in Headless Experiences](https://help.salesforce.com/s/articleView?id=platform.aif_governance.htm&type=5&language=en_US)
- [Build a Secure Headless Experience](https://trailhead.salesforce.com/content/learn/modules/secure-and-trusted-headless-foundation/build-a-secure-headless-experience)

## About the full unit

The "Core concepts", "Exam traps" and "Worked scenario" sections of this unit and reading progress are included in the full study guide. The separate practice exams option includes the reviewed question bank and timed mock exams. The bundle includes both where available. See [current options and prices](https://www.certifyforce.com/pricing).
