Skip to main content
Glama
Soundhannes

IMAP MCP Server

by Soundhannes

start_watch

Start real-time monitoring of your IMAP email inbox using IDLE watch to receive immediate notifications for new messages.

Instructions

Start permanent IDLE watch on INBOX, next, waiting, someday

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • The actual implementation of the start_watch method which initiates the watcher.
    def start_watch(self) -> bool:
        """Start permanent IDLE watch on INBOX, next, waiting, someday."""
        if not self.watcher:
            config_path = Path(self.config.get("_config_path", "config.json"))
            self.watcher = get_watcher(str(config_path))
    
        self.watcher.start()
        self.watching = True
        return True
  • Registration of the start_watch tool definition.
    make_tool(
        "start_watch",
        "Start permanent IDLE watch on INBOX, next, waiting, someday",
        {},
    ),
  • The handler logic in the server to invoke the start_watch method on the imap_client.
    elif name == "start_watch":
        return imap_client.start_watch()

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/Soundhannes/IMAP-MCP'

If you have feedback or need assistance with the MCP directory API, please join our Discord server