list_available_accounts
Retrieve a list of available email accounts on the MCP Email Server, enabling efficient management and integration of IMAP and SMTP services.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- mcp_email_server/app.py:29-33 (handler)The handler function for the 'list_available_accounts' tool. It is decorated with @mcp.tool, which also serves as registration. Retrieves masked account attributes from settings.@mcp.tool(description="List all configured email accounts with masked credentials.") async def list_available_accounts() -> list[AccountAttributes]: settings = get_settings() return [account.masked() for account in settings.get_accounts()]