@chrischall/microsoft-teams-mcp 0.1.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.
@@ -0,0 +1,66 @@
1
+ # fpx dom-list recipes for Teams
2
+
3
+ Every command needs `-p teams --storage-domain teams.microsoft.com` (or
4
+ `teams.cloud.microsoft`, matching whichever host your signed-in tab is on).
5
+
6
+ ## Chat list (sidebar, Chat nav section)
7
+
8
+ ```sh
9
+ fpx dom-list chatList -p teams --storage-domain teams.microsoft.com \
10
+ | jq -r '.[] | "\(.time)\t\(.title)\t\(.preview)"'
11
+ ```
12
+
13
+ Fields: `title`, `preview` (last-message text), `time` (relative, e.g. `9:02
14
+ AM` or `9/18` — Teams renders it that way, not as an ISO timestamp),
15
+ `conversationKey` (Teams' internal compound thread id — not usable to open
16
+ the chat; there is no navigate capability), `itemType` (`chat` for every row
17
+ in the Chat rail).
18
+
19
+ ## Currently open chat's messages
20
+
21
+ ```sh
22
+ fpx dom-list chatMessages -p teams --storage-domain teams.microsoft.com \
23
+ | jq -r '.[] | "\(.time)\t\(.sender // "(same as above)")\t\(.text)"'
24
+ ```
25
+
26
+ Fields: `sender`, `time` (ISO 8601, from the `<time datetime>` attribute),
27
+ `messageId` (`timestamp-<epoch>`, stable per message), `text`.
28
+
29
+ Reads whatever chat is CURRENTLY OPEN in the tab — open the one you want in
30
+ the browser first, then run this.
31
+
32
+ ## Teams and channels (sidebar, Teams nav section — a DIFFERENT view from Chat)
33
+
34
+ ```sh
35
+ fpx dom-list teamsAndChannels -p teams --storage-domain teams.microsoft.com \
36
+ | jq -r '.[] | select(.itemType == "channel") | "\(.teamName)\t\(.title)"'
37
+ ```
38
+
39
+ Fields: `title` (team or channel name), `teamName` (the parent team's
40
+ display name — present on a channel row, absent on a team row), `time`
41
+ (relative, like `chatList.time`), `conversationKey` (internal compound id,
42
+ not usable to open the item), `itemType` (`team` or `channel`).
43
+
44
+ Needs the **Teams-and-Channels** nav section open in the browser (click
45
+ "Teams" in the left rail), not Chat — if this returns `[]`, that's the
46
+ usual reason.
47
+
48
+ ## Currently open channel's posts
49
+
50
+ ```sh
51
+ fpx dom-list channelPosts -p teams --storage-domain teams.microsoft.com \
52
+ | jq -r '.[] | "\(.time)\t\(.sender)\t\(.subject // "")\t\(.text)"'
53
+ ```
54
+
55
+ Fields: `sender`, `subject` (present only on a post with a title), `time`
56
+ (prose, e.g. `Tuesday, August 4, 2026 7:50 AM` — NOT ISO 8601, unlike
57
+ `chatMessages.time`), `messageId` (`timestamp-<epoch>`), `text`. Threaded
58
+ replies under a post are not captured, only the top-level posts.
59
+
60
+ Reads whatever channel is CURRENTLY OPEN — open it in the browser first.
61
+
62
+ ## Multiple tabs
63
+
64
+ If more than one `teams.microsoft.com` tab is open, the bridge picks
65
+ whichever answers first — results can come from a tab you didn't mean.
66
+ Close extras before relying on output.