You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Would it be possible to have MCP servers support in codex?
i'd defo love to see that. me and many others.
Reacted by Marc Laugharn, Jude Hoogterp, Marvijo, OhadRubin, Remilya, Tim Jünemann, Ian Maurer, Ben Potter, Kyle Carberry, Ayush Thakur and 261 more
Reacted by Alberto Leal, Micha(el) Bladowski, hirashin, isomoes, Roman Sirokov, Chris Yang, Martin Lukasik, Pieter de Bruin, Krishnakanth Alagiri, erichayth and 4 more
Tbh, It's kinda weird that it was launched without MCP support, it's kind of a standard.
Reacted by .oO, gabadi, Jacob Turner, mosaan, moshtaghmaveddat, num13ru, Juan Carlos Alonso, Ilya Chidyakin, Thai Pangsakulyanont, Yorick Jacquin and 54 more
we need MCP support. Without MCP, this is not much useful
Reacted by gabadi, Duino, Yorick Jacquin, Jason Kneen, Andre Hilsendeger, Matt Greenfield, Matt Eddy, Bastian Schumacher, Maxence Frenette, Metin Hasan and 22 more
Codex is great, but a huge step backwards vs Cursor agent mode or Claude Code, which both have MCP support.
I will hold off testing Codex until MCP support is added.
Reacted by Manikandan Sundaramoorthy, Ryan Dens, num13ru, Ilya Chidyakin, Jason Kneen, Tal Muskal, Simonas Karuzas, albina-popova, Dimitris Moraitis, Andres Gutierrez and 23 more
The idea is to handle some of the boilerplate involved in being an MCP Host, like:
Connecting to multiple servers (stdio, streamable-http, websockets, etc.)
Aggregating capabilities (tools, resources, prompts) from all of them.
Handling the sampling/createMessage delegation flow securely (so Codex keeps control of the main LLM calls).
Built on top of the official @modelcontextprotocol/sdk.
Obviously, adding any dependency is a consideration, but thought it might be useful as a potential building block if the project decides to implement MCP host capabilities.
Let me know if this looks potentially helpful or if a different approach (like building directly on the base SDK) seems more appropriate for Codex!
I have a PR coming for MCP support -- have added commands based on claude code to add, remove and support local and global MCP servers; have got client invoking working and just testing -- should be PR today for this.
Reacted by Tal Muskal, motoki317, Serge Shkurko, Joe Beeton, Tim Kellogg, Simonas Karuzas, Stewart Wong, Sam Reid, Mahesh Rijal, Patrick Walters and 28 more
I stopped using it as soon as I realised I cannot call perplexity-search mcp it with. it's really fine if there is no support for MCP yet, but no web search? that's a bummer
Reacted by Elliot Dohm, Zorro909, Alex Volkov, Ignacio Corderi, lin72h, albina-popova, N3SAV, Steve Yegge, Glenn 'devalias' Grant, Sai Sreenivas and 3 more
Bit rough, not happy with it but was a pig to get in there, so needs some more love I think but it works -- it's very fragile with MCP servers that don't behave well but I'm starting to test it now with a load.
Activity
OhadRubin commentedon Apr 16, 2025
Tbh, It's kinda weird that it was launched without MCP support, it's kind of a standard.
vigneshchinnadurai commentedon Apr 16, 2025
we need MCP support. Without MCP, this is not much useful
jacob-israel-turner commentedon Apr 16, 2025
Codex is great, but a huge step backwards vs Cursor agent mode or Claude Code, which both have MCP support.
I will hold off testing Codex until MCP support is added.
plwalters commentedon Apr 17, 2025
I can't really test this without MCP support, it would be a step back
lefrog-dont-code commentedon Apr 17, 2025
Hey folks, following up on the discussion about potentially integrating MCP here.
Just wanted to put a library I've been working on onto the radar, in case it might help accelerate things if we go down the MCP route. It's called
omcph(https://github.com/lefrog-dont-code/omcph) and it's basically a ready-made TypeScript client host for managing connections to MCP servers.The idea is to handle some of the boilerplate involved in being an MCP Host, like:
sampling/createMessagedelegation flow securely (so Codex keeps control of the main LLM calls).@modelcontextprotocol/sdk.Obviously, adding any dependency is a consideration, but thought it might be useful as a potential building block if the project decides to implement MCP host capabilities.
Let me know if this looks potentially helpful or if a different approach (like building directly on the base SDK) seems more appropriate for Codex!
jasonkneen commentedon Apr 17, 2025
I have a PR coming for MCP support -- have added commands based on claude code to add, remove and support local and global MCP servers; have got client invoking working and just testing -- should be PR today for this.
Stewart86 commentedon Apr 17, 2025
I stopped using it as soon as I realised I cannot call perplexity-search mcp it with. it's really fine if there is no support for MCP yet, but no web search? that's a bummer
jasonkneen commentedon Apr 17, 2025
Running final tests etc.
jasonkneen commentedon Apr 17, 2025
Bit rough, not happy with it but was a pig to get in there, so needs some more love I think but it works -- it's very fragile with MCP servers that don't behave well but I'm starting to test it now with a load.
Incoming shortly
jasonkneen commentedon Apr 17, 2025
PR in
wtesler commentedon Apr 18, 2025
I've created what I believe is a more minimal implementation of MCP support. You can find it here:
wtesler@1136135
In my approach, you add the MCP config to ~/.codex/config.json like:
Then you can run the MCP server locally like:
If you want to try it out, download my fork, cd into codex-cli, npm install, npm run build, and then you can run codex like
bin/codex.Then you can make an MCP call like "Call the playwright tool browser_tab_new with url https://example.com"
Try it out and let me know what you think.
gaiar commentedon Apr 24, 2025
Yes, I would love to check what I can squeeze from 4.1 with a 1 million context window and https://github.com/modelcontextprotocol/servers/tree/main/src/sequentialthinking.
Claude Code, with his appetite, will make me bankrupt :D
MatanYemini commentedon May 3, 2025
nice! when it would be out?
michabbb commentedon May 3, 2025
@gaiar FYI: https://x.com/alexalbert__/status/1918017889548026263
34 remaining items
Merge upstream/main (61 commits) - upstream rust-v0.63.x
fix(app-server): fix approval events in review mode (#10416)
Merge upstream and adopt Kontext PKCE integration flow (#2)
termux: apply patches for v0.104.0-termux
fix agents openai#5
fix(app-server): fix approval events in review mode (openai#10416)
Verify sub-agents against a live model, and implement /refine
合并来自 main 的合并请求 openai#5
fix: propagate historical document removals in release promotion (ope…
fix(rig-bridge): tool-call state machine + custom tool round-trip
fix(brand): disable side-channel features and rename model-visible MC…
fix: resume boundary, message-image protection, byte-overflow prune (…