Wednesday, March 25, 2026

#1132 - leveraging OIC based tools from OpenAI Codex

Introduction 

This post details how to configure OpenAI Codex to use tools from OIC.

My apocryphal order processing agent will be known to those who read my posts, but for those who don't, here's a screenshot of the OIC based tools I will be using - 

These tools live in an OIC project and can be exposed as follows - 


Naturally, I can have my own agent in OIC, but today we'll look at using codex as our AI-Assistant.

Clicking on the Enable MCP Server box above will surface an url in the format - 

https://yourOICInstance/mcp-server/v1/projects/yourProject/mcp

I copy the url for further use -

Now to Codex - 

Configure OIC MCP server in Codex

Click on Settings -

Click on MCP servers

As you can see, I've got 2 already defined - 

The one of interest now is oic-orderprocessing. Let's check out how it's configured - 

This is the STDIO configuration option - 
The data required is -

"command": "npx", "args": [ "-y", "supergateway", "--streamableHttp", "<paste-mcp-url>", "--oauth2Bearer", "<paste-oauth-token>" 
]

Save and you're ready to go!

I've created a new project in Codex - 
Now to processing an order - 

I check my email - 

Summa Summarum

I'll be succinct - very simple, took just a couple of minutes.



 






  

No comments: