Appearance
Exercise 3: Create a Custom MCP Server
In this exercise, you'll create your own Custom MCP Server in Salesforce Setup, expose Flows to verify a user's identity as callable MCP tools, and test them in the Headless 360 Playground.
Step 1: Create the Custom MCP Server
From Setup, in the Quick Find box, enter
MCP Servers, then select MCP Servers.Click the Salesforce Servers tab.
Click Create Salesforce MCP Server.
Fill in the following fields:
Field Value Label Customer VerificationName CustomerVerification(auto-filled)Description A custom MCP server that runs customer verification flows.Click Create.
Step 2: Add Flow Tools
Click Add Server Assets and select Add Tools from the dropdown.
In the Type dropdown, select Flows.

Search for
verifand click Add Tool for these two flows:- Send Verification Code
- Verify Code
Click Done.
Step 3: Activate and Copy the Server URL
Click Activate to make the server available to MCP clients.

Copy the Server URL for the next step — it should be:
https://api.salesforce.com/platform/mcp/v1/custom/CustomerVerification
Step 4: Add the Custom Server to the Playground
Open the Headless 360 Playground and navigate to the Servers tab.
Paste the Server URL you copied above in the URL field
Click Add.
Click Test to verify the server is reachable and inspect the Flow tools it exposes.
Step 5: Test the custom server
Navigate to the Chat tab.
Add the two tools from your CustomerVerification custom MCP server to the chat context.
Copy your usename from the top right of the playground app.
Run the following prompt by replacing
MY_USERNAMEwith your username:txtVerify user MY_USERNAMEClick the pin icon next to the MCP tool call to open the Tool Inspector.

Click the Response tab in the Tool Inspector panel.
Copy the value of the
authenticationKeyfield.Check your inbox for an email labelled "Your Chatbot Verification Code" and retrieve the 6-digit code.
Run the following prompt by replacing:
MY_CODEwith the code that you just retrieved by emailMY_AUTHENTICATION_KEYwith they key that you copied in the tool inspector
txtVerify my code: MY_CODE Here's my authentication key: MY_AUTHENTICATION_KEYIf everything goes well, this is the output that you should obtain:

Summary
In this exercise, you created a Custom MCP Server to verify the identity of a user thanks to flows. You saw how to call this business logic from the Headless 360 Playground.
You now have all three servers working together — live data access, metadata context, and custom business logic — through a single natural language interface powered by Salesforce Hosted MCPs.