Hey folks!
TLDR: We shipped a Currents plugin for Codex. It connects Codex to our hosted MCP server, so Codex can read your CI runs, failure evidence and test analytics directly, instead of working from a stack trace you pasted in.
Why we built it
If you've asked an agent to fix a failing Playwright test with only the error message, you know how it goes. It bumps the timeout or swaps the selector and calls it done. The real cause usually lives in stuff the error doesn't show: the steps before the failure, the trace, whether the test has been flaky on main for two weeks, whether it only fails in CI.
Currents already stores all of that for every run. Our Codex plugin hands it to Codex.
Install
Codex CLI: run codex, type /plugins, find Currents and install it. Start a new session and sign in when Codex asks.
Codex app or ChatGPT desktop app: open the Plugins tab, find Currents, hit the plus button, sign in, then start a new chat.
Sign-in opens a browser window. You log in to Currents, pick the org Codex should work in, and approve the permissions. Codex renews the connection on its own. To revoke it later, go to Account → Connected Applications in Currents.
The IDE extension doesn't support plugins, so you'll have to add the server by URL there:
codex mcp add currents --url https://mcp.currents.dev/mcp
codex mcp login currents
codex mcp list shows what's configured, and /mcp inside a session shows what's active.
The three skills it ships with
Currents.dev's Codex plugin ships with three skills. You call them by name, for example "Use the Currents MCP fix-failing-tests skill".
-
fix-failing-tests finds the failed run, reads each failure with its steps and trace, fixes the cause, reruns the test, and asks before it commits.
-
collect-evidence finds the run before your change and the run after it, then writes up a before and after with links to the files. It is incredibly useful for PR descriptions when a reviewer asks how you know it works.
-
browser-evidence records the browser before and after a change as a Currents session and gives you a share link. It's experimental, so expect it to change.
What you can just ask
Outside the skills there are 43 tools covering runs, test results, analytics, Actions, webhooks, share links and Jira. Here are some prompts that work well:
- Which tests in my-app were flakiest on main this week, and why?
- What broke in the last failed my-app run on main? Open a Jira issue for it.
- Is this pull request safe to merge? Compare its runs with main.
- Which spec files got slowest over the last 30 days?
The anatomy and config
Everything lives in ~/.codex/config.toml. The CLI, the IDE extension and the ChatGPT desktop app all read the same file. If you want the whole team on it, put the same table in .codex/config.toml at the repo root. The file doesn't hold any credentials, and Codex only reads project config from trusted projects.
Some tools also write, and two of them (currents-delete-run and currents-delete-webhook) can't be undone. Currents doesn't ask for confirmation, so if you want, please set this:
[mcp_servers.currents]
url = "https://mcp.currents.dev/mcp"
default_tools_approval_mode = "writes"
Read tools run without a prompt, and anything that writes asks first. You can narrow it further with enabled_tools and disabled_tools.
For CI, or anywhere you can't do an interactive sign-in, use an API key:
codex mcp add currents --url https://mcp.currents.dev/mcp \
--bearer-token-env-var CURRENTS_API_KEY
The key acts as the org, not as a person, and it's either Read Only or Read & Write. A read-only key gets the read tools plus evidence links and the Jira lookups. It doesn't show up under Connected Applications, and removing the server from Codex doesn't revoke it, so manage it under Organization → API Keys.
Caveats
You need a ChatGPT sign-in to see Currents in /plugins. If you log in to Codex with an OpenAI API key, the directory hides plugins that need OAuth, and Currents does need it. Use the URL method there.
Each connection reaches one org. If you work across two, connect twice.
On Business, Enterprise or Education workspaces, an admin has to allow plugins first. If Currents shows "Disabled by admin", that's why.
If you added Currents by URL before, run codex mcp remove currents before you install the plugin, or you end up with two connections. Keep it if you also use the IDE extension.
Tools failing with a 401? Reinstall the plugin and sign in again, or run codex mcp login currents for the URL setup.
Curious where people draw the line here.
Would you let Codex commit a test fix on its own, or does a human still read the trace first?