Add a mail account
add_accountAdd and verify a mail account, storing its App Password in the macOS Keychain for secure access across providers like Gmail, iCloud, Fastmail, or custom IMAP.
Instructions
Add and verify a mail account, storing its App Password in the macOS Keychain (never in the registry or logs). provider: gmail (default) | icloud | fastmail | imap. For 'imap' pass imapHost + smtpHost (ports default to 993 / 465, or 587 with smtpStartTls). SECURITY: the App Password is an argument to this call, so it passes through the agent's context and the MCP client's logs. For the most private path, add accounts in the app's GUI instead — there the password goes straight to the local engine and the model never sees it.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| Yes | The account's email address. | ||
| imapHost | No | IMAP host (required for provider 'imap', e.g. imap.host.tld). | |
| imapPort | No | IMAP port (default 993). | |
| provider | No | Mail provider (default gmail). Presets cover gmail/icloud/fastmail; 'imap' needs custom hosts. | |
| readOnly | No | Refuse all writes for this account. | |
| smtpHost | No | SMTP host (required for provider 'imap', e.g. smtp.host.tld). | |
| smtpPort | No | SMTP port (default 465, or 587 with smtpStartTls). | |
| appPassword | Yes | App Password / IMAP password. Stored only in the Keychain. | |
| displayName | No | ||
| makeDefault | No | Make this the default account. | |
| smtpStartTls | No | Use STARTTLS on 587 instead of implicit TLS on 465. |