sieve_add_account
Connects and securely stores a ManageSieve account after testing the connection and login, so MCP clients can manage server-side mail filtering rules.
Instructions
Add a ManageSieve account. Prefer telling the user to run sieve-mcp-setup add (or sieve-mcp-setup import-imap) in a terminal so the password is typed there instead of passing through this conversation; use this tool only if the user explicitly provides the details here. By default the connection and login are tested first and nothing is saved if they fail. The account is stored in the shared encrypted store used by every MCP client on this machine.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tls | No | Transport security. "starttls" (default, standard for port 4190) upgrades the connection and refuses to continue if the server cannot; "implicit" for a port that speaks TLS from the first byte; "none" sends the password unencrypted — only for localhost or a trusted network. | starttls |
| host | Yes | ManageSieve server host name. Often the same as the IMAP host. | |
| name | Yes | Short unique name for the account, e.g. "personal" or "work". | |
| port | No | ManageSieve port; 4190 is standard. | |
| test | No | Connect and log in before saving; nothing is saved if this fails. | |
| user | Yes | Login name, usually the full email address. | |
| password | Yes | Password or app password. Pass an empty string to supply it instead via the SIEVE_MCP_ACCOUNT_<NAME>_PASSWORD environment variable in the MCP client config. | |
| allowInvalidCertificate | No | Skip TLS certificate verification. Only for a self-signed certificate the user trusts. |