Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
This article shows you how to configure redirect URIs in your third-party app registration to enable different types of AI clients to connect to your MCP Server. Redirect URIs specify where the Microsoft identity platform sends security tokens after authentication. Configure redirect URIs in platform configurations in the Microsoft Entra admin center. For web and single-page applications, specify a redirect URI manually. For mobile and desktop platforms, select from generated redirect URIs. For more information, see Add a redirect URI to your application.
After you complete the following steps, your chosen AI clients can authenticate and connect to your Power Pages MCP server.
Prerequisites
Before you begin, make sure you have:
- Completed the identity provider setup and configured site settings for MCP
- Access to the Microsoft Entra admin center with permissions to modify app registrations
- Knowledge of which client types you need to support (web, single-page application, or mobile/desktop)
Add platform configuration
Configure the authentication platform for your third-party app registration to specify redirect URIs for your client types.
- Go to the Microsoft Entra admin center.
- Select App registrations and then locate the third-party app you created.
- Select Authentication, and then select Add Redirect URI.
Configure redirect URI for web applications
Use this configuration to access MCP server via apps such as Microsoft 365.
- Select Web from the platform options.
- Enter the redirect URL for your AI client application.
- Select Configure.
Configure redirect URI for single-page applications
Use this configuration to test MCP Server connections from localhost.
- Select Single-page application from the platform options.
- Enter the URL of the single-page application (for example,
www.example.com/callback). - Select Configure.
Note
Use this configuration primarily for testing and development purposes. For production scenarios, use web, mobile, or desktop platform configurations.
Configure redirect URI for mobile and desktop applications
Use this configuration to enable desktop AI clients, such as VS Code extensions or other native applications.
- Select Mobile and desktop applications from the platform options.
- Enter the local loopback address. For example, for VSCode -
http://127.0.0.1:33418. - Select Configure.
Important
Use the loopback address 127.0.0.1 instead of localhost for desktop applications to ensure compatibility across different operating systems and network configurations.
Verify configuration
After adding your platform configurations, verify that the redirect URIs appear in the Authentication settings of your app registration. You can add multiple platform configurations to support different client types simultaneously.
Next steps
After configuring redirect URIs, you can connect AI clients to your MCP Server.