From afa2bf5126221535c825ba74c71669a2f4bdada7 Mon Sep 17 00:00:00 2001 From: albnnc Date: Fri, 10 Jul 2026 16:56:16 +0300 Subject: [PATCH] w --- tools/auth.ts | 6 ++++-- tools/availability.ts | 3 ++- tools/calendar.ts | 6 ++++-- tools/email.ts | 6 ++++-- tools/folders.ts | 3 ++- tools/people.ts | 3 ++- 6 files changed, 18 insertions(+), 9 deletions(-) diff --git a/tools/auth.ts b/tools/auth.ts index 3816082..a8c6308 100644 --- a/tools/auth.ts +++ b/tools/auth.ts @@ -17,7 +17,8 @@ export function registerAuthTools(server: McpServer): void { description: "Authenticate to Exchange EWS using NTLM credentials." + " On first use all fields except domain are required." + " On subsequent logins only password is needed — previously saved" - + " serverUrl, email, username, and domain are reused automatically from config.", + + " serverUrl, email, username, and domain are reused" + + " automatically from config.", inputSchema: z.object({ serverUrl: z.string().optional().describe("EWS server URL"), email: z.string().optional().describe("Email address"), @@ -176,7 +177,8 @@ export function registerAuthTools(server: McpServer): void { "logout", { description: - "Clear stored credentials (serverUrl, email, username, domain, password). No parameters.", + "Clear stored credentials (serverUrl, email, username, domain, password)." + + " No parameters.", inputSchema: z.object({}), outputSchema: z.object({ success: z.boolean(), diff --git a/tools/availability.ts b/tools/availability.ts index e8c1f56..2cd8a91 100644 --- a/tools/availability.ts +++ b/tools/availability.ts @@ -108,7 +108,8 @@ export function registerAvailabilityTools(server: McpServer): void { "find_meeting_time", { description: "Find common free time for multiple attendees." - + " Queries free/busy for all attendees and returns slots where everyone is available.", + + " Queries free/busy for all attendees" + + " and returns slots where everyone is available.", inputSchema: z.object({ emails: z.string().describe( "Comma-separated email addresses of attendees", diff --git a/tools/calendar.ts b/tools/calendar.ts index 4850ec4..00f18d8 100644 --- a/tools/calendar.ts +++ b/tools/calendar.ts @@ -14,7 +14,8 @@ export function registerCalendarTools(server: McpServer): void { startDate: z.string().describe("Start date in YYYY-MM-DD format"), endDate: z.string().describe("End date in YYYY-MM-DD format"), includeBody: z.boolean().default(false).describe( - "If true, fetch full event details (organizer, attendees, body) via GetItem", + "If true, fetch full event details (organizer, attendees, body)" + + " via GetItem", ), }), outputSchema: z.object({ @@ -107,7 +108,8 @@ export function registerCalendarTools(server: McpServer): void { { description: "Download all file attachments from a calendar event to disk." - + " Inline (embedded) attachments are skipped — only standalone file attachments are downloaded.", + + " Inline (embedded) attachments are skipped —" + + " only standalone file attachments are downloaded.", inputSchema: z.object({ itemId: z.string().describe( "The Exchange ItemId of the calendar event", diff --git a/tools/email.ts b/tools/email.ts index 7dbce39..66a9981 100644 --- a/tools/email.ts +++ b/tools/email.ts @@ -16,7 +16,8 @@ export function registerEmailTools(server: McpServer): void { + " Supports optional text search via query/queryScope.", inputSchema: z.object({ folder: z.string().default("Inbox").describe( - "Folder name (Inbox, Sent, Drafts, Deleted, Junk, or custom). Supports Russian folder names", + "Folder name (Inbox, Sent, Drafts, Deleted, Junk, or custom)." + + " Supports Russian folder names", ), limit: z.number().default(10).describe( "Maximum number of emails to return", @@ -297,7 +298,8 @@ export function registerEmailTools(server: McpServer): void { "download_attachments", { description: "Download all file attachments from an email to disk." - + " Inline (embedded) attachments are skipped — only standalone file attachments are downloaded.", + + " Inline (embedded) attachments are skipped —" + + " only standalone file attachments are downloaded.", inputSchema: z.object({ itemId: z.string().describe("The Exchange ItemId of the email"), targetFolder: z.string().default("/tmp/attachments").describe( diff --git a/tools/folders.ts b/tools/folders.ts index 36974b5..539284b 100644 --- a/tools/folders.ts +++ b/tools/folders.ts @@ -9,7 +9,8 @@ export function registerFolderTools(server: McpServer): void { description: "List mailbox folders from the Exchange mailbox.", inputSchema: z.object({ parentFolderId: z.string().default("msgfolderroot").describe( - "Parent folder to list children of. Supports distinguished names (e.g. inbox, calendar)", + "Parent folder to list children of." + + " Supports distinguished names (e.g. inbox, calendar)", ), recursive: z.boolean().default(false).describe( "If true, recursively traverse all subfolders", diff --git a/tools/people.ts b/tools/people.ts index b47ef7e..ffdd2eb 100644 --- a/tools/people.ts +++ b/tools/people.ts @@ -7,7 +7,8 @@ export function registerPeopleTools(server: McpServer): void { "find_person", { description: - "Search for people in the corporate directory (Active Directory) by name, email, or keyword.", + "Search for people in the corporate directory (Active Directory)" + + " by name, email, or keyword.", inputSchema: z.object({ query: z.string().describe( "Name, email address, or keyword to search for",