Convert your Lightning Out (Beta) host pages to Lightning Out 2.0 with less manual rewriting. The Model Context Protocol (MCP) migration tool in the Salesforce DX MCP server encodes differences between loaders, $Lightning calls, and frontdoor-based authentication. AI-assisted clients connected to the Salesforce DX MCP server propose updated HTML and JavaScript. You still need administrator access for org configuration in Setup.
Where: This change applies to Salesforce developer tooling (Salesforce DX MCP) used with a connected org in Enterprise, Performance, Unlimited, and Developer editions.
When: Availability varies by channel. Confirm pilot or staged availability timeline with your Salesforce representative if the migration tool isn't enabled for all MCP users at general availability for Summer '26.
Who: Administrators need permissions to modify CORS, Session Settings, External Client Applications, and Lightning Out app registration in Setup. Developers configure the MCP client, install or update the Salesforce DX MCP distribution, and use org credentials following your org's security policies.
How: To migrate a Lightning Out (Beta) host page:
- Back up your existing host HTML and JavaScript.
- Enable the Salesforce DX MCP server with the Lightning Out migration tool.
- Provide the External Client Application consumer key, org URL, and optional Lightning Out app ID.
- Paste your legacy Lightning Out (Beta) host source into the MCP client and review the generated markup and scripts.
- In the Lightning Out 2.0 app, recreate the components from your Lightning Out (Beta) Aura app.
- Complete Setup tasks: add host domains under CORS and Trusted Sites for Inline Frames in Session Settings, set OAuth callback URLs that include
frontdoor-url.html, and register the Lightning Out 2.0 app.
For more information, see How Lightning Out 2.0 Compares to Lightning Out (Beta) and Set Up Authentication for Lightning Out 2.0.