MailGate

v1.1.1
io.github.Dicka18/mailgate Checked 3 days ago Published 8 days ago

Self-hosted Cloudflare Workers OTP and magic-link email inbox MCP server for E2E auth testing.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

mailgate_health

Check whether the configured MailGate Worker is reachable and healthy.

mailgate_wait_for_otp

Poll a MailGate inbox until a verification/OTP code arrives. Pass `since` (ISO timestamp) to ignore stale OTPs from earlier tests.

ParameterTypeDescription
email *stringRecipient inbox address (e.g. qa-login@example.com).
passwordstringOptional inbox password if the inbox is locked.
pollIntervalMsnumberPolling interval in milliseconds (default: 1500).
senderstringOptional substring filter on sender address (e.g. github.com).
sincestringISO 8601 timestamp; only consider emails received at or after this time.
timeoutMsnumberMaximum wait time in milliseconds (default: 30000).

mailgate_wait_for_email

Poll a MailGate inbox until a matching email arrives and return its subject, text body, OTP code, and extracted magic/verification link.

ParameterTypeDescription
email *stringRecipient inbox address.
passwordstringOptional inbox password if locked.
pollIntervalMsnumberPolling interval in milliseconds (default: 1500).
senderstringOptional sender address substring filter.
sincestringISO 8601 timestamp filter.
subjectIncludesstringOptional case-insensitive subject substring filter.
timeoutMsnumberMaximum wait time in milliseconds (default: 30000).

mailgate_list_messages

List recent messages stored in a MailGate inbox.

ParameterTypeDescription
email *stringRecipient inbox address.
limitnumberMax number of messages to return (1-100, default: 20).
passwordstringOptional inbox password if locked.
senderstringOptional sender address substring filter.
sincestringOptional ISO 8601 timestamp filter.

mailgate_create_inbox

Allowlist a new inbox address on MailGate (requires MAILGATE_ADMIN_TOKEN).

ParameterTypeDescription
email_address *stringEmail address to allowlist.
labelstringOptional descriptive label.
passwordstringOptional password (>= 4 chars) to lock the inbox.

mailgate_clear_messages

Delete all stored messages for an inbox before starting a fresh test run (requires MAILGATE_ADMIN_TOKEN).

ParameterTypeDescription
email *stringRecipient inbox address to purge.

mailgate_simulate_email

Inject a simulated RFC822 message through the live MIME parser and OTP extractor (requires MAILGATE_ADMIN_TOKEN and ALLOW_SIMULATE=true).

ParameterTypeDescription
to *stringAllowlisted recipient inbox address.
body_textstringOptional plain-text body.
fromstringOptional sender address.
from_namestringOptional sender display name.
subjectstringOptional email subject (defaults to random OTP).