Codex CLI + MagicSlides MCP

Make a spreadsheet with Codex CLI

Codex CLI can read exported CI results and the test files in your repo, work out which tests fail without code changes, and suggest a likely cause for each. With the MagicSlides MCP server, it saves the report as a spreadsheet the team can triage from.

Set up MagicSlides in Codex CLI (one time)

Two commands: add the server, then log in.

Terminal
codex mcp add magicslides --url https://www.magicslides.app/api/mcp/mcp
codex mcp login magicslides
~/.codex/config.toml (same thing, by hand)
[mcp_servers.magicslides]
url = "https://www.magicslides.app/api/mcp/mcp"
  1. 1.Run codex mcp add, then codex mcp login and approve in the browser.
  2. 2.Start codex (or use codex exec "…" for one-off runs).
  3. 3.Ask for a deck. Codex calls MagicSlides and prints the present link.

Example: what you type in Codex CLI

You

Read the JUnit reports in ci-results/ for the last 30 days, find tests that failed and passed on the same commit, work out the likely cause from the test code, and save a flaky test report as a MagicSlides sheet.

Codex CLI
  • Parsed the JUnit XML files in ci-results/ with a short Python script
  • Flagged tests that failed and then passed on the same commit
  • Read each flaky test file to find a likely cause and fix
  • Called create_sheet with 11 rows sorted by failure count

The flaky test report is saved as a MagicSlides sheet with 10 tests. The top two, the discount fixture and the search timing test, cause over half of the 124 flaky failures.

TestFileRunsFailuresFlake rateFirst seen failingLikely causeSuggested fixOwner
checkout applies discount oncetests/checkout/discount.test.ts412317.5%2026-09-28Shared cart fixture mutated between testsCreate fixture per testpayments
search returns results under 200mstests/search/perf.test.ts412276.6%2026-09-30Timing assertion on shared CI runnerMove to nightly perf jobsearch
webhook retries on 500tests/webhooks/retry.test.ts412194.6%2026-10-02Real timers with 1s backoffUse fake timersplatform
user can reset passworde2e/auth/reset.spec.ts205125.9%2026-10-05Email stub not awaitedAwait mailbox helperidentity
export CSV includes all rowstests/reports/export.test.ts41292.2%2026-10-07Order of rows not fixed in queryAdd ORDER BY iddata
cache invalidates on updatetests/cache/invalidate.test.ts41281.9%2026-10-09Redis container not ready at startAdd readiness waitplatform
image upload rejects 20MB filee2e/media/upload.spec.ts20562.9%2026-10-11Upload timeout too low on CIRaise timeout to 30smedia
CI Flaky Test Report: last 30 days

This is the real output from that prompt, made with the MagicSlides MCP. Open it to click through or download it.

How it works

  1. 1.Run codex mcp add magicslides --url https://www.magicslides.app/api/mcp/mcp
  2. 2.Run codex mcp login magicslides
  3. 3.Ask Codex to analyse your CI results and save a flaky test report as a MagicSlides sheet
  4. 4.Schedule it with codex exec in a weekly job if you want a fresh report

Tool used: create_sheet. Prefer a web app? AI spreadsheet generator does the same without an agent.

FAQ

Where does Codex get the test results?

From files in your project, such as exported JUnit reports. Codex CLI reads local files and runs shell commands to parse them.

Can I run this weekly without opening Codex?

Yes. Put the prompt in a codex exec command and run it from a scheduled CI job.

How do teammates open the report?

Share the editor link. It opens in MagicSlides after they sign in.

Does Codex fix the tests too?

It can. Once you pick a row, ask Codex to apply the suggested fix in the repo as a separate step.

More with Codex CLI

Sheets in other agents

Connect MagicSlides to Codex CLI

One MCP server for decks, docs, sheets and reels. Log in with your MagicSlides account, no API key. Making a deck from your own copy uses no AI credits.

Everything MagicSlides can do in Codex CLI

Ask AI about MagicSlides
ChatGPT logoClaude logoGemini logoPerplexity logo