This page explains how to register Cline as an OAuth client in Pricefx and configure a custom connector in Cline to establish a private connection to your partition via a Remote MCP server.
Prerequisites
-
IntelliJ IDEA (Community Edition)
-
Pricefx Studio Plugin
-
Cline Plugin
Bun Installation Notes
-
Install Bun (Installation Bun).
cline_mcp_settings.json configuration later with the “bunx” version).
Mcp-remote Installation Notes
-
Install mcp-remote globally.
PowerShell# Install globally npm install -g mcp-remote # Then in Cline config, don't use -y flag
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.
JSON{ "knownClients": { "devenv": { "redirect_uri": "http://localhost:3334/oauth/callback" } } }
-
-
Click Add.
|
Property |
Example Value |
Required |
Description |
|---|---|---|---|
|
client_id |
devenv |
Yes |
Client ID example. |
|
redirect_uri |
|
Yes |
Must be configured, as it will be sent by the client. |
Create Connection
-
Open IntelliJ IDEA.
-
Click Cline
.
-
Click Manage MCP Servers
.
-
Click Settings
.
-
Click Configure MCP Servers.
-
Replace the default
cline_mcp_settings.jsonfile with the following code:JSON{ "mcpServers": { "copilotfx-mcp": { "command": "bunx", "args": [ "mcp-remote", "https://<mcp domain URL>/mcp/<instance base URL>/<partition>", "3334", "--host", "localhost", "--static-oauth-client-info", "{\"client_id\": \"devenv\", \"redirect_uri\": \"http://localhost:3334/oauth/callback\"}" ] } } } // ℹ️ `client_id` and `redirect_uri` values correspond to the values entered in the Advanced Configuration Option. // ℹ️ Replace example partition URL with the valid one. -
Save the
cline_mcp_settings.jsonfile. -
Wait for the MCP Client in Cline to reconnect or force restart the IntelliJ IDEA.
If you choose to install npx instead of bun you will need to use the following version of the cline_mcp_settings.json file.
{
"mcpServers": {
"copilotfx-mcp": {
"command": "npx",
"args": [
"-y",
"mcp-remote",
"https://<mcp domain URL>/mcp/<instance base URL>/<partition>",
"3334",
"--host",
"localhost",
"--static-oauth-client-info",
"{\"client_id\": \"devenv\", \"redirect_uri\": \"http://localhost:3334/oauth/callback\"}"
]
}
}
}
// ℹ️ `client_id` and `redirect_uri` values correspond to the values entered in the Advanced Configuration Option.
// ℹ️ Replace example partition URL with the valid one.