@chrischall/microsoft-teams-mcp 0.5.0 → 0.6.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/.claude-plugin/marketplace.json +2 -2
- package/.claude-plugin/plugin.json +1 -1
- package/README.md +45 -2
- package/dist/bundle.js +412 -54
- package/dist/chatsvc.js +56 -5
- package/dist/model.js +10 -0
- package/dist/network-error.js +124 -0
- package/dist/sharepoint.js +13 -3
- package/dist/substrate.js +23 -16
- package/dist/tools/attachment.js +5 -0
- package/dist/tools/changes.js +1 -7
- package/dist/tools/conversation.js +54 -3
- package/dist/tools/format.js +10 -0
- package/dist/tools/from.js +143 -0
- package/dist/tools/unread.js +144 -5
- package/dist/version.js +1 -1
- package/mint.yaml +5 -3
- package/package.json +1 -1
- package/server.json +2 -2
|
@@ -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.
|
|
10
|
+
"version": "0.6.0"
|
|
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.
|
|
18
|
+
"version": "0.6.0",
|
|
19
19
|
"author": {
|
|
20
20
|
"name": "Chris Hall"
|
|
21
21
|
},
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "microsoft-teams-mcp",
|
|
3
3
|
"displayName": "Microsoft Teams",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.6.0",
|
|
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
|
@@ -269,7 +269,9 @@ Everything is optional — by default the token is captured from your browser.
|
|
|
269
269
|
is new — so passing it back as `after_message_id` reads only what arrived
|
|
270
270
|
since. `after_message_id` takes message ids only: to read what
|
|
271
271
|
`teams_get_changes` counted, pass that row's `after_message_id`, not its
|
|
272
|
-
`next_cursor`. See [Cursors](#cursors-only-what-is-new).
|
|
272
|
+
`next_cursor`. See [Cursors](#cursors-only-what-is-new). `from` pages
|
|
273
|
+
oldest first from a UTC time instead — see
|
|
274
|
+
[Paging from a time](#paging-from-a-time).
|
|
273
275
|
`format` sets how much comes back: `full` (default, everything above),
|
|
274
276
|
`compact` (each message only `id`, `time`, `time_local`, `sender`, `text`,
|
|
275
277
|
plus `subject` when set — no reactions, attachments or edited/deleted
|
|
@@ -299,7 +301,9 @@ Everything is optional — by default the token is captured from your browser.
|
|
|
299
301
|
only messages you had already read still marks). An empty read, or an
|
|
300
302
|
`after_message_id` with nothing new, marks nothing (`marked_read: false`).
|
|
301
303
|
- `teams_get_unread` — every unread message across your chats and channels,
|
|
302
|
-
grouped by conversation, most recent first
|
|
304
|
+
grouped by conversation, most recent first (or, with `from`, one
|
|
305
|
+
oldest-first list across them all — see
|
|
306
|
+
[Paging from a time](#paging-from-a-time)). Filter by `kinds` (`chat`,
|
|
303
307
|
`channel`, `meeting`, `oneOnOne`) or `query` (title, channel or team
|
|
304
308
|
name, an untitled chat's participant name, or the last-message preview —
|
|
305
309
|
each conversation then carries `match_reason`, as in `teams_list_chats`);
|
|
@@ -524,6 +528,20 @@ instead.
|
|
|
524
528
|
|
|
525
529
|
## Things worth knowing
|
|
526
530
|
|
|
531
|
+
- **Corporate networks.** The server talks to several hosts:
|
|
532
|
+
`teams.cloud.microsoft` (chats), the regional `*.asm.skype.com` image store
|
|
533
|
+
(inline images), `*.sharepoint.com` (shared files) and
|
|
534
|
+
`substrate.office.com` (search). If one is unreachable while the others
|
|
535
|
+
work, the error names that host and the network cause (`ENOTFOUND`,
|
|
536
|
+
`ECONNREFUSED`, a certificate code, …) with a hint, instead of a bare
|
|
537
|
+
"fetch failed". An inline image the image store cannot be reached for is
|
|
538
|
+
retried through the Teams gateway (`us-prod.asyncgw.teams.microsoft.com`),
|
|
539
|
+
which serves the same bytes and is often allowed where `*.asm.skype.com` is
|
|
540
|
+
not. Two settings fix most other cases, because Node reads neither the
|
|
541
|
+
system keychain nor the system proxy:
|
|
542
|
+
- TLS inspection: `NODE_EXTRA_CA_CERTS=/path/to/corporate-root-ca.pem`.
|
|
543
|
+
- A required proxy: `HTTPS_PROXY=<proxy URL>` together with
|
|
544
|
+
`NODE_USE_ENV_PROXY=1` (Node 22.21+ / 24.5+).
|
|
527
545
|
- <a id="cursors-only-what-is-new"></a>**Cursors: only what is new.** A
|
|
528
546
|
message id is its arrival time in epoch milliseconds, so "newer than the
|
|
529
547
|
last message I saw" is a numeric comparison and a cursor is just that
|
|
@@ -540,6 +558,31 @@ instead.
|
|
|
540
558
|
id. Each of its conversation rows carries the message-id cursor to hand on,
|
|
541
559
|
`after_message_id`, for `teams_read_conversation` (or `teams_get_unread`'s
|
|
542
560
|
`cursors`). Each tool rejects the other kind.
|
|
561
|
+
- <a id="paging-from-a-time"></a>**Paging from a time (ingestion and
|
|
562
|
+
backfill).** `teams_read_conversation` and `teams_get_unread` take `from`:
|
|
563
|
+
a UTC time (ISO 8601; one with no zone is read as UTC) or a previous
|
|
564
|
+
result's `next_from`. They return what arrived at or after it **oldest
|
|
565
|
+
first**, at most `limit` (default 50; `teams_get_unread` pools every
|
|
566
|
+
conversation into one `messages` list, each message carrying its
|
|
567
|
+
`conversation_id`), plus `has_more`, `next_from` and `next_from_time`.
|
|
568
|
+
Pass `next_from` back as `from` until `has_more` is false; it is returned
|
|
569
|
+
on the last (and an empty) page too, so the same call keeps polling for
|
|
570
|
+
what arrives later. Messages sharing a millisecond are never split or
|
|
571
|
+
repeated across pages; delivery is otherwise at-least-once (`next_from`
|
|
572
|
+
never moves past the newest change the listing knew of, and not at all
|
|
573
|
+
while a read failed), so dedupe on message id. **Cost:** Teams serves
|
|
574
|
+
messages newest first with no way to seek, so each call reads everything
|
|
575
|
+
that changed since its `from` — a deep backfill gets faster as it catches
|
|
576
|
+
up — and a conversation with more than 20,000 messages since `from`
|
|
577
|
+
cannot be paged oldest first: `teams_read_conversation` reports an error
|
|
578
|
+
rather than skip any, and `teams_get_unread` returns what arrived after the
|
|
579
|
+
oldest point it reached, names the stretch it could not read in
|
|
580
|
+
`incomplete` (`unread_not_read_from` / `unread_not_read_until`), and keeps
|
|
581
|
+
`next_from` moving — so one oversized conversation never stalls the stream.
|
|
582
|
+
`from` replaces `since` /
|
|
583
|
+
`after_message_id` / `mark_read` (and, for `teams_get_unread`, `since_days`,
|
|
584
|
+
`cursors`, the per-conversation limits, `older_unread` and
|
|
585
|
+
`format: "summary"`).
|
|
543
586
|
|
|
544
587
|
- **Results are framed as untrusted.** Every data tool returns
|
|
545
588
|
`{ untrusted_content: true, note, ... }` and says in its description that
|