mcp-teams 0.3.37 → 0.3.39
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/extension/background.js +13 -5
- package/extension/manifest.json +1 -1
- package/package.json +1 -1
package/extension/background.js
CHANGED
|
@@ -683,9 +683,9 @@ async function api(service, path, { method = "GET", body, raw = false, withLocat
|
|
|
683
683
|
if (res.status === 401) {
|
|
684
684
|
// Rejected before running (expired token), so trying once more is safe. A 403 is a
|
|
685
685
|
// real answer (e.g. no longer a member of that chat).
|
|
686
|
-
// The session (maybe the account) is changing: lists read with it are read again.
|
|
687
|
-
|
|
688
|
-
|
|
686
|
+
// The session (maybe the account) is changing: lists read with it are read again. What
|
|
687
|
+
// only one user may see goes when a capture shows another user (forgetAccount).
|
|
688
|
+
dropSessionLists();
|
|
689
689
|
cap = await refreshSession(service, tab, { quickWaitMs: 0, rejected: cap.headers }, ctx);
|
|
690
690
|
if (!cap) throw new Error(SERVICE_HELP[service]);
|
|
691
691
|
// The tab may have been closed meanwhile: look the tabs up again.
|
|
@@ -740,13 +740,21 @@ let accountSwitches = 0; // bumped by forgetAccount: a send sees that a switch l
|
|
|
740
740
|
*/
|
|
741
741
|
function forgetAccount() {
|
|
742
742
|
accountSwitches++;
|
|
743
|
-
|
|
743
|
+
dropSessionLists();
|
|
744
744
|
names.clear();
|
|
745
745
|
transcripts.clear();
|
|
746
|
-
meetingSessionsCache.clear();
|
|
747
746
|
myAddressCache = null;
|
|
748
747
|
}
|
|
749
748
|
|
|
749
|
+
/**
|
|
750
|
+
* Empties the lists read with a session (the chat list, the meetings' calls), so they are read
|
|
751
|
+
* again: after a 401 (the token, maybe the account, is changing) and on a switch (forgetAccount).
|
|
752
|
+
*/
|
|
753
|
+
function dropSessionLists() {
|
|
754
|
+
dropList();
|
|
755
|
+
meetingSessionsCache.clear();
|
|
756
|
+
}
|
|
757
|
+
|
|
750
758
|
/** A read that a switch of the signed-in Teams account overtook: what it read, and what a retry reads. */
|
|
751
759
|
const ACCOUNT_CHANGED_WHILE = (what, retry) => `The signed-in Teams account changed while ${what}; it's now signed in as another account, so a retry ${retry}.`;
|
|
752
760
|
|
package/extension/manifest.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"manifest_version": 3,
|
|
3
3
|
"key": "MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAvoz9Wexl4ZqY9YtEyBZsu/Qi5Ft5EjNUNB8b30wgt3AR8TjXI5UumcPQFBIm7ZfvBsjgrh6tBJlygsgFbZ5cB1EiI+WSz/2Wcqwz4eowKMXXPvGuDGrO+2O2zbSpTG19/MwTljI+g0TLfn8Vkoqd8z9MskKk+vCZjjV0Jk8QjVEdHypgM7H8zTuUM06SO12IIZMdeE3IURzf35zbjlfPPkJiDWoo3wB9nxAvLd57xrQhPUB/lGtCJk9mS3SY+/VwOlG5kJ9WS/RCHXcs5Qs7huIlKIatmFz7YiducvTR3DKBbjqbMTyqHzXkmkUmJRqzsYtgtKcz0C0cjFOt6uNdhwIDAQAB",
|
|
4
4
|
"name": "mcp-teams bridge",
|
|
5
|
-
"version": "0.3.
|
|
5
|
+
"version": "0.3.39",
|
|
6
6
|
"description": "Lets AI assistants (via the mcp-teams MCP server) read and search Microsoft Teams chats, channels and meeting transcripts and, with your explicit confirmation, post messages.",
|
|
7
7
|
"minimum_chrome_version": "116",
|
|
8
8
|
"icons": {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "mcp-teams",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.39",
|
|
4
4
|
"description": "MCP server that lets AI assistants work with Microsoft Teams (web) through a Chrome/Edge extension bridge",
|
|
5
5
|
"keywords": ["mcp", "model-context-protocol", "teams", "microsoft-teams", "microsoft-365", "chat", "claude", "chrome-extension"],
|
|
6
6
|
"repository": {
|