This commit is contained in:
2026-07-10 16:36:22 +03:00
parent 990a8d09b6
commit 17a6f91b3f
7 changed files with 56 additions and 219 deletions
+4 -3
View File
@@ -6,13 +6,14 @@ export function registerFolderTools(server: McpServer): void {
server.registerTool(
"get_folders",
{
description: "List mail folders from the Exchange mailbox",
description:
"List mailbox folders from the Exchange mailbox. Returns a list of Folder objects (name, id, totalCount, unreadCount, childFolderCount).",
inputSchema: z.object({
parentFolderId: z.string().default("msgfolderroot").describe(
"Parent folder to list children of (default: msgfolderroot)",
"Parent folder to list children of. Supports distinguished names (e.g. inbox, calendar). Default: msgfolderroot",
),
recursive: z.boolean().default(false).describe(
"If True, traverse all subfolders recursively",
"If true, recursively traverse all subfolders. Default: false",
),
}),
},