We make Proxy Mail QA. We recommend it here for disposable test accounts, real authentication emails and evidence of what worked. It does not migrate your code, auth provider or users, or establish that your whole app is secure.
Compare a working baseline with the first auth-related change, not one editor’s reputation with another’s.
Cursor was renamed Grok Build on 30 November 2026. We use the old name here; its project files still live in .cursor.
Import the setup, then check its meaning
Codex is a coding agent available through a CLI, IDE extension and cloud tasks, not ordinary ChatGPT chat. Start in the same repository and branch. Confirm the app’s start command, staging URL, auth provider, environment variable names, sender and callback allowlist. Keep secret values out of instructions.
The Codex CLI’s /import offers Cursor as a source. ChatGPT desktop also offers Settings → Import, or Settings → General → Import other agent setup. Instructions can be copied into AGENTS.md; MCP configuration and supported skills, hooks, plugins and subagents can also import. Imported configuration is not proof that approval boundaries survived unchanged.
Review .cursor/rules/*.mdc, particularly rules attached only to auth files. Translate their scope deliberately rather than turning every conditional rule into a global instruction. Check Cursor’s User Rules in its app UI manually. Preserve restrictions on production access, migrations and auth changes, not just formatting preferences.
Codex reads project instructions from the repository root to its working directory, choosing AGENTS.override.md before AGENTS.md, one file per directory. The combined default limit is 32 KiB. Personal instructions live in ~/.codex/AGENTS.md, superseded by ~/.codex/AGENTS.override.md. Other filenames need project_doc_fallback_filenames in ~/.codex/config.toml; they are not automatic. A root AGENTS.md is portable, but still review nested overrides.
Connect without creating a second server
If import brought across Proxy Mail QA, authenticate that server and select the same project. Otherwise run:
codex mcp add proxymail-qa --url https://api.proxymail.qa/mcp
If the browser did not open:
codex mcp login proxymail-qa
CLI and IDE share configuration. The IDE extension does not support plugins; these commands suffice. For unattended cloud work, use your own scoped API key in secrets, not chat or the repository: interactive OAuth cannot complete unattended. The test app must run somewhere the test runner can reach; a cloud task’s localhost is not your laptop’s localhost.
Keep a before-and-after checklist
Before leaving Cursor, run this on an authorised local or staging app, never production. Record the revision, environment and expected token policy. After Codex’s first auth-related edit, repeat with a fresh account and browser session, using the same settings.
- Start
start_runwith a consistent name, such asstaging-auth-handoff. Pass itsrun_idto every subsequent call that supports it, including email checks,add_run_noteandfinish_run. Generate an inbox, persona and password withcreate_addressusingpassword: true, or useform_values. Neither submits the form; your agent, browser or test runner does. - Record
sinceimmediately before each submit. Usemark_submittedif available and its returned timestamp. Pass that timestamp towait_for_codeorwait_for_link; use a newer one for resend and reset. - Sign up. If policy requires verification before protected access, test that gate. Verify, reload the session, then sign out and sign in. Check the final destination. For provider-hosted action links, inspect both the approved action host and final app host, not just the outer URL.
- Reset the test account’s password. Confirm the old password fails and the new one works. Reuse a consumed link in a clean browser context; it must not grant fresh access. Test replacement separately from consumed-link reuse, using a still-unverified account for resend or a separate reset case. Leave A unused, request B, check A against the agreed policy and verify B completes the intended action. If A may remain valid, test B in an independent equivalent case so consuming A cannot invalidate B.
- Test invitations if supported. Check server expiry only by actually waiting and trying an unused link; otherwise mark it skipped.
- Use
check_emailfor SPF, DKIM, DMARC, link hosts withexpect_host, expiry wording and plain text. Usecount_emailsfiltered bytype,subtypeand/orcategoryand a measured window: a welcome email is not duplicate verification. Record browser results withadd_run_note. For failed browser assertions, setfailed: true(falseby default); “failed” in prose alone leaves the run green. Record skipped checks separately with reasons, not as passes or assertion failures.finish_runreturns a report comparing recent same-name runs.
Give Codex a bounded first task
Copy the preceding checklist together with this prompt and supply the authorised staging target.
Use the supplied checklist; ask for it if missing.
Read the imported auth instructions and report conflicts before editing.
Preserve the provider, verification gate and callback policy. Review one
small auth diff, then repeat staging-auth-handoff with fresh accounts
and browser sessions. Record mail and browser evidence separately.
Test consumed-link reuse separately from replacement. For replacement,
use a still-unverified account for resend or a separate reset case: leave
A unused, request B, check A against policy and prove B completes the action.
If A may remain valid, prove B in an independent equivalent case so
consuming A cannot invalidate B.
Pass start_run's run_id to every call that supports it, including email
checks, add_run_note and finish_run. For failed browser assertions, use
add_run_note with failed: true (default false); 'failed' in prose alone
leaves the run green. Record skips with reasons, not as passes or failures.
Never disable verification or reset the owner’s password.
Keep the evidence, not the dependency
Proxy Mail QA’s MCP server never returns email bodies or opens links. Email checks do not prove server expiry, inbox placement or whole-app security; SMS, social sign-in, KYC and payments are outside this check. Missing mail may reflect provider sandbox restrictions: check_delivery supplies evidence, not a certain root cause.
Keep the E2E tests in the repository, run them in CI without relying on either tool, and store PROXYMAIL_QA_API_KEY as a secret. Saved passwords are not readable through OAuth; create fresh accounts or have a person reveal one. Delete exact app test users separately from inboxes. Retire Cursor’s connection under Project settings → API keys, but don’t revoke a shared CI key.
See the shared retest guide and Codex to Cursor guide.
Sources
Reviewed 4 Dec 2026: Codex instructions, import, Cursor’s new name, connection, MCP, flow checks, CI.