UNPKG

msexchange-mcp

Version:

MCP server for Microsoft Exchange/Outlook email operations via Microsoft Graph API

25 lines 827 B
import { z } from 'zod'; import accountsConfig from '../config/accountsLoader.js'; export const listAccountsTool = { name: 'list_accounts', description: 'List all configured email accounts', parameters: z.object({}), execute: async () => { return { content: [ { type: 'text', text: JSON.stringify({ accounts: accountsConfig.accounts.map(acc => ({ id: acc.id, email: acc.email, displayName: acc.displayName, })), count: accountsConfig.accounts.length, }, null, 2), }, ], }; }, }; //# sourceMappingURL=listAccounts.js.map