mcp-newoutlook 0.32.30 → 0.33.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.
- package/README.md +26 -18
- package/dist/body.js +3 -1
- package/dist/body.js.map +1 -1
- package/dist/bridge.js +259 -55
- package/dist/bridge.js.map +1 -1
- package/dist/build-version.json +1 -1
- package/dist/clients.js +1 -0
- package/dist/clients.js.map +1 -1
- package/dist/compat.js +35 -0
- package/dist/compat.js.map +1 -0
- package/dist/extension.js +78 -12
- package/dist/extension.js.map +1 -1
- package/dist/hub.js +34 -51
- package/dist/hub.js.map +1 -1
- package/dist/hublog.js +166 -0
- package/dist/hublog.js.map +1 -0
- package/dist/index.js +16 -20
- package/dist/index.js.map +1 -1
- package/dist/lifecycle.js +76 -0
- package/dist/lifecycle.js.map +1 -0
- package/dist/native.js +48 -21
- package/dist/native.js.map +1 -1
- package/dist/nativehost.js +4 -3
- package/dist/nativehost.js.map +1 -1
- package/dist/requesttimes.js +44 -0
- package/dist/requesttimes.js.map +1 -0
- package/dist/setup.js +26 -12
- package/dist/setup.js.map +1 -1
- package/dist/tools.js +189 -30
- package/dist/tools.js.map +1 -1
- package/extension/background.js +967 -133
- package/extension/manifest.json +5 -5
- package/extension/owa.js +579 -24
- package/extension/popup.html +2 -0
- package/extension/popup.js +3 -0
- package/package.json +2 -1
package/README.md
CHANGED
|
@@ -15,10 +15,10 @@ AI app ────stdio(MCP)──► mcp-newoutlook server ──ws://127.0.0.
|
|
|
15
15
|
| Tool | What it does |
|
|
16
16
|
|---|---|
|
|
17
17
|
| `get_version` | Server and extension versions, and the connection/session status. Per Outlook site, `fullTextSearch` and `teamsMeetings` show whether its search and Teams sessions are there and, for search, still usable. `outlookTabsAsleep` counts Outlook tabs Chrome has frozen or discarded, and `outlookTabsVisible` those that are the active tab of a window that isn't minimized (one covered by another app still counts, as Chrome can't tell) |
|
|
18
|
-
| `reload_extension` | Reloads the browser extension from disk after an update and waits until it is back, reporting the version before and after |
|
|
18
|
+
| `reload_extension` | Reloads the browser extension from disk after an update and waits until it is back, reporting the version before and after. A Chrome Web Store copy is asked to check the Store for an update instead, and reloads only to apply one |
|
|
19
19
|
| `list_folders` | Every mail folder, including subfolders, with its path (`Inbox/Projects/Northwind`) and counts (`include_ids: true` adds folder ids) |
|
|
20
20
|
| `search_emails` | Lists emails, or searches them with Outlook-style syntax (`from:alice`, `subject:report`, `cc:bob`, `hasattachment:yes`, `after:2026-09-01`, `received:today`; see below) in Outlook's full-text index, newest first or by relevance (`order`). By default it covers Inbox, Sent Items and all their subfolders. `folder` takes a standard name (`inbox`, `sentitems`…), a path or id from `list_folders`, a list of these, or `all` for every folder; each folder is searched with its subfolders (`subfolders: false` leaves them out). Results carry their folder path. `preview: true` adds each email's To line and the start of its body. Each result carries its `conversationId` |
|
|
21
|
-
| `read_email` | One email, or several at once (a list of ids): headers, recipients, body (text/html) and the attachment list. Text bodies drop the quoted history and repeated disclaimers by default (`include_quoted: true` keeps them); bodies are capped at `max_length` (20 000 characters). `webLink` opens the email in Outlook on the web; `conversationId` is the same for every email of a thread. |
|
|
21
|
+
| `read_email` | One email, or several at once (a list of ids): headers, recipients, body (text/html) and the attachment list. Text bodies drop the quoted history and repeated disclaimers by default (`include_quoted: true` keeps them); bodies are capped at `max_length` (20 000 characters). `webLink` opens the email in Outlook on the web; `conversationId` is the same for every email of a thread; `internetMessageId` is its Message-ID header. |
|
|
22
22
|
| `read_thread` | The whole conversation an email belongs to, across folders (Sent Items included), oldest first, each message without the quoted history |
|
|
23
23
|
| `list_events` | Calendar appointments and meetings in a date range (default: the next 7 days), optionally only those whose subject, location, organizer or attendees match `query` (`searchNote` says when attendees couldn't be read), recurring meetings expanded, with location, organizer, your response and free/busy. Times in UTC and local time. |
|
|
24
24
|
| `find_meeting_times` | Suggests times when you and the attendees (addresses or names) are all free, from their free/busy and your calendar, inside working hours (default 09:00–17:00 local, weekdays). Tentative meetings count as busy unless `allow_tentative` |
|
|
@@ -26,17 +26,18 @@ AI app ────stdio(MCP)──► mcp-newoutlook server ──ws://127.0.0.
|
|
|
26
26
|
| `find_contacts` | Looks people up by name, email or domain in your personal contacts, the organization directory and the people you exchange email with (external partners). Contacts and directory give job title, department, company, office and phone numbers where stored; people from mail come with how many emails were found, the latest one, the folders they're filed in and the signature of their latest email (usually title, company, phone and address). `source` picks `contacts`, `directory`, `mail` or `all` (mail only when contacts and the directory find nobody, since it scans every folder). If Outlook is throttling, the mail part can be incomplete; the answer then says `partial: true`. |
|
|
27
27
|
| `respond_to_event` | Accept, tentatively accept or decline a meeting, optionally with a note to the organizer. **You must confirm.** |
|
|
28
28
|
| `create_event` | Your own appointment (created at once, nothing is sent), or a meeting with attendees by address or name, whose invitation **you must confirm**. Meetings get a Microsoft Teams link by default (`teams_meeting`), made the way Outlook makes it. Outlook sets up its Teams session when its tab loads. If there is none, the extension loads a hidden frame of the Outlook site in the tab, which sets it up, and waits up to 30 s for it; if it still doesn't come, reload the Outlook tab (or give `teams_meeting: false`) |
|
|
29
|
-
| `create_draft` | Writes
|
|
30
|
-
| `create_reply_draft` | Reply or reply all to an email, as a draft with the original quoted. Never sends. |
|
|
31
|
-
| `create_forward_draft` | Forward an email with its attachments, as a draft. Never sends. |
|
|
32
|
-
| `update_draft` | Change a draft's recipients, subject or body, or remove attachments |
|
|
29
|
+
| `create_draft` | Writes a new email (a new conversation) into Drafts, with your Outlook signature for new mail. Never sends. Refuses reply subjects (`RE:`, `AW:`, `SV:`, `Antw:`, `Odp:`, `답장:`, `回复:`, `回覆:`, also as `RE[2]:` or after `[EXTERNAL]` / `[EXT]`); reply with `create_reply_draft` instead. |
|
|
30
|
+
| `create_reply_draft` | Reply or reply all to an email, as a draft with your reply signature and the original quoted. Never sends. |
|
|
31
|
+
| `create_forward_draft` | Forward an email with its attachments, as a draft with your reply signature. Never sends. |
|
|
32
|
+
| `update_draft` | Change a draft's recipients, subject or body, or remove attachments. A new body replaces only your text: a reply's or forward's quoted original and the draft's signature stay (`keep_quoted: false` replaces everything). |
|
|
33
|
+
| `read_draft` | Reads a draft without changing it, in a fixed form for checking what would be sent: `draft_id`, `change_key`, `in_reply_to` (the Message-ID the reply answers, or null), `to`/`cc`/`bcc` (addresses lowercased, trimmed, sorted, each once), `subject`, `body_html` (the HTML body as Outlook holds it, line ends as `\n`) and `attachments` (`{ name, size }`, inline ones included, sorted by name, then size), plus `body_text` (the body as plain text, line ends as `\n`; not part of the fixed form). Refuses an email that isn't a draft, a draft that changed between its two reads or came back without a change key, and a draft it can't describe exactly (an attachment without a size, a recipient with no address or only an Exchange X500 address). |
|
|
33
34
|
| `mark_emails` | Mark one or more emails read/unread, flag them (flagged, complete, none) |
|
|
34
35
|
| `move_emails` | Move one or more emails to another folder. Moving to `deleteditems` deletes them (recoverable from Deleted Items). |
|
|
35
36
|
| `add_attachment` | Attaches one or more local files (≤ 25 MB each) to a draft |
|
|
36
37
|
| `download_email` | Saves one or more emails as `.eml` files |
|
|
37
38
|
| `download_attachments` | Saves all file attachments of one or more emails (inline images optional). Attached emails are saved as `.eml` files. With several emails, each email's files go into their own subfolder named after its subject. |
|
|
38
39
|
| `send_draft` | Asks to send a draft. **The user must click Send.** |
|
|
39
|
-
| `compose_and_send` | Write, attach and send in one step. **The user must click Send.** |
|
|
40
|
+
| `compose_and_send` | Write, attach and send in one step. With `reply_to_id` (and `reply_all`) it sends a reply in the original's thread. **The user must click Send.** |
|
|
40
41
|
|
|
41
42
|
Email and folder ids can be Outlook's own or Microsoft Graph's (with `-` and `_` in place of `/` and `+`).
|
|
42
43
|
|
|
@@ -44,6 +45,10 @@ Email and folder ids can be Outlook's own or Microsoft Graph's (with `-` and `_`
|
|
|
44
45
|
|
|
45
46
|
`to`, `cc` and `bcc` (in `create_draft`, `create_reply_draft`, `create_forward_draft`, `update_draft` and `compose_and_send`) take email addresses or names, e.g. `["Daniel Kowalski", "bob@example.com"]`. Each name is looked up in your contacts and the directory first (a few seconds); your mail is searched too only when they don't give exactly one exact full-name match, so an outside sender with the same name as a colleague isn't considered. A name must mean exactly one person: an exact full-name match wins among several ("Kowalski, Daniel (ENG)" matches "Daniel Kowalski"). Otherwise nothing is created and the matching people are listed. The result's `resolvedRecipients` shows what each name became.
|
|
46
47
|
|
|
48
|
+
### Signatures
|
|
49
|
+
|
|
50
|
+
`create_draft` and `compose_and_send` add your default Outlook signature for new mail below the body; `create_reply_draft` and `create_forward_draft` add your default signature for replies and forwards between your text and the quoted original, as Outlook does. `signature` picks another one by name, or `none`; an unknown name creates nothing and lists your signatures. A body that already holds the signature doesn't get it twice, and a text body becomes HTML when the signature is HTML. The result's `signature` names the one used; if your signatures couldn't be read, the draft is made without one and `signatureNote` says so. Signatures are read from Outlook's roaming signatures (or the mailbox's own signature, for mailboxes without them) at most every 5 minutes.
|
|
51
|
+
|
|
47
52
|
### Sending always needs your click
|
|
48
53
|
|
|
49
54
|
The same goes for meeting answers (`respond_to_event`) and meeting invitations (`create_event` with attendees): the window shows the meeting, the answer or the invitation, and nothing happens until you click its button.
|
|
@@ -63,10 +68,10 @@ Run it from any folder other than a clone of this repo, e.g. `cd ~ && npx mcp-ne
|
|
|
63
68
|
`setup` does the rest and can be run again at any time:
|
|
64
69
|
|
|
65
70
|
- puts this release in `~/.mcp-newoutlook/versions/` and installs the launcher `~/.mcp-newoutlook/launch.cjs`, which starts the current release in about a second, without the network;
|
|
66
|
-
- registers the server with the AI apps it finds: Claude Code, Claude Desktop, Cursor, VS Code (Copilot), Windsurf, Gemini CLI and Codex. They start `~/.mcp-newoutlook/launch.cjs` with the Node that ran setup, both by absolute path. It shows what it will change and asks first (`--yes` skips the question), only ever adds or updates its own `newoutlook` entry, and keeps a `.mcp-newoutlook.bak` copy of each file it changes. If the launcher can't be set up (no npm to fetch a missing piece, say), setup says why and registers `npx --prefer-online -y mcp-newoutlook@latest` instead. Other MCP clients: register `<node> <home>/.mcp-newoutlook/launch.cjs` as a stdio server, with absolute paths (e.g. `C:\Program Files\nodejs\node.exe C:\Users\you\.mcp-newoutlook\launch.cjs`), or `npx -y mcp-newoutlook` if a slow start (20–45 s on Windows) doesn't matter to them. ChatGPT and claude.ai on the web can't use local servers;
|
|
71
|
+
- registers the server with the AI apps it finds: Claude Code, Claude Desktop, Cursor, VS Code (Copilot), Windsurf, Gemini CLI, Antigravity and Codex. They start `~/.mcp-newoutlook/launch.cjs` with the Node that ran setup, both by absolute path. It shows what it will change and asks first (`--yes` skips the question), only ever adds or updates its own `newoutlook` entry, and keeps a `.mcp-newoutlook.bak` copy of each file it changes. If the launcher can't be set up (no npm to fetch a missing piece, say), setup says why and registers `npx --prefer-online -y mcp-newoutlook@latest` instead. Other MCP clients: register `<node> <home>/.mcp-newoutlook/launch.cjs` as a stdio server, with absolute paths (e.g. `C:\Program Files\nodejs\node.exe C:\Users\you\.mcp-newoutlook\launch.cjs`), or `npx -y mcp-newoutlook` if a slow start (20–45 s on Windows) doesn't matter to them. ChatGPT and claude.ai on the web can't use local servers;
|
|
67
72
|
- installs the extension in `~/.mcp-newoutlook/extension`;
|
|
68
73
|
- registers the native-messaging host for the Chrome and Edge profiles it finds (see [The native host](#the-native-host));
|
|
69
|
-
- opens the Extensions page of Chrome and/or Edge, and that folder. The one manual step, in the browser you use Outlook in: turn on *Developer mode* and click *Load unpacked* on the folder;
|
|
74
|
+
- opens the Extensions page of Chrome and/or Edge, and that folder. The one manual step, in the browser you use Outlook in: turn on *Developer mode* and click *Load unpacked* on the folder. When a copy from the Chrome Web Store is already connected, setup skips the folder and this step: that copy updates from the Store;
|
|
70
75
|
- waits until the extension connects and Outlook answers, then says *Ready*.
|
|
71
76
|
|
|
72
77
|
Restart the AI apps it registered (in Claude Code: `/mcp`), and ask about your mail.
|
|
@@ -80,7 +85,7 @@ There is nothing to pair: the extension has a fixed id that the server trusts. Y
|
|
|
80
85
|
Nothing to do:
|
|
81
86
|
|
|
82
87
|
- New releases download in the background, at most twice a day, once a session has started. Startup never waits for them. A new release takes effect the next time each AI app (or session) starts the server; the running server keeps its version. That server updates `~/.mcp-newoutlook/extension` and takes over from servers of older versions still running in other sessions.
|
|
83
|
-
- The extension is reloaded from that folder once no Outlook tab is visible (the active tab of a window that isn't minimized; a window covered by another app still counts), since a reload loses the captured Outlook session and a visible tab isn't reloaded to get it back. It's reloaded sooner if no Outlook session of any kind is captured, and after 24 hours in any case. A reload refused because a send confirmation is open is tried again every minute, and a second browser that has reached the new version by then is left alone. Until the reload, `get_version` shows the older extension, and the native host keeps its older version too (see [The native host](#the-native-host)). The wait outlasts the server: `~/.mcp-newoutlook/pending-extension-reload.json` holds the version and when the wait began (and, while a server is reloading, when it started, so the others don't reload as well), and any server started later carries on from it.
|
|
88
|
+
- The extension is reloaded from that folder once no Outlook tab is visible (the active tab of a window that isn't minimized; a window covered by another app still counts), since a reload loses the captured Outlook session and a visible tab isn't reloaded to get it back. It's reloaded sooner if no Outlook session of any kind is captured, and after 24 hours in any case. A reload refused because a send confirmation is open is tried again every minute, and a second browser that has reached the new version by then is left alone. Until the reload, `get_version` shows the older extension with an `extensionReload` field (the version waiting to load, since when, the latest time it reloads, and why it waits) and a note saying so, the server logs to stderr once when the wait starts and once when it ends (or a reload is refused), and the native host keeps its older version too (see [The native host](#the-native-host)). The wait outlasts the server: `~/.mcp-newoutlook/pending-extension-reload.json` holds the version and when the wait began (and, while a server is reloading, when it started, so the others don't reload as well), and any server started later carries on from it.
|
|
84
89
|
- `get_version` shows the version running, and under `launcher`, `nextStart`: the version the next start runs, when it differs. It also shows whether updates are on and how the last check went.
|
|
85
90
|
- A release that fails to start 3 times in a row is set aside automatically. The launcher then runs the newest installed release that isn't set aside.
|
|
86
91
|
- To go back by hand: `npx mcp-newoutlook rollback`, or `node ~/.mcp-newoutlook/launch.cjs rollback [version]`. Then restart the AI apps.
|
|
@@ -95,11 +100,11 @@ Coming from a version before 0.15 (a git clone, extension loaded from the repo's
|
|
|
95
100
|
|
|
96
101
|
## Sessions on a tab you can see
|
|
97
102
|
|
|
98
|
-
The extension uses the sessions Outlook itself sets up: one for mail, one for full-text search and one for Teams meetings. They're lost when the extension reloads (`reload_extension`, `npm run update`, setup). A tab you can see isn't reloaded to get them back, as that could lose what you're writing, and a quiet Outlook tab sends a request of its own only every several minutes. So the extension adds a hidden, 1×1 frame of the same Outlook site to the tab: Outlook in that frame sends what it sends whenever a tab of it loads, which brings back all three sessions, usually within seconds. The page you see isn't reloaded or changed. The frame is removed as soon as all three sessions are back, and after a minute in any case (the page removes it itself), and isn't added again for 2 minutes. A call waits up to 45 s for the mail session, stopping 10 s before its deadline: Outlook took about 15 s to load in the frame on a quiet Mac, and about 50 s on one at a load average of 300. If none comes, the call fails and says to open another email in the tab or reload it. A search doesn't wait: it matches fields at once, and says full-text search is being set up. `get_version` shows the last frame as `hiddenFrame` (when it was asked for, whether it was added, and when it was removed).
|
|
103
|
+
The extension uses the sessions Outlook itself sets up: one for mail, one for full-text search and one for Teams meetings. They're lost when the extension reloads (`reload_extension`, `npm run update`, setup). A tab you can see isn't reloaded to get them back, as that could lose what you're writing, and a quiet Outlook tab sends a request of its own only every several minutes. So the extension adds a hidden, 1×1 frame of the same Outlook site to the tab: Outlook in that frame sends what it sends whenever a tab of it loads, which brings back all three sessions, usually within seconds. The page you see isn't reloaded or changed. The frame is removed as soon as all three sessions are back. An account without Teams never gets a Teams session, so once mail and search are back the frame waits only 5 s more for one (unless a call is waiting for a Teams meeting). It is removed after a minute in any case (the page removes it itself), and isn't added again for 2 minutes. A call waits up to 45 s for the mail session, stopping 10 s before its deadline: Outlook took about 15 s to load in the frame on a quiet Mac, and about 50 s on one at a load average of 300. If none comes, the call fails and says to open another email in the tab or reload it. A search doesn't wait: it matches fields at once, and says full-text search is being set up. `get_version` shows the last frame as `hiddenFrame` (when it was asked for, whether it was added, and when and why it was removed: `every session`, `no Teams session` or `time`).
|
|
99
104
|
|
|
100
105
|
## Search syntax
|
|
101
106
|
|
|
102
|
-
Searches go to Outlook's full-text index, the one its own search box uses: whole words in the subject, body, people and attachment contents (`search: "fulltext"` in the result). The index needs the search session Outlook sets up when it loads or when you use its search box. That session is lost when the extension reloads, and its token runs out after about an hour, so a search that finds none reloads the Outlook tab to get a new one, and the search waits up to 30 s for it (also when another reload just happened, as that brings it too), within the time the request has. It does so only if no automatic reload of that Outlook site happened in the last 10 minutes (others can follow sooner: a reload to wake a tab Chrome put to sleep or to renew a refused session after 1 minute, one for a stuck tab after 5). A tab you can see (the active tab of a window that isn't minimized, focused or not, since Chrome can't tell whether another app covers it) is never reloaded by itself, and neither is an awake one with requests still running, unless those were given up on and the page doesn't answer a check within 3 s. A tab you can see gets a hidden frame of the Outlook site instead (see [Sessions on a tab you can see](#sessions-on-a-tab-you-can-see)), and the search waits up to 30 s for the session it brings; if none comes, **reload it or search once in Outlook** to turn the index on. Until then, and in folders you made yourself, fields are matched as described under Limitations (`search: "substring"`, `searchNote` says why). The index can only be limited to a standard folder without its subfolders, and it gives only the first 25 matches of a search. So a search over subfolders asks the index for matches in every folder and keeps those in the chosen folders
|
|
107
|
+
Searches go to Outlook's full-text index, the one its own search box uses: whole words in the subject, body, people and attachment contents (`search: "fulltext"` in the result). The index needs the search session Outlook sets up when it loads or when you use its search box. That session is lost when the extension reloads, and its token runs out after about an hour, so a search that finds none reloads the Outlook tab to get a new one, and the search waits up to 30 s for it (also when another reload just happened, as that brings it too), within the time the request has. It does so only if no automatic reload of that Outlook site happened in the last 10 minutes (others can follow sooner: a reload to wake a tab Chrome put to sleep or to renew a refused session after 1 minute, one for a stuck tab after 5). A tab you can see (the active tab of a window that isn't minimized, focused or not, since Chrome can't tell whether another app covers it) is never reloaded by itself, and neither is an awake one with requests still running, unless those were given up on and the page doesn't answer a check within 3 s. A tab you can see gets a hidden frame of the Outlook site instead (see [Sessions on a tab you can see](#sessions-on-a-tab-you-can-see)), and the search waits up to 30 s for the session it brings; if none comes, **reload it or search once in Outlook** to turn the index on. Until then, and in folders you made yourself, fields are matched as described under Limitations (`search: "substring"`, `searchNote` says why). The index can only be limited to a standard folder without its subfolders, and it gives only the first 25 matches of a search. So a search over subfolders asks the index for matches in every folder and keeps those in the chosen folders. When that first page holds fewer than the page asked for, but it is full (25) and at least half of the matches asked for (at most 25) are in the chosen folders, the first page of a search (offset 0) answers from those, with `total: null` and a `searchNote` saying more exist; such an answer can hold fewer than `limit` items. Otherwise fields are matched instead. In standard folders, a `limit` above 25 still gives only those 25 matches, with a `searchNote` saying more exist. To see the rest, narrow the query (e.g. with dates) or page on with `offset` set to the previous offset plus the number of items returned (not plus `limit`), which matches fields from offset 25 on (and earlier when the first page can't fill the page asked for). When the index answers without seeing every match, `total` is `null` (`includesLastItem` still tells whether there are more). When nothing is found, `emptyNote` says what wasn't searched: other folders, folders that couldn't be searched, or attachment contents with field matching. Matching fields over several folders starts no folder read 60 s after the request came, or within 3 s of the time it has, and waits at most 5 s more for the reads still running: it then returns what it found with `partial: true`, `total: null` and a `partialNote` saying how many folders weren't searched and how to narrow the search. Such a result can miss emails: don't page on from it with `offset` (later pages would skip and repeat emails), but narrow the search (dates, a folder, `subfolders: false`, more terms) or repeat it.
|
|
103
108
|
|
|
104
109
|
|
|
105
110
|
- Free words match the subject, body or sender. `"Quoted phrases"` match as a whole.
|
|
@@ -107,7 +112,8 @@ Searches go to Outlook's full-text index, the one its own search box uses: whole
|
|
|
107
112
|
- Dates use the computer's local time zone and `YYYY-MM-DD`, `today` or `yesterday`:
|
|
108
113
|
- `received:D` that day; `after:D` / `received>=D` on or after D; `received>D` after D
|
|
109
114
|
- `before:D` / `received<D` before D; `received<=D` up to and including D
|
|
110
|
-
- All terms must match: `from:gamboa after:2026-09-01 hasattachment:yes`.
|
|
115
|
+
- All terms must match: `from:gamboa after:2026-09-01 hasattachment:yes`. That includes a field given twice: `from:alice from:bob` finds emails that match both.
|
|
116
|
+
- Full-text search gets the dates as one range. If Outlook's index still returns an email outside them, the search matches fields instead, where the dates always apply (`search: "substring"`, and `searchNote` says why).
|
|
111
117
|
|
|
112
118
|
## Several sessions at once
|
|
113
119
|
|
|
@@ -123,7 +129,7 @@ Every AI session starts its own mcp-newoutlook server, and they share the one ex
|
|
|
123
129
|
|
|
124
130
|
The extension tries the native host first. Where it isn't installed, or a policy blocks native messaging, the extension uses the TCP port as described above, and tries native again the next time it reconnects. `get_version` shows which one is in use: `transport: "native"` or `"websocket"` in the extension's status.
|
|
125
131
|
|
|
126
|
-
Connections from web pages are always refused, and peers need the pairing token. While the extension with the
|
|
132
|
+
Connections from web pages are always refused, and peers need the pairing token. While the extension with one of its trusted ids (the unpacked build's, or a store's) is connected, other copies of it (e.g. an older one loaded from another folder) are turned away.
|
|
127
133
|
|
|
128
134
|
## Configuration
|
|
129
135
|
|
|
@@ -139,7 +145,7 @@ Connections from web pages are always refused, and peers need the pairing token.
|
|
|
139
145
|
|
|
140
146
|
## Security notes
|
|
141
147
|
|
|
142
|
-
- The bridge listens only on `127.0.0.1`. Web pages can't connect to it: browsers send their Origin, and only extension origins are accepted. This extension is recognized by its
|
|
148
|
+
- The bridge listens only on `127.0.0.1`. Web pages can't connect to it: browsers send their Origin, and only extension origins are accepted. This extension is recognized by its ids (the unpacked build's comes from the `key` in its manifest; the stores' are assigned by the stores), which other extensions can't take; any other extension, and local programs, need the pairing token in `~/.mcp-newoutlook/config.json`. A local program able to read that file could connect either way, so the token was never a defense against those.
|
|
143
149
|
- Downloaded file names come from emails and are sanitized, so they can't escape the target folder.
|
|
144
150
|
- Emails can contain prompt injection. The send-confirmation window is the safeguard, so read it before clicking Send. Its first line, From, shows which mailbox the email or invitation goes out from: a draft's own sender if it has one (a shared mailbox), else the mailbox signed in on that Outlook site now. If a draft's sender, or an invitation's Outlook site or mailbox, changes after the window was shown, nothing is sent. An invitation also stops when the mailbox From showed can't be read again at the click, which can happen after a routine token refresh: try again. Only when From itself said the mailbox couldn't be read is the Outlook site alone checked.
|
|
145
151
|
- A change retried with the same content from the same mailbox and Outlook site within 10 minutes (drafts, attachments, events, and answers or invitations you approved) returns the first result instead of acting twice. When the mailbox can't be read, nothing is reused, so another account's result is never handed back; a retry then may act twice, and still asks you where a window applies. The same goes for an appointment if the mailbox can't be read again after the session changed while it was made. This is kept only in the extension's memory, as SHA-256 hashes and outcomes (ids, flags), never bodies, file contents or tokens, and is cleared when the extension reloads. It never skips a confirmation window: a retry after you declined or closed one asks again.
|
|
@@ -152,7 +158,8 @@ Connections from web pages are always refused, and peers need the pairing token.
|
|
|
152
158
|
- Emails can't be permanently deleted, only moved to Deleted Items.
|
|
153
159
|
- Teams invitations made through `create_event` have the join link and meeting ID but no passcode: Outlook fetches that from a Teams service this extension doesn't have access to; people join from the link, which carries it.
|
|
154
160
|
- Outlook doesn't hand out an attached email's original MIME, so its `.eml` is rebuilt from the original headers, body and attachments. It opens normally in mail clients, but isn't byte-identical to the original (e.g. signatures can't be verified).
|
|
155
|
-
- `download_email` and attached emails in `download_attachments` are limited to 30 MB per email (Outlook's size of the item). A larger one is
|
|
161
|
+
- `download_email` and attached emails in `download_attachments` are limited to 30 MB per email (Outlook's size of the item). A larger one is not fetched: `download_email` fails with its size and a link to open it in Outlook; `download_attachments` lists it in `skipped` with that reason and saves the other attachments.
|
|
162
|
+
- Other attachments in `download_attachments` are limited to 30 MB each (Outlook allows up to 150 MB), so a large file doesn't overload the extension. A larger one is not fetched; it is listed in `skipped` with a reason that names it, gives its size and a link to open the email in Outlook, and the other attachments are still saved.
|
|
156
163
|
|
|
157
164
|
## Development
|
|
158
165
|
|
|
@@ -164,12 +171,13 @@ node dist/index.js setup # registers this copy (node dist/index.js and its dis
|
|
|
164
171
|
npm run update # on main with no local changes: pulls, builds, reloads the extension
|
|
165
172
|
npm test # builds, typechecks the tests, scans fixtures, then runs every test layer
|
|
166
173
|
npm run smoke # read-only live check against your real mailbox (needs Chrome with the extension and Outlook open)
|
|
174
|
+
npm run pack:extension # Chrome Web Store / Edge Add-ons upload zip in release/ (store manifest, only the files the extension loads)
|
|
167
175
|
```
|
|
168
176
|
|
|
169
177
|
In a clone, use `node dist/index.js` for its commands. `npx mcp-newoutlook …` run inside the clone fails (`command not found`), because npx resolves the clone's own `package.json`; to set up the published release instead, run it from another folder, e.g. `cd ~ && npx mcp-newoutlook setup`.
|
|
170
178
|
|
|
171
179
|
Tests are written first, one layer per folder (see [docs/testing.md](docs/testing.md)): `test/unit` (pure functions; `npm run test:unit`), `test/integration` (the extension's handlers on a fake `chrome`, and the bridge on real sockets; `npm run test:integration`), `test/system` (the built server over stdio, including a snapshot of every tool's description and schema; `npm run test:system`). A bug fix starts with a failing test named after its issue.
|
|
172
|
-
Versions are bumped automatically. On every push to `main` (except Markdown-only changes), the **Version bump** GitHub Action runs the tests, then bumps `package.json
|
|
180
|
+
Versions are bumped automatically. On every push to `main` (except Markdown-only changes), the **Version bump** GitHub Action runs the tests, then bumps `package.json` and `package-lock.json`, commits `chore(release): vX.Y.Z` and tags it. The version in `extension/manifest.json` changes only when something under `extension/` changed since the last release, and then to the new package version, so a Chrome Web Store copy is only updated when the extension itself changed. The bump level comes from the pushed commit messages:
|
|
173
181
|
|
|
174
182
|
| Commit message | Bump |
|
|
175
183
|
|---|---|
|
|
@@ -177,4 +185,4 @@ Versions are bumped automatically. On every push to `main` (except Markdown-only
|
|
|
177
185
|
| starts with `feat:` / `feat(scope):` | minor |
|
|
178
186
|
| anything else | patch |
|
|
179
187
|
|
|
180
|
-
The same workflow runs the tests on Windows and publishes the new version to npm only if they pass. If they fail, the release commit and tag stay but nothing is published; the next merge publishes a newer version, or `gh workflow run version.yml` retries the current one. Publishing uses npm trusted publishing, so no npm token is stored anywhere; the package's npm settings name `version.yml` in this repository as its only trusted publisher. Run `git pull` afterwards to get the release commit locally. To bump by hand: `node scripts/bump-version.mjs patch|minor|major`. A test checks that the
|
|
188
|
+
The same workflow runs the tests on Windows and publishes the new version to npm only if they pass. If they fail, the release commit and tag stay but nothing is published; the next merge publishes a newer version, or `gh workflow run version.yml` retries the current one. Publishing uses npm trusted publishing, so no npm token is stored anywhere; the package's npm settings name `version.yml` in this repository as its only trusted publisher. Run `git pull` afterwards to get the release commit locally. To bump by hand: `node scripts/bump-version.mjs patch|minor|major`. A test checks that `package.json` and `package-lock.json` agree and that the manifest's version is no newer than the package's.
|
package/dist/body.js
CHANGED
|
@@ -85,8 +85,10 @@ const SIGNATURE_MAX = 800;
|
|
|
85
85
|
* lines before the disclaimer. null when nothing is left.
|
|
86
86
|
*/
|
|
87
87
|
export function extractSignature(text) {
|
|
88
|
+
// A link target can't hold "<", so each match stops at the next one: linear on text with many
|
|
89
|
+
// "<http:" and no ">" (#218), where [^>]* scanned to the end from each of them.
|
|
88
90
|
const lines = text
|
|
89
|
-
.replace(/<(https?|mailto):[
|
|
91
|
+
.replace(/<(https?|mailto):[^<>]*>/gi, "")
|
|
90
92
|
.split(/\r?\n/)
|
|
91
93
|
.map((l) => l.trimEnd())
|
|
92
94
|
.filter((l) => !isNoise(l));
|
package/dist/body.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"body.js","sourceRoot":"","sources":["../src/body.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,MAAM,SAAS,GAAG,iIAAiI,CAAC;AACpJ,6FAA6F;AAC7F,gFAAgF;AAChF,MAAM,WAAW,GAAG,gBAAgB,CAAC;AACrC,MAAM,WAAW,GAAG,yDAAyD,CAAC;AAC9E,MAAM,WAAW,GAAG,6HAA6H,CAAC;AAClJ,MAAM,QAAQ,GAAG,qEAAqE,CAAC;AAGvF,6GAA6G;AAC7G,MAAM,UAAU,UAAU,CAAC,KAAe;IACxC,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,KAAK,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE,CAAC;QACtC,MAAM,IAAI,GAAG,KAAK,CAAC,CAAC,CAAC,CAAC;QACtB,IAAI,SAAS,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC;YAAE,OAAO,CAAC,CAAC;QAC1D,IAAI,WAAW,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,KAA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