Mail-reading driver for the Model Context Standard -- lets an LLM read and organise e-mail.
Project description
mcs-driver-mailread
Mail-reading driver for the Model Context Standard (MCS).
Provides tools for listing folders, reading messages, searching, moving, and organising e-mail. The actual I/O is delegated to a pluggable adapter, making the same driver work with IMAP, Gmail API, Microsoft Graph, or any future backend.
Installation
pip install mcs-driver-mailread
# With IMAP adapter
pip install mcs-driver-mailread[imap]
Quick start
from mcs.driver.mailread import MailreadToolDriver
# IMAP (default adapter)
td = MailreadToolDriver(
adapter="imap",
host="imap.example.com",
user="alice@example.com",
password="...",
)
tools = td.list_tools() # 7 tools
result = td.execute_tool("list_folders", {})
Tools
| Tool | Description |
|---|---|
list_folders |
List all mailbox folders |
list_messages |
List message summaries in a folder |
fetch_message |
Fetch a full message by UID |
search_messages |
Search messages by criteria |
move_message |
Move a message to another folder |
set_flags |
Add or remove flags on a message |
create_folder |
Create a new mailbox folder |
Adapter protocol
The driver defines a MailboxPort typing protocol. Any object that implements
the seven methods above 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_mailread-0.1.1.tar.gz.
File metadata
- Download URL: mcs_driver_mailread-0.1.1.tar.gz
- Upload date:
- Size: 14.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f8fb76e52d69e7b9a39133b8aa484a6806dc4cc912ebdf07ba9fdf89e45b4e13
|
|
| MD5 |
aea533bc00591f9f20c0826061c3d728
|
|
| BLAKE2b-256 |
add07f4a5df76783617f7a8ed9b75e46acc2afd35a49a981f737b23a4e806ae3
|
File details
Details for the file mcs_driver_mailread-0.1.1-py3-none-any.whl.
File metadata
- Download URL: mcs_driver_mailread-0.1.1-py3-none-any.whl
- Upload date:
- Size: 13.6 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 |
4c4c9e2aaf73ba85b24d53a13bb3816bb17e5bb2340ff7ed98ccda0a79925641
|
|
| MD5 |
12d270e27500e5079d810c6de3533d1b
|
|
| BLAKE2b-256 |
a3c75e4d0b954b762c15d084afb62bfe0855ac2d818f1b7e51cdd91cf8ee9c84
|