Implements complete IMAP server using FastMCP protocol with 5 core tools: - list_folders: Browse mailbox structure - search_emails: Query with filters (sender, subject, date) - get_email: Fetch full email content with metadata - send_email: SMTP sending with HTML support - health_check: Connection validation Architecture: - FastMCP for MCP protocol implementation - aioimaplib for async IMAP connections - IMAPSession class for connection pooling - REST API bridge (api_server.py) for HTTP access Tech: Python 3.11 + FastMCP + aioimaplib + FastAPI + aiosmtplib
33 lines
485 B
Plaintext
33 lines
485 B
Plaintext
# Core MCP dependencies
|
|
fastmcp>=0.5.0
|
|
|
|
# IMAP email handling
|
|
imapclient>=3.0.0
|
|
email-validator>=2.1.0
|
|
|
|
# SMTP support
|
|
aiosmtplib>=3.0.0
|
|
|
|
# Security and authentication
|
|
python-dotenv>=1.0.0
|
|
cryptography>=41.0.0
|
|
|
|
# Async support and performance
|
|
aiofiles>=23.2.1
|
|
aioimaplib>=1.0.1
|
|
|
|
# Rate limiting
|
|
slowapi>=0.1.9
|
|
|
|
# Web server
|
|
fastapi>=0.100.0
|
|
uvicorn[standard]>=0.30.0
|
|
|
|
# Utilities
|
|
pydantic>=2.5.0
|
|
python-multipart>=0.0.6
|
|
|
|
# Testing
|
|
pytest>=8.0.0
|
|
pytest-asyncio>=0.23.0
|
|
pytest-cov>=4.1.0 |