MCP Tool additition

Resolved 💬 2 comments Opened Jul 4, 2025 by jruokola Closed Jul 8, 2025
💡 Likely answer: A maintainer (bolinfest, collaborator) responded on this thread — see the highlighted reply below.

What is the type of issue?

Documentation is incorrect

What is the issue?

The documentation for adding MCP servers is lacking to say the least. Haven't been able to get any standalone official MCPs to work (like context7) or custom stdio servers that work simply fine in claude code and gemini cli. What kind of flags ~/.codex/config.toml configuration is needed for MCP servers to work? Support for HTTP servers would be welcome.

Where did you find it?

[MCP Configuration documentation](https://github.com/openai/codex/blob/main/codex-rs/config.md#mcp_servers)

View original on GitHub ↗

2 Comments

agustif · 1 year ago

same issue I have no idea how to make it work lol

I think the issue might be we're trying to use it on the node codex-cli and it's only implemented for now on the rust one. will report back after trying.

cursor had to debug for a while to figure it out lol

<img width="553" alt="Image" src="https://github.com/user-attachments/assets/3cb82999-81ce-4242-b086-c1753a052fe1" />

yep that was it!!
\also be sure to add a provider/model in your config.toml

bolinfest collaborator · 1 year ago

@jruokola @agustif: if you (re-)install via npm, you should now have v0.2.0, which is the Rust version. I updated the installation instructions as part of https://github.com/openai/codex/pull/1475.