@chrischall/microsoft-teams-mcp 0.8.2 → 0.8.3
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 +6 -4
- package/dist/bundle.js +12 -7
- package/dist/tools/export.js +23 -12
- package/dist/version.js +1 -1
- 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.8.
|
|
10
|
+
"version": "0.8.3"
|
|
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.8.
|
|
18
|
+
"version": "0.8.3",
|
|
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.8.
|
|
4
|
+
"version": "0.8.3",
|
|
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
|
@@ -522,10 +522,12 @@ Everything is optional — by default the token is captured from your browser.
|
|
|
522
522
|
and between pages of a read: a long read past it is dropped and redone by
|
|
523
523
|
the next call (except the first conversation of a call, which always
|
|
524
524
|
finishes, so every call makes progress). Conversations are exported in id
|
|
525
|
-
order
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
525
|
+
order, and the cursor holds only the id to go on from (so it stays short
|
|
526
|
+
however many conversations remain): the next call re-lists conversations
|
|
527
|
+
from there, so a conversation that first appears between calls is in this
|
|
528
|
+
export only if its id sorts after that point. An export of named
|
|
529
|
+
`conversations` instead keeps the ids they resolved to, so a resume never
|
|
530
|
+
resolves the names again. A
|
|
529
531
|
rejected credential, rate limiting that
|
|
530
532
|
outlasts three backed-off retries, or a Teams-side failure stops the call
|
|
531
533
|
early with a cursor, keeping what was written (re-authenticate and resume);
|
package/dist/bundle.js
CHANGED
|
@@ -38391,7 +38391,7 @@ var init_version = __esm({
|
|
|
38391
38391
|
"src/version.ts"() {
|
|
38392
38392
|
"use strict";
|
|
38393
38393
|
PACKAGE_NAME = "microsoft-teams-mcp";
|
|
38394
|
-
VERSION = "0.8.
|
|
38394
|
+
VERSION = "0.8.3";
|
|
38395
38395
|
}
|
|
38396
38396
|
});
|
|
38397
38397
|
|
|
@@ -55332,11 +55332,16 @@ async function runExport({ chatsvc, sharepoint }, input2, opts) {
|
|
|
55332
55332
|
args,
|
|
55333
55333
|
...stopPos !== void 0 ? { pos: stopPos } : {}
|
|
55334
55334
|
};
|
|
55335
|
-
|
|
55336
|
-
|
|
55337
|
-
|
|
55338
|
-
|
|
55339
|
-
|
|
55335
|
+
const fromId = encodeExportCursor({ ...base, from_id: queue[0] });
|
|
55336
|
+
if (args.conversations === void 0) {
|
|
55337
|
+
cursor = fromId;
|
|
55338
|
+
} else {
|
|
55339
|
+
try {
|
|
55340
|
+
cursor = encodeExportCursor({ ...base, ids: queue });
|
|
55341
|
+
} catch (err) {
|
|
55342
|
+
if (!(err instanceof TypeError)) throw err;
|
|
55343
|
+
cursor = fromId;
|
|
55344
|
+
}
|
|
55340
55345
|
}
|
|
55341
55346
|
} else {
|
|
55342
55347
|
hasMore = false;
|
|
@@ -55383,7 +55388,7 @@ function registerExportTools(server, deps2, opts = {}) {
|
|
|
55383
55388
|
"teams_export_messages",
|
|
55384
55389
|
{
|
|
55385
55390
|
title: "Export Teams chats and channels to files",
|
|
55386
|
-
description: `Bulk-export the messages of chats and channels to files \u2014 for archiving, or to search or analyse thousands of messages with shell tools \u2014 without any message text entering this conversation. The result holds no message content: only where the files are (on a local install, absolute paths in a fresh folder under dest, else ${EXPORT_OUTPUT_ENV}, else ~/Downloads/${EXPORT_SERVER_NAME}; on a hosted install, a signed download link to a zip that expires, url_expires_at), each file's size and record count, counts, the time span, errors, and has_more / cursor. One file per conversation, named after it (an untitled group chat after its participants), plus a manifest; JSONL by default (a header record with the export's details and an untrusted-content note, then one record per message, oldest first, each with its conversation's id, kind, title, team and \u2014 for chats \u2014 participants), or format "markdown" for readable transcripts (a channel threaded under its root posts). Use jq, grep or rg on the files rather than reading them whole. conversations names chats/channels by id or name (omit for every one), kinds narrows to chat / channel / meeting, since and until bound messages by arrival (default: all history). Each call stops at max_items messages (default ${DEFAULT_MAX_ITEMS}, max ${MAX_ITEMS}) or budget_seconds (default ${DEFAULT_BUDGET_SECONDS}, max ${MAX_BUDGET_SECONDS}); when has_more is true pass cursor back (alone, or with max_items / budget_seconds) to continue the same export into the same folder (a hosted install returns a new link per part).
|
|
55391
|
+
description: `Bulk-export the messages of chats and channels to files \u2014 for archiving, or to search or analyse thousands of messages with shell tools \u2014 without any message text entering this conversation. The result holds no message content: only where the files are (on a local install, absolute paths in a fresh folder under dest, else ${EXPORT_OUTPUT_ENV}, else ~/Downloads/${EXPORT_SERVER_NAME}; on a hosted install, a signed download link to a zip that expires, url_expires_at), each file's size and record count, counts, the time span, errors, and has_more / cursor. One file per conversation, named after it (an untitled group chat after its participants), plus a manifest; JSONL by default (a header record with the export's details and an untrusted-content note, then one record per message, oldest first, each with its conversation's id, kind, title, team and \u2014 for chats \u2014 participants), or format "markdown" for readable transcripts (a channel threaded under its root posts). Use jq, grep or rg on the files rather than reading them whole. conversations names chats/channels by id or name (omit for every one), kinds narrows to chat / channel / meeting, since and until bound messages by arrival (default: all history). Each call stops at max_items messages (default ${DEFAULT_MAX_ITEMS}, max ${MAX_ITEMS}) or budget_seconds (default ${DEFAULT_BUDGET_SECONDS}, max ${MAX_BUDGET_SECONDS}); when has_more is true pass cursor back (alone, or with max_items / budget_seconds) to continue the same export into the same folder (a hosted install returns a new link per part). Conversations are exported in id order and a cursor resumes from an id, so a conversation that first appears between parts is included only if it sorts after that point. A rejected credential or persistent rate limiting stops early with a cursor and keeps what was written; a conversation that cannot be read is listed in errors and skipped. Never marks anything read. A name matching several conversations returns {ambiguous: true, candidates} and writes nothing. With attachments true, inline images and shared files (up to 25 MB) are saved under attachments/<conversation>/<message id>-<name> and each message's record lists them by that path relative to the export folder; one that cannot be fetched (a SharePoint file the account cannot open, no token yet, too large) is listed as skipped with the reason, never failing the export.` + UNTRUSTED_DESCRIPTION_SUFFIX2,
|
|
55387
55392
|
annotations: toolAnnotations({ readOnly: true, openWorld: true }),
|
|
55388
55393
|
_meta: workMeta("other", { aliases: ["export", "save the chat", "chat history"] }),
|
|
55389
55394
|
inputSchema: {
|
package/dist/tools/export.js
CHANGED
|
@@ -16,10 +16,12 @@
|
|
|
16
16
|
* `budget_seconds`, whichever comes first, and returns `has_more` with a
|
|
17
17
|
* `cursor`; passing the cursor back continues the SAME export (the same
|
|
18
18
|
* directory on disk, the next `part-NNNN.zip` in the blob store). The cursor
|
|
19
|
-
* carries the original arguments,
|
|
20
|
-
*
|
|
21
|
-
*
|
|
22
|
-
*
|
|
19
|
+
* carries the original arguments, what is still to do — for an export of
|
|
20
|
+
* named conversations the ids they resolved to; otherwise (or when that list
|
|
21
|
+
* is too long for a cursor) only the id to go on from, so the cursor stays
|
|
22
|
+
* short: conversations are exported in id order and the next part re-lists
|
|
23
|
+
* them from there, so one that first appears between parts is exported only
|
|
24
|
+
* if its id sorts after that point — and where in the current
|
|
23
25
|
* conversation it stopped, as a `from.ts` position. The budget is checked
|
|
24
26
|
* between conversations and between pages of a read; a read cut by it is
|
|
25
27
|
* redone whole by the next part, except the first conversation of a call,
|
|
@@ -426,13 +428,22 @@ async function runExport({ chatsvc, sharepoint }, input, opts) {
|
|
|
426
428
|
args,
|
|
427
429
|
...(stopPos !== undefined ? { pos: stopPos } : {}),
|
|
428
430
|
};
|
|
429
|
-
|
|
430
|
-
|
|
431
|
+
// A whole-account export re-lists on resume, so it goes on from an id: the cursor stays
|
|
432
|
+
// short however many conversations remain. A named one keeps the conversations its names
|
|
433
|
+
// resolved to (a short list), so a resume never resolves them again.
|
|
434
|
+
const fromId = encodeExportCursor({ ...base, from_id: queue[0] });
|
|
435
|
+
if (args.conversations === undefined) {
|
|
436
|
+
cursor = fromId;
|
|
431
437
|
}
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
438
|
+
else {
|
|
439
|
+
try {
|
|
440
|
+
cursor = encodeExportCursor({ ...base, ids: queue });
|
|
441
|
+
}
|
|
442
|
+
catch (err) {
|
|
443
|
+
if (!(err instanceof TypeError))
|
|
444
|
+
throw err;
|
|
445
|
+
cursor = fromId;
|
|
446
|
+
}
|
|
436
447
|
}
|
|
437
448
|
}
|
|
438
449
|
else {
|
|
@@ -488,8 +499,8 @@ export function registerExportTools(server, deps, opts = {}) {
|
|
|
488
499
|
`(default ${DEFAULT_MAX_ITEMS}, max ${MAX_ITEMS}) or budget_seconds (default ${DEFAULT_BUDGET_SECONDS}, ` +
|
|
489
500
|
`max ${MAX_BUDGET_SECONDS}); when has_more is true pass cursor back (alone, or with max_items / ` +
|
|
490
501
|
'budget_seconds) to continue the same export into the same folder (a hosted install returns a new link ' +
|
|
491
|
-
'per part).
|
|
492
|
-
'conversation that first appears between parts
|
|
502
|
+
'per part). Conversations are exported in id order and a cursor resumes from an id, so a ' +
|
|
503
|
+
'conversation that first appears between parts is included only if it sorts after that point. A rejected credential or persistent rate limiting stops early with a cursor and keeps what ' +
|
|
493
504
|
'was written; a conversation that cannot be read is listed in errors and skipped. Never marks anything ' +
|
|
494
505
|
'read. A name matching several conversations returns {ambiguous: true, candidates} and writes nothing. ' +
|
|
495
506
|
'With attachments true, inline images and shared files (up to 25 MB) are saved under ' +
|
package/dist/version.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@chrischall/microsoft-teams-mcp",
|
|
3
|
-
"version": "0.8.
|
|
3
|
+
"version": "0.8.3",
|
|
4
4
|
"mcpName": "io.github.chrischall/microsoft-teams-mcp",
|
|
5
5
|
"description": "Microsoft Teams MCP server for Claude — developed and maintained by AI (Claude Code)",
|
|
6
6
|
"author": "Claude Code (AI) <https://www.anthropic.com/claude>",
|
package/server.json
CHANGED
|
@@ -6,12 +6,12 @@
|
|
|
6
6
|
"url": "https://github.com/chrischall/microsoft-teams-mcp",
|
|
7
7
|
"source": "github"
|
|
8
8
|
},
|
|
9
|
-
"version": "0.8.
|
|
9
|
+
"version": "0.8.3",
|
|
10
10
|
"packages": [
|
|
11
11
|
{
|
|
12
12
|
"registryType": "npm",
|
|
13
13
|
"identifier": "@chrischall/microsoft-teams-mcp",
|
|
14
|
-
"version": "0.8.
|
|
14
|
+
"version": "0.8.3",
|
|
15
15
|
"transport": {
|
|
16
16
|
"type": "stdio"
|
|
17
17
|
},
|