@chrischall/microsoft-teams-mcp 0.11.0 → 0.12.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 Microsoft Teams — read any chat or channel, your unread messages, and their attachments, and send messages and reactions (each confirmed first)",
10
- "version": "0.11.0"
10
+ "version": "0.12.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.11.0",
18
+ "version": "0.12.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.11.0",
4
+ "version": "0.12.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
@@ -36,7 +36,7 @@ By default nothing here marks anything read. Reading a chat through this
36
36
  server leaves your Teams unread badges exactly as they were — unless you ask
37
37
  for it: `teams_mark_read`, or `mark_read: true` on `teams_list_messages`
38
38
  / `teams_list_unread_messages`, moves your read marker forward. The writes —
39
- `teams_send_message`, `teams_react`, marking read, renaming a group chat
39
+ `teams_send_message`, `teams_edit_message`, `teams_delete_message`, `teams_react`, marking read, renaming a group chat
40
40
  or adding and removing its members (`teams_rename_chat`,
41
41
  `teams_add_chat_members`, `teams_remove_chat_members`), and starting a new
42
42
  one (`teams_create_group_chat`) — go through the same
@@ -323,7 +323,15 @@ Everything is optional — by default the token is captured from your browser.
323
323
  `limit` (default 50, max 500).
324
324
  - `teams_list_messages` — read any chat or channel by id or name,
325
325
  oldest first: sender, time (UTC, ISO 8601), text, subject, edited/deleted
326
- flags and attachments. A channel comes back as threads (root post + replies).
326
+ flags and attachments. A formatted message also carries `content_html` —
327
+ its body as sanitised HTML (bold, italic, lists, links, code, quotes,
328
+ headings, tables and @mention spans; every other tag and attribute
329
+ dropped) — and any message with them carries `mentions`
330
+ (`[{mri, displayName}]`, who was @mentioned) and `links`
331
+ (`[{href, text}]`, each link with the text it was shown as). A plain
332
+ message has none of the three: its `text` says everything. In `text` a
333
+ numbered list keeps its numbers (`1. `, `2. `) and a bulleted one its `- `.
334
+ A channel comes back as threads (root post + replies).
327
335
  A thread whose root post is older than the window (a reply came in after
328
336
  `since`, `limit` or `after_message_id` cut the read) still shows its root:
329
337
  it is fetched by id and marked `outside_window: true` — context only, not
@@ -585,8 +593,11 @@ Everything is optional — by default the token is captured from your browser.
585
593
  conversation, and a note that the content is untrusted third-party text),
586
594
  then one record per message, oldest first, each carrying its conversation's
587
595
  `id`, `kind`, `title`, `team` (channels) and `participants` (chats: the
588
- people seen writing, other than you) — or `format: "markdown"` for readable
589
- transcripts, channels threaded under their root posts. `conversations`
596
+ people seen writing, other than you) and the message's `content_html`,
597
+ `mentions` and `links` when it has them — or `format: "markdown"` for readable
598
+ transcripts, channels threaded under their root posts, a formatted message
599
+ rendered as Markdown (bold, italic, lists, links with their text, code,
600
+ quotes, tables, mentions as `@name`). `conversations`
590
601
  (ids or names, one or an array; omit for every conversation), `kinds`
591
602
  (`chat`, `channel`, `meeting`), `since` / `until` (by arrival; default all
592
603
  history), `tz`. Each call stops at `max_items` messages (default 5000, max
@@ -632,14 +643,41 @@ Everything is optional — by default the token is captured from your browser.
632
643
  **Write** (each asks you to confirm first — see [Writes](#writes)):
633
644
 
634
645
  - `teams_send_message` — post as you to any chat or channel, by id or name.
635
- `text` is plain text: it is escaped, newlines are kept, and `:key:`
636
- shortcodes (`:smile:`, `:1f389_partypopper:`) become Teams emoji.
646
+ `text` is plain text by default: it is escaped, newlines are kept, and
647
+ `:key:` shortcodes become emoji: Teams' own animated ones for `like`,
648
+ `heart`, `laugh`, `surprised`, `sad`, `angry`, `smile`, `wink`, `cool`,
649
+ `hearteyes`, `fire` and `party`, and the plain character for about 50
650
+ common names (`:rocket:`, `:tada:`, `:thumbsup:`, `:eyes:`,
651
+ `:white_check_mark:`, …) and for unicode-style keys
652
+ (`:1f680_rocket:`). Teams has no animated image for many code points, so
653
+ only the twelve names it is known to have get one.
654
+ `format: "markdown"` reads it as Markdown instead: `**bold**`, `*italic*`,
655
+ `~~strike~~`, `` `inline code` ``, fenced code blocks, bulleted (`- `) and
656
+ numbered (`1. `) lists nested by indenting, `[link text](https://…)`
657
+ (http, https and mailto only), blank-line paragraphs and line breaks;
658
+ emoji and mentions work as in plain text. Anything else — raw HTML,
659
+ headings, quotes, images — is escaped and shown as written. The preview's
660
+ `willSend.content` is the exact HTML that will be posted.
637
661
  `reply_to` posts into a channel post's thread — it must be a root post in
638
662
  that channel, not a reply (in a chat it quote-replies that message); `quote` quote-replies a message anywhere; `mentions`
639
663
  @-mentions people by MRI or by a display name matched among the
640
664
  conversation's recent senders (an ambiguous name is refused with the
641
665
  candidates). The result says whether the post was found again by reading
642
666
  the conversation back (`verified`).
667
+ - `teams_edit_message` — replace the text of one of your own messages:
668
+ `conversation`, `message_id` (one you sent — someone else's, a deleted
669
+ message or a system event is refused before any preview), `text`, and
670
+ `format` / `mentions` as for `teams_send_message`. A quote-reply keeps its
671
+ quote. The preview shows the current text, the new text and the exact HTML
672
+ that will replace it; text that renders exactly as the message already
673
+ does, mentioning the same people, changes nothing (`status: "unchanged"`). The message is read back to
674
+ verify the edit (`verified`).
675
+ - `teams_delete_message` — delete one of your own messages: `conversation`
676
+ and `message_id` (one you sent — someone else's or a system event is
677
+ refused before any preview). One already deleted is reported as
678
+ `status: "already_deleted"` with nothing asked or sent. The preview shows
679
+ the message that will go; the message is read back to verify it is
680
+ deleted (`verified`). This MCP cannot bring a deleted message back.
643
681
  - `teams_react` — add or (with `remove: true`) withdraw your reaction on a
644
682
  message: an emoji or name (`thumbsup`/👍, `heart`/❤️, `laugh`/😆,
645
683
  `surprised`/😮, `sad`/😢, `angry`/😡, `checkmark`/✅) or any raw Teams
@@ -722,13 +760,13 @@ read-only, and nothing marks anything read unless you ask it to.
722
760
 
723
761
  ## Writes
724
762
 
725
- A post, a reaction, a rename, a membership change and a new group chat are
763
+ A post, an edit, a delete, a reaction, a rename, a membership change and a new group chat are
726
764
  visible to everyone in the conversation, and marking read clears your unread badges, so each
727
765
  write asks you first. A
728
766
  client that can show a confirmation prompt (Claude Code) shows one. On a
729
767
  client that cannot, the first call changes nothing and returns a
730
768
  `confirmation-required` preview — the conversation, the exact text, any
731
- mentions, the quoted message, the reaction, the message your read marker
769
+ mentions, the quoted message, a message's current and new text, the reaction, the message your read marker
732
770
  moves to and where it was, a chat's current and new name, or who is added or
733
771
  removed, with everything other people wrote (titles,
734
772
  names, quoted text) fenced as untrusted — plus a `confirmToken`; only a
@@ -751,7 +789,7 @@ as the real guard on what gets posted.
751
789
 
752
790
  **Try it in your own notes first.** The conversation `48:notes` (also by the
753
791
  name `notes` or `self`) is your Teams self-chat ("notes to self"): sending,
754
- reacting and marking read accept it (the group-chat tools do not — it has no
792
+ editing, deleting, reacting and marking read accept it (the group-chat tools do not — it has no
755
793
  one else in it), `teams_list_messages` reads it, nobody else sees it, and
756
794
  it is the safe place to see what a message or reaction will look like. Every
757
795
  other `48:` system conversation (calendar and the like) is refused.
@@ -761,14 +799,20 @@ timeout, a dropped connection or a 5xx after the request went out), the
761
799
  result is `status: "unknown"` — the message may already be there, so read the
762
800
  conversation before sending again. A 4xx is a refusal and stays an error. A
763
801
  reaction Teams does not confirm is settled by reading the message back, and
764
- is `status: "unknown"` only when that does not show the change. A read-marker
802
+ is `status: "unknown"` only when that does not show the change; so is an
803
+ edit or a delete. A read-marker
765
804
  move Teams does not confirm is `status: "unknown"` (`marked_read: false` with a
766
805
  `mark_read_warning` from the read tools); moving it again to the same message
767
806
  is harmless. Marking read (`PUT …/properties?name=consumptionhorizon`) was
768
807
  verified live on `48:notes` on 2026-10-12. A rename or membership change
769
808
  Teams does not confirm is settled the same way, by reading the chat back;
770
809
  renaming, adding and removing (`/threads/{id}/properties?name=topic` and
771
- `/threads/{id}/members/{mri}`) were verified live on 2026-11-09. Threaded channel replies, @mentions,
810
+ `/threads/{id}/members/{mri}`) were verified live on 2026-11-09. Markdown
811
+ sends, editing a message (`PUT …/messages/{id}`) and deleting one
812
+ (`DELETE …/messages/{id}`) were verified live on `48:notes` on 2026-11-11;
813
+ @mentions (in a Markdown send, and kept through an edit) were verified in a
814
+ group chat the same day; editing and deleting in a channel have not been
815
+ tried yet. Threaded channel replies,
772
816
  removing a reaction and the ✅ reaction's key follow Teams' documented or
773
817
  inferred shapes but have not been verified against a live tenant yet.
774
818