Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Gmail attachments #9

Open
wants to merge 8 commits into
base: main
Choose a base branch
from
Open

Conversation

tumf
Copy link

@tumf tumf commented Dec 10, 2024

This pr enables to handle attachment file download from Gmail.

Features

  • Retrieve multiple emails at once by their IDs.
  • Save multiple attachments from emails to your local system.

Tool Hanlders

add_tool_handler(tools_gmail.GetAttachmentToolHandler())
add_tool_handler(tools_gmail.BulkGetEmailsByIdsToolHandler())
add_tool_handler(tools_gmail.BulkSaveAttachmentsToolHandler())

tumf added 8 commits December 9, 2024 12:38
…Ds in the response for better email handling

refactor(gmail.py): rename get_email_by_id to get_email_by_id_with_attachments for clarity on functionality
fix(tools_gmail.py): update tool description and implementation to reflect changes in email retrieval method
…ts by ID

feat(tools_gmail.py): implement GetAttachmentToolHandler to handle attachment retrieval requests
…entification

feat(tools_gmail.py): implement BulkGetEmailsByIdsToolHandler to retrieve multiple emails by IDs
feat(tools_gmail.py): implement BulkSaveAttachmentsToolHandler to save multiple attachments to disk
chore(server.py): comment out user info logging for cleaner output
…te function to improve code readability and reusability
… clear overview of functionalities offered by the MCP server
…atures to the documentation for Gmail and Calendar integration
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant