msexchange-mcp
Version:
MCP server for Microsoft Exchange/Outlook email operations via Microsoft Graph API
60 lines • 1.87 kB
JavaScript
import { z } from 'zod';
export const UserIdSchema = z.object({
__user_id__: z.string().describe('The user ID for the email account'),
});
export const EmailAddressSchema = z.string().email();
export const AttachmentSchema = z.object({
id: z.string(),
name: z.string(),
contentType: z.string(),
size: z.number(),
contentBytes: z.string().optional(),
});
export const EmailSchema = z.object({
id: z.string(),
subject: z.string(),
from: z.object({
emailAddress: z.object({
name: z.string().optional(),
address: z.string().email(),
}),
}).optional(),
toRecipients: z.array(z.object({
emailAddress: z.object({
name: z.string().optional(),
address: z.string().email(),
}),
})).optional(),
ccRecipients: z.array(z.object({
emailAddress: z.object({
name: z.string().optional(),
address: z.string().email(),
}),
})).optional(),
bccRecipients: z.array(z.object({
emailAddress: z.object({
name: z.string().optional(),
address: z.string().email(),
}),
})).optional(),
receivedDateTime: z.string(),
sentDateTime: z.string().optional(),
bodyPreview: z.string(),
body: z.object({
contentType: z.string(),
content: z.string(),
}).optional(),
isRead: z.boolean(),
isDraft: z.boolean().optional(),
hasAttachments: z.boolean(),
attachments: z.array(AttachmentSchema).optional(),
importance: z.string().optional(),
categories: z.array(z.string()).optional(),
conversationId: z.string().optional(),
parentFolderId: z.string().optional(),
internetMessageHeaders: z.array(z.object({
name: z.string(),
value: z.string(),
})).optional(),
});
//# sourceMappingURL=types.js.map