LiteLLM x Codex CLI - support for HTTP MCP requests

Resolved 💬 2 comments Opened Sep 26, 2025 by mubashir1osmani Closed Sep 27, 2025
💡 Likely answer: A maintainer (tibo-openai, collaborator) responded on this thread — see the highlighted reply below.

What version of Codex is running?

0.40

Which model were you using?

gpt-5-codex

What platform is your computer?

arm64

What steps can reproduce the bug?

im trying to run litellm proxy using codex-cli and looks like it only support mcp servers in json rpc formats? litellm sends requests in http with auth headers. this works fine with node-based codex cli.

can you let us know how you have mcp servers configured so that we can file a PR accordingly?

What is the expected behavior?

_No response_

What do you see instead?

_No response_

Additional information

_No response_

View original on GitHub ↗

2 Comments

mubashir1osmani · 11 months ago

error:

<img width="755" height="431" alt="Image" src="https://github.com/user-attachments/assets/a5dc695f-8b5a-4c03-8519-ef3dd9382759" />

openai api key being our litellm proxy key
openai base url = litellm proxy url

tibo-openai collaborator · 11 months ago

Apologies, we can't provide specific support for litellm right now, suggest to read through the code and try and debug the issue and send a PR with a fix if something is indeed an issue with the implementation. Thanks!