Documentation
¶
Index ¶
- func AccountsHandler(ops imap.Operations) server.ToolHandlerFunc
- func AccountsTool() mcp.Tool
- func AttachmentGetHandler(ops imap.Operations, limits AttachmentLimits) server.ToolHandlerFunc
- func AttachmentGetTool() mcp.Tool
- func AttachmentListHandler(ops imap.Operations) server.ToolHandlerFunc
- func AttachmentListTool() mcp.Tool
- func BatchHandler(ops imap.Operations) server.ToolHandlerFunc
- func BatchTool() mcp.Tool
- func CopyHandler(ops imap.Operations) server.ToolHandlerFunc
- func CopyTool() mcp.Tool
- func DeleteHandler(ops imap.Operations) server.ToolHandlerFunc
- func DeleteTool() mcp.Tool
- func DraftCreateHandler(imapOps imap.Operations, smtpOps smtp.Operations, limits AttachmentLimits) server.ToolHandlerFunc
- func DraftCreateTool() mcp.Tool
- func DraftSendHandler(imapOps imap.Operations, smtpOps smtp.Operations) server.ToolHandlerFunc
- func DraftSendTool() mcp.Tool
- func FlagHandler(ops imap.Operations) server.ToolHandlerFunc
- func FlagTool() mcp.Tool
- func FolderCreateHandler(ops imap.Operations) server.ToolHandlerFunc
- func FolderCreateTool() mcp.Tool
- func FoldersHandler(ops imap.Operations) server.ToolHandlerFunc
- func FoldersTool() mcp.Tool
- func ForwardHandler(imapOps imap.Operations, smtpOps smtp.Operations, limits AttachmentLimits) server.ToolHandlerFunc
- func ForwardTool() mcp.Tool
- func GetHandler(ops imap.Operations) server.ToolHandlerFunc
- func GetTool() mcp.Tool
- func ListHandler(ops imap.Operations) server.ToolHandlerFunc
- func ListTool() mcp.Tool
- func MarkReadHandler(ops imap.Operations) server.ToolHandlerFunc
- func MarkReadTool() mcp.Tool
- func MoveHandler(ops imap.Operations) server.ToolHandlerFunc
- func MoveTool() mcp.Tool
- func ReadBodyHandler(ops imap.Operations) server.ToolHandlerFunc
- func ReadBodyTool() mcp.Tool
- func RegisterAll(s *server.MCPServer, imapOps imap.Operations, smtpOps smtp.Operations, ...)
- func ReplyHandler(imapOps imap.Operations, smtpOps smtp.Operations) server.ToolHandlerFunc
- func ReplyTool() mcp.Tool
- func SearchHandler(ops imap.Operations) server.ToolHandlerFunc
- func SearchTool() mcp.Tool
- func SendHandler(ops smtp.Operations, limits AttachmentLimits) server.ToolHandlerFunc
- func SendTool() mcp.Tool
- func SplitAddresses(s string) []string
- func ThreadHandler(ops imap.Operations) server.ToolHandlerFunc
- func ThreadTool() mcp.Tool
- func UnreadHandler(ops imap.Operations) server.ToolHandlerFunc
- func UnreadTool() mcp.Tool
- type AttachmentInput
- type AttachmentLimits
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AccountsHandler ¶
func AccountsHandler(ops imap.Operations) server.ToolHandlerFunc
AccountsHandler returns the handler for email_accounts.
func AccountsTool ¶
AccountsTool returns the email_accounts tool definition.
func AttachmentGetHandler ¶
func AttachmentGetHandler(ops imap.Operations, limits AttachmentLimits) server.ToolHandlerFunc
AttachmentGetHandler returns the handler for email_attachment_get.
func AttachmentGetTool ¶
AttachmentGetTool returns the email_attachment_get tool definition.
func AttachmentListHandler ¶
func AttachmentListHandler(ops imap.Operations) server.ToolHandlerFunc
AttachmentListHandler returns the handler for email_attachment_list.
func AttachmentListTool ¶
AttachmentListTool returns the email_attachment_list tool definition.
func BatchHandler ¶
func BatchHandler(ops imap.Operations) server.ToolHandlerFunc
BatchHandler returns the handler for email_batch.
func CopyHandler ¶
func CopyHandler(ops imap.Operations) server.ToolHandlerFunc
CopyHandler returns the handler for email_copy.
func DeleteHandler ¶
func DeleteHandler(ops imap.Operations) server.ToolHandlerFunc
DeleteHandler returns the handler for email_delete.
func DraftCreateHandler ¶
func DraftCreateHandler( imapOps imap.Operations, smtpOps smtp.Operations, limits AttachmentLimits, ) server.ToolHandlerFunc
DraftCreateHandler returns the handler for email_draft_create.
func DraftCreateTool ¶
DraftCreateTool returns the email_draft_create tool definition.
func DraftSendHandler ¶
func DraftSendHandler(imapOps imap.Operations, smtpOps smtp.Operations) server.ToolHandlerFunc
DraftSendHandler returns the handler for email_draft_send.
func DraftSendTool ¶
DraftSendTool returns the email_draft_send tool definition.
func FlagHandler ¶
func FlagHandler(ops imap.Operations) server.ToolHandlerFunc
FlagHandler returns the handler for email_flag.
func FolderCreateHandler ¶
func FolderCreateHandler(ops imap.Operations) server.ToolHandlerFunc
FolderCreateHandler returns the handler for email_folder_create.
func FolderCreateTool ¶
FolderCreateTool returns the email_folder_create tool definition.
func FoldersHandler ¶
func FoldersHandler(ops imap.Operations) server.ToolHandlerFunc
FoldersHandler returns the handler for email_folders.
func FoldersTool ¶
FoldersTool returns the email_folders tool definition.
func ForwardHandler ¶
func ForwardHandler(imapOps imap.Operations, smtpOps smtp.Operations, limits AttachmentLimits) server.ToolHandlerFunc
ForwardHandler returns the handler for email_forward.
func ForwardTool ¶
ForwardTool returns the email_forward tool definition.
func GetHandler ¶
func GetHandler(ops imap.Operations) server.ToolHandlerFunc
GetHandler returns the handler for email_get.
func ListHandler ¶
func ListHandler(ops imap.Operations) server.ToolHandlerFunc
ListHandler returns the handler for email_list.
func MarkReadHandler ¶
func MarkReadHandler(ops imap.Operations) server.ToolHandlerFunc
MarkReadHandler returns the handler for email_mark_read.
func MarkReadTool ¶
MarkReadTool returns the email_mark_read tool definition.
func MoveHandler ¶
func MoveHandler(ops imap.Operations) server.ToolHandlerFunc
MoveHandler returns the handler for email_move.
func ReadBodyHandler ¶
func ReadBodyHandler(ops imap.Operations) server.ToolHandlerFunc
ReadBodyHandler returns the handler for email_read_body.
func ReadBodyTool ¶
ReadBodyTool returns the email_read_body tool definition.
func RegisterAll ¶
func RegisterAll( s *server.MCPServer, imapOps imap.Operations, smtpOps smtp.Operations, limits AttachmentLimits, )
RegisterAll registers all email tools with the MCP server.
func ReplyHandler ¶
func ReplyHandler(imapOps imap.Operations, smtpOps smtp.Operations) server.ToolHandlerFunc
ReplyHandler returns the handler for email_reply.
func SearchHandler ¶
func SearchHandler(ops imap.Operations) server.ToolHandlerFunc
SearchHandler returns the handler for email_search.
func SendHandler ¶
func SendHandler(ops smtp.Operations, limits AttachmentLimits) server.ToolHandlerFunc
SendHandler returns the handler for email_send.
func SplitAddresses ¶
SplitAddresses splits a comma-separated string of email addresses into a trimmed slice, discarding empty entries.
func ThreadHandler ¶
func ThreadHandler(ops imap.Operations) server.ToolHandlerFunc
ThreadHandler returns the handler for email_thread.
func UnreadHandler ¶
func UnreadHandler(ops imap.Operations) server.ToolHandlerFunc
UnreadHandler returns the handler for email_unread.
Types ¶
type AttachmentInput ¶
type AttachmentInput struct {
Path string `json:"path"`
Filename string `json:"filename,omitempty"`
ContentType string `json:"content_type,omitempty"`
}
AttachmentInput represents a file attachment provided by the caller.
type AttachmentLimits ¶
type AttachmentLimits struct {
MaxFileSizeBytes int64
MaxTotalSizeBytes int64
MaxDownloadSizeBytes int64
}
AttachmentLimits holds byte-level attachment size limits derived from config.
func LimitsFromConfig ¶
func LimitsFromConfig(cfg *config.Config) AttachmentLimits
LimitsFromConfig converts MB-based config values to byte-level limits.