Amongst available AI clients available, Codex is well-known by ChatGPT and here’s how you can use to configure with Power Platform MCP Server.
Install Codex on VS Code
One of the first things to do is to install Codex as an extension in Visual Studio Code –
- Look for the below extension and you should see a ChatGPT icon.

- Once this is installed, go to Extensions and you can sign in with your GitHub Pro account.

- It’ll open up a Sign-in page and you’ll need to enter your credentials.

- Make sure you open a Folder in VS Code and also ensure npm is installed by running this command in terminal ‘npm -v‘.

- Next, before you configure the TOML file – make sure you are having powerplatform-mcp installed locally and then configure the TOML file for Codex.
Downloading Power Platform MCP locally and connecting to the MCP
Now that Codex is installed and NPM is installed as well. Let’s first download Power Platform MCP first and then connect it to the Power Platform MCP environment –
- Let’s check if PowerPlatform-MCP is already installed or not by checking its version number.
Below, it says that it didn’t find zsh, means powerplatform-mcp is not installed locally.
- Because I use a Mac, I can do so using Homebrew. You can check alternatively on doing this using Windows and downloading using Powershell.
In case you face permission issues on the device, you can just run the below command –
“sudo npm install -g powerplatform-mcp” and you should see the packages getting downloaded successfully.
- Now, go ahead and configure the Toml file.

- Then, in the TOML file, you can enter the configuration like so –

- And when you try to query in Codex, you’ll see the results come through in the form of answers.

Hope this was useful!
Here are some Power Automate posts you want to check out –
- Select the item based on a key value using Filter Array in Power Automate
- Select values from an array using Select action in a Power Automate Flow
- Blocking Attachment Extensions in Dynamics 365 CRM
- Upgrade Dataverse for Teams Environment to Dataverse Environment
- Showing Sandbox or Non Production Apps in Power App mobile app
- Create a Power Apps Per User Plan Trial | Dataverse environment
- Install On-Premise Gateway from Power Automate or Power Apps | Power Platform
- Co-presence in Power Automate | Multiple users working on a Flow
- Search Rows (preview) Action in Dataverse connector in a Flow | Power Automate
- Suppress Workflow Header Information while sending back HTTP Response in a Flow | Power Automate
- Call a Flow from Canvas Power App and get back response | Power Platform
- FetchXML Aggregation in a Flow using CDS (Current Environment) connector | Power Automate
- Parsing Outputs of a List Rows action using Parse JSON in a Flow | Common Data Service (CE) connector
- Asynchronous HTTP Response from a Flow | Power Automate
- Validate JSON Schema for HTTP Request trigger in a Flow and send Response | Power Automate
- Converting JSON to XML and XML to JSON in a Flow | Power Automate
Thank you!