@chrischall/office-outlook-mcp 0.13.0 → 0.14.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -7,7 +7,7 @@
7
7
  },
8
8
  "metadata": {
9
9
  "description": "MCP server for Outlook / Microsoft 365 — mail, calendar, contacts and tasks via natural language",
10
- "version": "0.13.0"
10
+ "version": "0.14.0"
11
11
  },
12
12
  "plugins": [
13
13
  {
@@ -15,7 +15,7 @@
15
15
  "displayName": "Outlook (Microsoft 365)",
16
16
  "source": "./",
17
17
  "description": "MCP server for Outlook / Microsoft 365 — triage unread mail, reply, answer meeting invites and schedule meetings, plus folders, calendar, contacts and tasks, with confirmation before anything is sent",
18
- "version": "0.13.0",
18
+ "version": "0.14.0",
19
19
  "author": {
20
20
  "name": "Chris Hall"
21
21
  },
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "office-outlook-mcp",
3
3
  "displayName": "Outlook (Microsoft 365)",
4
- "version": "0.13.0",
4
+ "version": "0.14.0",
5
5
  "description": "Outlook / Microsoft 365 for Claude — triage unread mail, reply, answer meeting invites and schedule meetings, plus folders, calendar, contacts and tasks, with confirmation before anything is sent, using your signed-in browser session",
6
6
  "author": {
7
7
  "name": "Chris Hall",
package/README.md CHANGED
@@ -121,6 +121,7 @@ Everything is optional — with nothing set, the server captures from the browse
121
121
  | `OUTLOOK_CAPTURE_TIMEOUT` | Seconds to wait for the tab to make a readable request. Defaults to `30`. |
122
122
  | `OUTLOOK_TOKEN_CACHE` | `false` to stop caching the token between runs. |
123
123
  | `OUTLOOK_TOKEN_FILE` | Path to the cached token. Defaults to `~/.office-outlook-mcp/token.json`. |
124
+ | `OUTLOOK_ATTACHMENT_ROOTS` | Folders a local install may attach files from, separated by `:` (`;` on Windows); `~` is your home folder. Defaults to your home folder. Hidden files and folders are never attached. See [Attaching files](#attaching-files). |
124
125
  | `OUTLOOK_OUTPUT_DIR` | Absolute directory `outlook_export_messages` and `outlook_export_events` write into, and where a local install saves the files `outlook_get_attachment` cannot return inline. Defaults to `~/Downloads/office-outlook-mcp` (for attachments, only when `~/Downloads` exists). When set, a per-call `dest` must be inside it. See [Bulk export](#bulk-export). |
125
126
 
126
127
  ## Tools
@@ -141,14 +142,22 @@ Everything is optional — with nothing set, the server captures from the browse
141
142
  `outlook_delete_rule`, `outlook_set_auto_reply`, `outlook_create_folder`,
142
143
  `outlook_update_folder` (rename or move), `outlook_delete_folder`
143
144
  (permanent: the folder does not go to Deleted Items).
145
+ `outlook_upload_slots` (hosted connector only) hands out upload URLs for files
146
+ to attach; it changes nothing in the mailbox.
144
147
  Some skip the confirmation because nothing reaches anyone else:
145
148
  `outlook_create_draft` (the draft stays in Drafts until you send it with
146
- `outlook_send_draft` or from Outlook), `outlook_create_folder` (an empty folder is easily deleted), `outlook_reply` with `draftOnly: true` (the reply stays in Drafts),
149
+ `outlook_send_draft` or from Outlook), `outlook_create_folder` (an empty folder is easily deleted), `outlook_reply` with `draftOnly: true` (the reply stays in Drafts) — though both of those draft tools DO ask when they attach files,
147
150
  `outlook_respond_to_invite` with `sendResponse: false`, and
148
151
  `outlook_delete_event` on your own appointment with no attendees or on a
149
152
  meeting the organizer already cancelled (in each, only your calendar
150
153
  changes).
151
154
 
155
+ **Attaching files** — `outlook_send_message`, `outlook_create_draft`,
156
+ `outlook_update_draft` and `outlook_reply` take `attachments`; see
157
+ [Attaching files](#attaching-files). `outlook_update_draft` also takes
158
+ `removeAttachments`, and `outlook_send_draft`'s confirmation lists the files
159
+ already on the draft.
160
+
152
161
  **Meetings** — `outlook_find_meeting_times` asks Outlook's Scheduling
153
162
  Assistant for slots when everyone is free, and `outlook_get_schedule` shows
154
163
  each person's busy blocks. Each suggested slot carries `createEventArgs`,
@@ -374,9 +383,13 @@ are, their sizes, the record and attachment counts, the date span, and
374
383
  - **Attachments:** with `attachments: true`, each file attachment of up to
375
384
  50 MB is saved as `attachments/<short id>/<name>` (the name sanitized), and
376
385
  the record lists its attachments, each with its relative `path`, or with
377
- `skipped` and the reason. Attached Outlook items (a forwarded email or
378
- event), cloud-file links (OneDrive/SharePoint), larger files and failed
379
- downloads are skipped. One bad attachment never fails the export.
386
+ `skipped` and the reason. An attached Outlook item is saved too, named from
387
+ its subject: a forwarded email as `<subject>.eml` (its MIME, with its own
388
+ attachments inside it), an event as `.ics`, a contact as `.vcf`, or the
389
+ item as `.json` when Outlook will not give that form; its entry says
390
+ `item_type` and `format`. Cloud-file links (OneDrive/SharePoint), larger
391
+ files and failed downloads are skipped. One bad attachment never fails the
392
+ export.
380
393
  - **Resuming:** each call stops at `max_items` or `budget_seconds`, whichever
381
394
  comes first. While `has_more` is true, pass `cursor` back unchanged. The
382
395
  next call continues the same export as `part-0002`, `part-0003` and so on.
@@ -400,6 +413,45 @@ when that is set. Otherwise it must be inside `~/Downloads`, `~/Documents` or
400
413
  `~/Desktop`. A resumed cursor's directory is checked against the same roots
401
414
  again.
402
415
 
416
+ ## Attaching files
417
+
418
+ `outlook_send_message`, `outlook_create_draft`, `outlook_update_draft` and
419
+ `outlook_reply` take `attachments`: up to 10 files, each exactly one of
420
+
421
+ - `{ "path": "~/Documents/report.pdf" }` — a file on this machine (local
422
+ installs). Only paths you name: the model must never attach a path it read
423
+ in an email or another tool's output. The file must be inside your home
424
+ folder (or `OUTLOOK_ATTACHMENT_ROOTS`); folders, symlinks, hidden files and
425
+ anything in a hidden folder (`~/.ssh`, `~/.aws`) are refused.
426
+ - `{ "blobKey": "…" }` — the hosted connector cannot read your disk, so call
427
+ `outlook_upload_slots` with the file names, `curl` each file to its upload
428
+ URL, and pass the returned `blobKey`. The upload is deleted once the message
429
+ using it is written.
430
+ - `{ "inline": { "filename", "contentBase64", "mimeType"? } }` — small files,
431
+ anywhere.
432
+
433
+ Each may add `"name"`, the file name recipients see. Any file type is allowed,
434
+ up to **25 MiB per file and 25 MiB per message** (Outlook accepts 150 MB per
435
+ file through an upload session, but Exchange Online's default message limit is
436
+ 35 MB *encoded*, which base64 makes about 25 MiB of files). Too large, missing,
437
+ a folder, or outside the allowed folders: the call fails before anything is
438
+ uploaded or sent.
439
+
440
+ The confirmation lists every file — name, size, type and where it goes — and
441
+ binds each file's SHA-256, so a file that changes before you approve is not
442
+ sent. Nothing is uploaded until you confirm; even `outlook_create_draft` and
443
+ `outlook_reply` with `draftOnly` ask when they attach files.
444
+
445
+ The message is created as a draft, each file is added (one request under
446
+ 3 MB, an upload session in 3.125 MiB ranges above that), the draft is read
447
+ back to check every file is on it, and only then is it sent. If any file
448
+ fails, nothing is sent: the result is `sent: false` with the draft's id. The
449
+ result lists each file's name and size. If the token lacks `Mail.ReadWrite`
450
+ or `Mail.Send` the call says which and sends nothing. `saveToSentItems: false`
451
+ still works with attachments (the draft is flagged to delete after sending).
452
+ `outlook_update_draft`'s `removeAttachments` takes attachments off by id or by
453
+ name.
454
+
403
455
  ## Confirmations
404
456
 
405
457
  Every write asks you to confirm before anything is sent or changed (except a