- Docs
- OpenAI Codex
Connect OpenAI Codex to iReading Room over MCP
OpenAI Codex gets your project's new arXiv papers. It calls one read-only tool with your token. Everything you need is on the sheet. The steps below explain it.
- Token
- Make one in the app: Settings, then MCP.
- File
- ~/.codex/config.toml. The command writes it. It holds the name RR_TOKEN, not the token.
- Add it
codex mcp add reading-room \ --url https://app.ireadingroom.com/api/mcp \ --bearer-token-env-var RR_TOKEN
- Start it
export RR_TOKEN=<paste the token> codex --no-daemon
- Check
- In Codex, type /mcp. reading-room shows connected (1 tool).
- Server
- https://app.ireadingroom.com
/api /mcp - Tool
- get_matches, read-only
- Time
- About 5 minutes
- Checked
- 2026-11-21
Set it up
- Make a token. In the app, open Settings, then MCP.
- Name it. For example: Codex on my laptop.
- Pick when it expires: 30, 90 or 365 days.
- Pick the project. Your agent sees only that one.
- Press Create token. Copy it now. It shows only once.
- Add the server. Run the Add it command once, in any folder. It works in every project. The commands on this page are for macOS and Linux. Codex saves the three lines below in
~/.codex/config.toml. They name RR_TOKEN but never hold the token. Prefer editing the file? Paste them there instead of running the command.
~/.codex/config.toml
[mcp_servers.reading-room] url = "https://app.ireadingroom.com/api/mcp" bearer_token_env_var = "RR_TOKEN"
- Start Codex with the token. Go to your project's folder. Run the Start it lines there. Start Codex this way every time. Plain
codexmay use a background server that started without the token. You can keep the export in your shell profile. Never commit the token. - Check it. Type
/mcpin Codex. reading-room shows connected (1 tool). Codex may ask you to approve the call.
OpenAI Codex's MCP guide has more options.
No account yet? Try it free.
Your first prompt
Ask in plain words. If Codex skips the tool, name get_matches.
Use reading-room to get today's papers. Which one fits this repository best? Name the first file you would change to try it.
Paste it into Codex
If it fails
- Failed
- Codex says RR_TOKEN is not set. Plain codex can show this even when your terminal has it. Quit Codex. Then do step 3 again.
- Authentication required
- The token is wrong, expired or revoked. Codex suggests codex mcp login. Skip it: there is no login. Your token is the sign-in. Quit Codex. Make a new token. Then do step 3 again with it.
- Not available
- Your project isn't ready yet. Describe it in the app, then wait for its first day's papers.
- not_ready
- Not ready yet. Try again later, or ask for an earlier day.
- out_of_window
- Ask for today or the 6 days before.
What your agent sees
Your agent gets your recommended papers. It also gets your interest names. It sends them to the AI model it uses. You can revoke a token at any time. Privacy details
Reference The get_matches tool: every field and status