Skip to main content

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

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

mcs_driver_mailread-0.2.2.tar.gz (15.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

mcs_driver_mailread-0.2.2-py3-none-any.whl (13.8 kB view details)

Uploaded Python 3

File details

Details for the file mcs_driver_mailread-0.2.2.tar.gz.

File metadata

  • Download URL: mcs_driver_mailread-0.2.2.tar.gz
  • Upload date:
  • Size: 15.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.3

File hashes

Hashes for mcs_driver_mailread-0.2.2.tar.gz
Algorithm Hash digest
SHA256 85d3baefb8df78f7c2c35769bf0dff878c8e0b938a6d2e19abe620d978a2c4ee
MD5 486ac4c127024d8f0f79350b9a5aba37
BLAKE2b-256 07f4ca19676feb009713d9c94309f423a09867c65894a6273cffefb66f298f0b

See more details on using hashes here.

File details

Details for the file mcs_driver_mailread-0.2.2-py3-none-any.whl.

File metadata

File hashes

Hashes for mcs_driver_mailread-0.2.2-py3-none-any.whl
Algorithm Hash digest
SHA256 4d4bfcec0fa8f06f6d5c46d62d6a54420f22b9fa38f1ebd46ce17997f30ab9a0
MD5 2b494c45c381f8e20148aeb6b7c90206
BLAKE2b-256 2a5f9c55b80fb172ceeb5c8742a6b7551f24ddfe4f35a3d2aaa3fb80d2a9b7d0

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page