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
Metadata
Release files for mcs-adapter-smtp 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| mcs_adapter_smtp-0.1.0.tar.gz | 8.0 kB | Without provenance | Details for mcs_adapter_smtp-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| mcs_adapter_smtp-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for mcs_adapter_smtp-0.1.0-py3-none-any.whl |
Total release size: 16.4 kB
Release files / mcs_adapter_smtp-0.1.0.tar.gz
| Download URL | mcs_adapter_smtp-0.1.0.tar.gz |
|---|---|
| Size | 8.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
08a7070c75cf074b69e1da3f06706d2943b77483e2183ea09a3330f858abf8dc
|
|
BLAKE2b-256 checksum How to use checksums |
29b35ce88ed4f206c571b5182b59de1de0a3266ffc7bcd0e8f3a21d9c852138c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.11.5
|
Release files / mcs_adapter_smtp-0.1.0-py3-none-any.whl
| Download URL | mcs_adapter_smtp-0.1.0-py3-none-any.whl |
|---|---|
| Size | 8.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
bfb5663c5ca6c236000d727061d1c1cadb906c3bd5d444714814116d79b4b0af
|
|
BLAKE2b-256 checksum How to use checksums |
596db7a5117498a7e34957e5694f0a796dec94cf7942ec7dcc66402013bef356
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.11.5
|
Security for mcs-adapter-smtp 0.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.