systemprompt-mcp-gmail
Version:
A specialized Model Context Protocol (MCP) server that enables you to search, read, delete and send emails from your Gmail account, leveraging an AI Agent to help with each operation.
40 lines (39 loc) • 814 B
TypeScript
export interface EmailMetadata {
id: string;
threadId: string;
snippet: string;
from: {
name?: string;
email: string;
};
to: {
name?: string;
email: string;
}[];
subject: string;
date: Date;
labels: {
id: string;
name: string;
}[];
hasAttachments: boolean;
isUnread: boolean;
isImportant: boolean;
}
export interface SendEmailOptions {
to: string | string[];
subject: string;
body: string;
cc?: string | string[];
bcc?: string | string[];
replyTo?: string;
attachments?: Array<{
filename: string;
content: Buffer | string;
contentType?: string;
}>;
isHtml?: boolean;
}
export interface DraftEmailOptions extends SendEmailOptions {
id?: string;
}