Disclosure: We make Proxy Mail QA. We recommend it narrowly for disposable test accounts, real verification and reset emails, and repeatable evidence. It neither migrates code, auth or users nor guarantees security.
Claude Code is a coding agent, not Claude chat. Introducing it leaves deployed auth unchanged; first edits, missing instructions and changed environments can affect it. Make expectations testable rather than replacing handwritten authentication.
Write down what you already know
Before requesting code, record the auth contract in CLAUDE.md or .claude/rules/*.md, which Claude Code reads. A shared root AGENTS.md can be explicitly included with @AGENTS.md in CLAUDE.md. Keep existing instructions intact. Check /memory and the Memory files section of /context all to confirm the files loaded.
Include practical decisions rather than “make auth secure”:
- The existing provider, approved environments, callback hosts and sender.
- What verification unlocks and where the server enforces that restriction.
- Password requirements, single-use behaviour and the policy for replaced tokens.
- Test commands, fixtures and checks that must remain in CI.
Start with a read-only explanation, then one small task: a verification redirect regression test in the existing framework. Review its diff and assertions. Don’t introduce the agent by rebuilding working auth.
Add email evidence without replacing your tests
Use the shared switching checklist to baseline the app. Keep your unit, integration and CI tests: a new coding tool does not replace them.
Connect Proxy Mail QA in Claude Code:
claude mcp add --transport http proxymail-qa https://api.proxymail.qa/mcp
Open /mcp → proxymail-qa → Authenticate, sign in through your browser and choose the same project used for the baseline. Authenticate an existing server rather than adding a duplicate.
Proxy Mail QA supplies test addresses and email evidence. It does not submit forms or give the agent browser control. Claude Code needs its own browser or simulator. Outside localhost, Claude isn’t allowed to create accounts without your input; if staging is unavailable, have it write Playwright or Cypress tests for a person or CI to run. The MCP connection alone does not make those tests executable.
Turn a familiar manual check into a repeatable run
Run this on authorised staging or local development before the switch and after the first auth-relevant edit. Use new addresses and a clean browser each time. Record the revision, environment and expected behaviour.
- Call
start_runwith a stable name. Pass itsrun_idto every subsequent call that supports it, including email checks,add_run_noteandfinish_run. Usecreate_addresswithpassword: truefor password forms: the generated password is returned once and saved. OAuth cannot reveal previously saved passwords; create fresh accounts or have a person reveal one.form_valuesmaps form fields without submitting them. - Immediately before every submission, capture the timestamp for
since. Where available, callmark_submittedbefore submitting and use itssubmitted_atinwait_for_codeorwait_for_link. Marking afterwards risks excluding mail that arrived quickly. - Register a fresh user. Test restricted access while unverified if the app requires it. Complete verification, reload, sign out and sign in again. Seeing a success message does not establish session persistence.
- Reset that test account’s password. Check that the new password works, the old fails and the used reset link is rejected. For verification resend, use a separate still-unverified account; for reset replacement, use a separate reset case. Leave link A unused, request B, check A against the documented replacement 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. Include invitations if supported. Disclose skipped checks, including long expiry tests.
- Run
check_emailfor SPF, DKIM, DMARC, insecure/localhost links, host throughexpect_hostand stated expiry. For provider-hosted links, inspect the approved action host and final app destination; don’t blindly expect the app domain. Observe a defined duplicate window, then filtercount_emailsbytype,subtypeand/orcategoryand that window. Welcome and verification messages are not duplicates.
Use add_run_note for browser observations. For failed browser assertions, set failed: true (false by default); “failed” in prose alone leaves the run green. Record skipped checks separately with reasons, not as passes or assertion failures. Pass run_id to finish_run. Recent same-named runs provide a comparison after the first edit, rather than relying on your memory of the previous test.
A prompt to copy
Copy the preceding checklist together with this prompt and supply the authorised staging target.
Use the supplied checklist; ask for it if missing.
Explain the existing auth flow and the loaded project instructions before
editing. Identify unanswered policy questions rather than inventing rules.
Preserve handwritten auth, the provider and existing CI tests. Propose one
small regression test in our current framework for human review.
Run the checklist above before changes and after the first auth-relevant
edit, with fresh accounts, a clean browser and the same run name.
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.
If browser access is unavailable, write tests for a person or CI
and clearly state they have not been executed.
Limits and cleanup
The provider must deliver externally. check_delivery gives receipt evidence and likely causes, not provider logs. MCP tools never open links or return email bodies. Email checks don’t prove server-enforced expiry, Gmail inbox placement or security; they are not a scanner. SMS, social login, KYC and payments need separate coverage. Never use production or real accounts, disable confirmation or reset the owner’s password.
Store PROXYMAIL_QA_API_KEY in CI secrets with a separate project/key. Keep raw keys and tokens out of repositories, prompts and reports. Delete exact test users in the app separately from inboxes. If retiring an old connected app, revoke it under Project settings → API keys only when no longer needed.
Sources
Reviewed 4 Dec 2026: Claude Code memory, commands; Proxy Mail QA Claude Code setup, MCP, flow checks, CI.