SMTP adapter for the Model Context Standard.
Project description
mcs-adapter-smtp
SMTP adapter for the Model Context Standard (MCS).
Encapsulates all SMTP wire-level details (smtplib, MIME construction) behind
a clean adapter interface. Drivers like mcs-driver-mailsend delegate all
sending I/O to this adapter so they never touch smtplib directly.
Supports implicit SSL (port 465), STARTTLS (port 587), and plaintext (port 25).
Zero runtime dependencies -- uses only the Python standard library.
Installation
pip install mcs-adapter-smtp
Quick start
from mcs.adapter.smtp import SmtpAdapter
adapter = SmtpAdapter(
host="smtp.example.com",
user="alice@example.com",
password="...",
sender_name="Alice Smith", # optional display name
)
adapter.send_message(to="bob@example.com", subject="Hello", body="Hi Bob!")
Provided methods
| Method | Description |
|---|---|
send_message |
Send a plain-text e-mail |
send_html_message |
Send an HTML e-mail with optional text fallback |
check_connection |
Test SMTP connectivity and authentication |
Links
- Homepage: https://www.modelcontextstandard.io
- Source: https://github.com/modelcontextstandard/python-sdk
License
Apache-2.0
Project details
Release history Release notifications | RSS feed
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_adapter_smtp-0.1.0.tar.gz.
File metadata
- Download URL: mcs_adapter_smtp-0.1.0.tar.gz
- Upload date:
- Size: 8.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
08a7070c75cf074b69e1da3f06706d2943b77483e2183ea09a3330f858abf8dc
|
|
| MD5 |
339fab5a9bb87942e6638c73a5d4cc56
|
|
| BLAKE2b-256 |
29b35ce88ed4f206c571b5182b59de1de0a3266ffc7bcd0e8f3a21d9c852138c
|
File details
Details for the file mcs_adapter_smtp-0.1.0-py3-none-any.whl.
File metadata
- Download URL: mcs_adapter_smtp-0.1.0-py3-none-any.whl
- Upload date:
- Size: 8.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 |
bfb5663c5ca6c236000d727061d1c1cadb906c3bd5d444714814116d79b4b0af
|
|
| MD5 |
afc6e66f18d48a26a6eb5515ed83a30a
|
|
| BLAKE2b-256 |
596db7a5117498a7e34957e5694f0a796dec94cf7942ec7dcc66402013bef356
|