@chrischall/microsoft-teams-mcp 0.5.1 → 0.6.1

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 Microsoft Teams — read any chat or channel, your unread messages, and their attachments, and send messages and reactions (each confirmed first)",
10
- "version": "0.5.1"
10
+ "version": "0.6.1"
11
11
  },
12
12
  "plugins": [
13
13
  {
@@ -15,7 +15,7 @@
15
15
  "displayName": "Microsoft Teams",
16
16
  "source": "./",
17
17
  "description": "MCP server for Microsoft Teams — read any chat or channel, your unread messages, and their attachments, and send messages and reactions (each confirmed first), via your signed-in browser session",
18
- "version": "0.5.1",
18
+ "version": "0.6.1",
19
19
  "author": {
20
20
  "name": "Chris Hall"
21
21
  },
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "mcpServers": {
3
3
  "teams": {
4
- "command": "node",
5
- "args": ["${CLAUDE_PLUGIN_ROOT}/dist/bundle.js"]
4
+ "command": "npx",
5
+ "args": ["-y", "@chrischall/microsoft-teams-mcp"]
6
6
  }
7
7
  }
8
8
  }
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "microsoft-teams-mcp",
3
3
  "displayName": "Microsoft Teams",
4
- "version": "0.5.1",
4
+ "version": "0.6.1",
5
5
  "description": "Microsoft Teams for Claude — read any chat or channel, your unread messages, and their attachments, and send messages and reactions (each confirmed first), using your signed-in browser session",
6
6
  "author": {
7
7
  "name": "Chris Hall",
package/README.md CHANGED
@@ -168,6 +168,7 @@ Everything is optional — by default the token is captured from your browser.
168
168
  | `TEAMS_TOKEN_CACHE` | `false` to keep the captured token in memory only. Defaults to on. |
169
169
  | `TEAMS_TOKEN_FILE` | Where the captured token is cached. Defaults to `~/.microsoft-teams-mcp/token.json`. |
170
170
  | `TEAMS_SUBSTRATE_TOKEN_FILE` | Where the captured Substrate search token is cached. Defaults to `~/.microsoft-teams-mcp/substrate-token.json`. `TEAMS_TOKEN_CACHE=false` keeps it in memory too. |
171
+ | `TEAMS_SHAREPOINT_TOKEN_FILE` | Where the captured SharePoint tokens (one per host, used to download shared files) are cached. Defaults to `~/.microsoft-teams-mcp/sharepoint-tokens.json`. `TEAMS_TOKEN_CACHE=false` keeps them in memory too. |
171
172
  | `TEAMS_TIME_ZONE` | Default IANA time zone (e.g. `America/New_York`) for the `tz` argument of `teams_read_conversation` and `teams_get_unread`: each message then carries `time_local` (ISO 8601 with offset) next to its UTC `time`. Unset means no `time_local` unless `tz` is passed; a name `Intl` does not know is reported as an error. |
172
173
  | `TEAMS_WS_PORT` | fetchproxy concentrator port. Defaults to `37149`, the fleet-wide shared port. |
173
174
  | `FETCHPROXY_WS_HOST` | Bind interface for the bridge (default `127.0.0.1`; a literal IP only, anything else is ignored). Keep on loopback — it exists for ONE topology: a hosted child in its own network namespace. |
@@ -269,7 +270,9 @@ Everything is optional — by default the token is captured from your browser.
269
270
  is new — so passing it back as `after_message_id` reads only what arrived
270
271
  since. `after_message_id` takes message ids only: to read what
271
272
  `teams_get_changes` counted, pass that row's `after_message_id`, not its
272
- `next_cursor`. See [Cursors](#cursors-only-what-is-new).
273
+ `next_cursor`. See [Cursors](#cursors-only-what-is-new). `from` pages
274
+ oldest first from a UTC time instead — see
275
+ [Paging from a time](#paging-from-a-time).
273
276
  `format` sets how much comes back: `full` (default, everything above),
274
277
  `compact` (each message only `id`, `time`, `time_local`, `sender`, `text`,
275
278
  plus `subject` when set — no reactions, attachments or edited/deleted
@@ -299,7 +302,9 @@ Everything is optional — by default the token is captured from your browser.
299
302
  only messages you had already read still marks). An empty read, or an
300
303
  `after_message_id` with nothing new, marks nothing (`marked_read: false`).
301
304
  - `teams_get_unread` — every unread message across your chats and channels,
302
- grouped by conversation, most recent first. Filter by `kinds` (`chat`,
305
+ grouped by conversation, most recent first (or, with `from`, one
306
+ oldest-first list across them all — see
307
+ [Paging from a time](#paging-from-a-time)). Filter by `kinds` (`chat`,
303
308
  `channel`, `meeting`, `oneOnOne`) or `query` (title, channel or team
304
309
  name, an untitled chat's participant name, or the last-message preview —
305
310
  each conversation then carries `match_reason`, as in `teams_list_chats`);
@@ -554,6 +559,31 @@ instead.
554
559
  id. Each of its conversation rows carries the message-id cursor to hand on,
555
560
  `after_message_id`, for `teams_read_conversation` (or `teams_get_unread`'s
556
561
  `cursors`). Each tool rejects the other kind.
562
+ - <a id="paging-from-a-time"></a>**Paging from a time (ingestion and
563
+ backfill).** `teams_read_conversation` and `teams_get_unread` take `from`:
564
+ a UTC time (ISO 8601; one with no zone is read as UTC) or a previous
565
+ result's `next_from`. They return what arrived at or after it **oldest
566
+ first**, at most `limit` (default 50; `teams_get_unread` pools every
567
+ conversation into one `messages` list, each message carrying its
568
+ `conversation_id`), plus `has_more`, `next_from` and `next_from_time`.
569
+ Pass `next_from` back as `from` until `has_more` is false; it is returned
570
+ on the last (and an empty) page too, so the same call keeps polling for
571
+ what arrives later. Messages sharing a millisecond are never split or
572
+ repeated across pages; delivery is otherwise at-least-once (`next_from`
573
+ never moves past the newest change the listing knew of, and not at all
574
+ while a read failed), so dedupe on message id. **Cost:** Teams serves
575
+ messages newest first with no way to seek, so each call reads everything
576
+ that changed since its `from` — a deep backfill gets faster as it catches
577
+ up — and a conversation with more than 20,000 messages since `from`
578
+ cannot be paged oldest first: `teams_read_conversation` reports an error
579
+ rather than skip any, and `teams_get_unread` returns what arrived after the
580
+ oldest point it reached, names the stretch it could not read in
581
+ `incomplete` (`unread_not_read_from` / `unread_not_read_until`), and keeps
582
+ `next_from` moving — so one oversized conversation never stalls the stream.
583
+ `from` replaces `since` /
584
+ `after_message_id` / `mark_read` (and, for `teams_get_unread`, `since_days`,
585
+ `cursors`, the per-conversation limits, `older_unread` and
586
+ `format: "summary"`).
557
587
 
558
588
  - **Results are framed as untrusted.** Every data tool returns
559
589
  `{ untrusted_content: true, note, ... }` and says in its description that