Mail-sending driver for the Model Context Standard -- lets an LLM send e-mail.
Project description
mcs-driver-mailsend
Mail-sending driver for the Model Context Standard (MCS).
Provides tools for sending plain-text and HTML e-mail. The actual I/O is delegated to a pluggable adapter, making the same driver work with SMTP, Gmail API, Microsoft Graph, or any future backend.
Installation
pip install mcs-driver-mailsend
# With SMTP adapter
pip install mcs-driver-mailsend[smtp]
Quick start
from mcs.driver.mailsend import MailsendToolDriver
# SMTP (default adapter)
td = MailsendToolDriver(
adapter="smtp",
host="smtp.example.com",
user="alice@example.com",
password="...",
sender_name="Alice Smith", # optional display name
)
tools = td.list_tools() # 2 tools
result = td.execute_tool("send_message", {
"to": "bob@example.com",
"subject": "Hello",
"body": "Hi Bob!",
})
Tools
| Tool | Description |
|---|---|
send_message |
Send a plain-text e-mail |
send_html_message |
Send an HTML e-mail with optional text fallback |
Adapter protocol
The driver defines a MailsendPort typing protocol. Any object that implements
send_message and send_html_message satisfies the contract -- no inheritance
required.
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_mailsend-0.2.0.tar.gz.
File metadata
- Download URL: mcs_driver_mailsend-0.2.0.tar.gz
- Upload date:
- Size: 13.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
02623d393a48642ec633176994ce48dabc2872be6fac8f404dcb0a760f0c083e
|
|
| MD5 |
276c5840790a6e751eedc393d6e49269
|
|
| BLAKE2b-256 |
59087328b22ed70ce447549da4973999456d4f4a86406d76e9e1c03728f52a4d
|
File details
Details for the file mcs_driver_mailsend-0.2.0-py3-none-any.whl.
File metadata
- Download URL: mcs_driver_mailsend-0.2.0-py3-none-any.whl
- Upload date:
- Size: 13.4 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 |
c0f9ebd88d1c6f31799ea30eb8b6ac0408179d8f5cf14aeb535493f1fb3635a7
|
|
| MD5 |
02fb10be79eaf09bea934ba032cf87ed
|
|
| BLAKE2b-256 |
53615f597e5355345178b3917b9dc219cde589e24dbf9f5389c36b05b6907e69
|