Composite mail driver for the Model Context Standard -- read, organise, and send e-mail.
Project description
mcs-driver-mail
Composite mail driver for the Model Context Standard (MCS).
Combines mcs-driver-mailread and mcs-driver-mailsend into a single driver
that exposes all 9 tools (7 read + 2 send). This demonstrates the MCS driver
stacking / composition pattern -- build focused drivers, then combine them.
Installation
pip install mcs-driver-mail
# With IMAP + SMTP adapters
pip install mcs-driver-mail[imap,smtp]
# Everything including inspector
pip install mcs-driver-mail[all]
Quick start
from mcs.driver.mail import MailToolDriver
td = MailToolDriver(
read_adapter="imap",
send_adapter="smtp",
read_kwargs=dict(host="imap.example.com", user="alice@example.com", password="..."),
send_kwargs=dict(host="smtp.example.com", user="alice@example.com", password="...",
sender_name="Alice Smith"),
)
tools = td.list_tools() # 9 tools (7 read + 2 send)
td.execute_tool("list_folders", {})
td.execute_tool("send_message", {"to": "bob@example.com", "subject": "Hi", "body": "Hello"})
Tools
| Tool | Source | Description |
|---|---|---|
list_folders |
mailread | List all mailbox folders |
list_messages |
mailread | List message summaries in a folder |
fetch_message |
mailread | Fetch a full message by UID |
search_messages |
mailread | Search messages by criteria |
move_message |
mailread | Move a message to another folder |
set_flags |
mailread | Add or remove flags on a message |
create_folder |
mailread | Create a new mailbox folder |
send_message |
mailsend | Send a plain-text e-mail |
send_html_message |
mailsend | Send an HTML e-mail with text fallback |
Architecture
mcs-driver-mail (composite)
├── mcs-driver-mailread ← mcs-adapter-imap (or Gmail, Graph, ...)
└── mcs-driver-mailsend ← mcs-adapter-smtp (or Gmail, Graph, ...)
Each sub-driver is protocol-agnostic -- swap adapters without changing driver code.
Links
- Homepage: https://www.modelcontextstandard.io
- Source: https://github.com/modelcontextstandard/python-sdk
License
Apache-2.0
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file mcs_driver_mail-0.1.2.tar.gz.
File metadata
- Download URL: mcs_driver_mail-0.1.2.tar.gz
- Upload date:
- Size: 12.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
48e954ad699181994394d4dceb1093431b6e94edbc9d1ef124c557774d70297a
|
|
| MD5 |
3b2c580b769eb390841edacb60f66ccc
|
|
| BLAKE2b-256 |
56e3687688de35c6757cddf611a61e4f3708a42e9e16da5f721bfd50cbbfdcc1
|
File details
Details for the file mcs_driver_mail-0.1.2-py3-none-any.whl.
File metadata
- Download URL: mcs_driver_mail-0.1.2-py3-none-any.whl
- Upload date:
- Size: 11.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d1fb589c0a76d1100c08237cf766693e4da2574042ec3ba05c50b51bb46a902f
|
|
| MD5 |
95d528cb36c7554581024740e5d9a09a
|
|
| BLAKE2b-256 |
55c9e7fe9ab8fc25bf978048fc28f0c970fb9161035b951d5a9026dcdf597fdb
|