This page explains how to register Copilot Studio as an OAuth client in Pricefx and configure a custom connector in Copilot Studio to establish a private connection to your partition via a Remote MCP server.
Create Connection
-
Open browser with Copilot Studio.
-
Click New Tool.
-
In the New Tool menu:
-
Click Custom connector.
-
-
Click New custom connector.
-
Click Create from blank.
-
In the Create from blank menu:
-
Enter Connector name.
-
Click Continue.
-
General Tab
-
In the General Information menu:
-
Set the Icon Background Color (Optional).
-
Provide a connection Description (Optional).
-
Leave the Connect via on-premises data gateway box unchecked.
-
Under Scheme, select HTTPS.
-
Enter
mcp.pricefx.cominto Host. -
In the Base URL, provide the
/root path for API calls. -
Proceed to Security Configuration.
-
Security Tab
-
In the Security menu:
-
Select OAuth 2.0 in Authentication Type.
-
In the OAuth 2.0 menu:
-
Enter
copilot_studiothe Client ID. -
Enter the Client Secret.
-
Specify
https://<domain>/pricefx/<partition>/oauth/authorizein the Authorization URL. -
Specify
https://<domain>/pricefx/<partition>/oauth/tokenin the Token URL. -
Specify
https://<domain>/pricefx/<partition>/oauth/tokenin the Refresh URL. -
Proceed to Definition Configuration.
-
-
Definition Tab
-
In the Definition menu:
-
Click New action.
-
Enter
InvokeServerin the Operation ID. -
In the Request section:
-
Click Import from sample.
-
Select
POSTin the Verb. -
Specify
https://<mcp domain URL>/mcp/<instance base URL>/<partition>in the URL.
MCP Domain URL (https://mcp.pricefx.com/mcp)
-
-
Click Close.
-
In the Response section:
-
Click Add default response.
-
In the Response section:
-
Enter
200in the Name. -
Click Back.
-
-
-
Proceed to Code Configuration.
-
Code Tab
-
Click Create connector.
Redirect URL
-
Go back to Security tab.
-
Copy and safe the generated Redirect URL.
Client Registration
To use OAuth, each client must be registered with a specific client_id. This configuration is defined through the oauthConfiguration Advanced Configuration Option. Multiple clients can be registered within this setting.
-
Login to your Pricefx partition.
-
Go to Administration > Configuration > System Configuration > Advanced Configuration Options.
-
Click Add.
-
In the Add Option menu:
-
Enter
oauthConfigurationinto Name. -
Enter the following JSON code into Value.
For the Redirect URI value, use the retrieved Redirect URL.JSON{ "knownClients": { "copilot_studio": { "redirect_uri": "<Redirect_URL>" } } }
-
-
Click Add.