@chrischall/microsoft-teams-mcp 0.8.1 → 0.8.2

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.8.1"
10
+ "version": "0.8.2"
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.1",
18
+ "version": "0.8.2",
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.1",
4
+ "version": "0.8.2",
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/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.1";
38394
+ VERSION = "0.8.2";
38395
38395
  }
38396
38396
  });
38397
38397
 
@@ -50592,7 +50592,7 @@ var ChatServiceClient = class {
50592
50592
  * id of the vetted shape, never taken from message content, so the bearer
50593
50593
  * only ever goes to the Teams gateway. Served even when the meeting's
50594
50594
  * organizer disabled transcript download (verified live 2026-11-04). A 404 is
50595
- * a transcript the store no longer holds (it expires after some weeks).
50595
+ * a transcript the store no longer holds (it expires after about four weeks).
50596
50596
  */
50597
50597
  async fetchTranscript(objectId) {
50598
50598
  this.#requireConfigured();
@@ -50606,7 +50606,7 @@ var ChatServiceClient = class {
50606
50606
  throw new McpToolError("This transcript is no longer available from Teams (404): it has expired or was removed.", {
50607
50607
  status,
50608
50608
  kind: "http",
50609
- hint: "Teams' own copy of a transcript expires after some weeks. The recording's play_url may still open it in the browser if the organizer kept the recording."
50609
+ hint: "Teams' own copy of a transcript expires after about four weeks. The recording's play_url may still open it in the browser if the organizer kept the recording."
50610
50610
  });
50611
50611
  }
50612
50612
  this.#checkStatus(status);
@@ -55429,7 +55429,7 @@ function registerTranscriptTools(server, { chatsvc }) {
55429
55429
  "teams_get_transcript",
55430
55430
  {
55431
55431
  title: "Get a Teams meeting transcript",
55432
- description: `Get the transcript of a recorded Teams meeting from its meeting chat (by id or by name, as teams_list_conversations lists it). Works even when the organizer disabled transcript download: it reads Teams' own copy, the one the Recap tab shows. Returns the newest transcribed recording unless recording_id names another (other_recordings lists the rest, newest first): its time, duration and play_url, the speakers, and the transcript \u2014 format "text" (default: one line per speaker turn, "[hh:mm:ss] Name: words") or "vtt" (the WebVTT as Teams serves it). A transcript longer than ${MAX_INLINE_CHARS.toLocaleString("en-US")} characters is cut short (truncated: true). save: true writes <meeting>-<time>.vtt and .txt instead (on a local install into a fresh folder under dest, else ${EXPORT_OUTPUT_ENV}, else ~/Downloads/${EXPORT_SERVER_NAME}; on a hosted install as a zip behind a signed link) and returns where. Teams' copy expires after some weeks: an expired one is an error, not another recording. Does not mark anything read.` + UNTRUSTED_DESCRIPTION_SUFFIX2,
55432
+ description: `Get the transcript of a recorded Teams meeting from its meeting chat (by id or by name, as teams_list_conversations lists it). Works even when the organizer disabled transcript download: it reads Teams' own copy, the one the Recap tab shows. Returns the newest transcribed recording unless recording_id names another (other_recordings lists the rest, newest first): its time, duration and play_url, the speakers, and the transcript \u2014 format "text" (default: one line per speaker turn, "[hh:mm:ss] Name: words") or "vtt" (the WebVTT as Teams serves it). A transcript longer than ${MAX_INLINE_CHARS.toLocaleString("en-US")} characters is cut short (truncated: true). save: true writes <meeting>-<time>.vtt and .txt instead (on a local install into a fresh folder under dest, else ${EXPORT_OUTPUT_ENV}, else ~/Downloads/${EXPORT_SERVER_NAME}; on a hosted install as a zip behind a signed link) and returns where. Teams' copy expires after about four weeks: an expired one is an error naming the recording, its play_url and the others, not another recording. Does not mark anything read.` + UNTRUSTED_DESCRIPTION_SUFFIX2,
55433
55433
  _meta: workMeta("lookup", { aliases: ["transcript", "meeting transcript", "recording", "recap", "vtt", "what was said"] }),
55434
55434
  // save writes a local file the user asked for; nothing in Teams changes.
55435
55435
  annotations: toolAnnotations({ readOnly: true, openWorld: true }),
@@ -55464,10 +55464,16 @@ function registerTranscriptTools(server, { chatsvc }) {
55464
55464
  });
55465
55465
  }
55466
55466
  }
55467
- const vtt = await chatsvc.fetchTranscript(chosen.object_id);
55467
+ const picked = chosen;
55468
+ const others = recordings.filter((r) => r !== picked).slice(0, MAX_OTHERS).map(shown);
55469
+ let vtt;
55470
+ try {
55471
+ vtt = await chatsvc.fetchTranscript(picked.object_id);
55472
+ } catch (err) {
55473
+ throw errorStatusOf(err) === 404 ? expiredError(summary.title, picked, others, err) : err;
55474
+ }
55468
55475
  const cues = parseVtt(vtt);
55469
55476
  const text = renderTranscriptText(cues);
55470
- const others = recordings.filter((r) => r !== chosen).slice(0, MAX_OTHERS).map(shown);
55471
55477
  const base = {
55472
55478
  conversation: summary.id,
55473
55479
  title: summary.title,
@@ -55515,6 +55521,20 @@ function registerTranscriptTools(server, { chatsvc }) {
55515
55521
  }
55516
55522
  );
55517
55523
  }
55524
+ function expiredError(chatTitle, r, others, cause) {
55525
+ const which = `recording ${r.message_id} (${r.time})`;
55526
+ const play = r.play_url !== void 0 ? ` Open the recording in the browser instead: ${r.play_url}` : "";
55527
+ const rest = others.length > 0 ? ` Other recordings in this chat, newest first (pass one as recording_id): ${others.map((o) => `${o.recording_id} (${o.time})`).join(", ")}.` : "";
55528
+ return new McpToolError(
55529
+ `The transcript of ${which} in "${chatTitle}" is no longer available from Teams (404): it has expired or was removed.`,
55530
+ {
55531
+ status: 404,
55532
+ kind: "http",
55533
+ hint: `Teams keeps its own copy of a transcript for about four weeks.${play}${rest}`,
55534
+ cause
55535
+ }
55536
+ );
55537
+ }
55518
55538
  function recordingObjectOf(messages, id) {
55519
55539
  const m = messages.find((x) => x.id === id);
55520
55540
  return m === void 0 ? void 0 : parseRecording(m)?.object_id;
package/dist/chatsvc.js CHANGED
@@ -405,7 +405,7 @@ export class ChatServiceClient {
405
405
  * id of the vetted shape, never taken from message content, so the bearer
406
406
  * only ever goes to the Teams gateway. Served even when the meeting's
407
407
  * organizer disabled transcript download (verified live 2026-11-04). A 404 is
408
- * a transcript the store no longer holds (it expires after some weeks).
408
+ * a transcript the store no longer holds (it expires after about four weeks).
409
409
  */
410
410
  async fetchTranscript(objectId) {
411
411
  this.#requireConfigured();
@@ -419,7 +419,7 @@ export class ChatServiceClient {
419
419
  throw new McpToolError('This transcript is no longer available from Teams (404): it has expired or was removed.', {
420
420
  status,
421
421
  kind: 'http',
422
- hint: "Teams' own copy of a transcript expires after some weeks. The recording's play_url may still open it " +
422
+ hint: "Teams' own copy of a transcript expires after about four weeks. The recording's play_url may still open it " +
423
423
  'in the browser if the organizer kept the recording.',
424
424
  });
425
425
  }
@@ -1,5 +1,5 @@
1
1
  import { z } from 'zod';
2
- import { McpToolError, currentCallSignal, toolAnnotations } from '@chrischall/mcp-utils';
2
+ import { McpToolError, currentCallSignal, errorStatusOf, toolAnnotations } from '@chrischall/mcp-utils';
3
3
  import { openExportSink, sanitizeExportFileName } from '@chrischall/mcp-utils/export';
4
4
  import { listRecordings, parseRecording, parseVtt, renderTranscriptText, transcriptSpeakers } from '../transcript.js';
5
5
  import { AmbiguousConversationError, ambiguousResult, resolveListed } from './conversation.js';
@@ -30,7 +30,7 @@ export function registerTranscriptTools(server, { chatsvc }) {
30
30
  `${MAX_INLINE_CHARS.toLocaleString('en-US')} characters is cut short (truncated: true). save: true writes ` +
31
31
  `<meeting>-<time>.vtt and .txt instead (on a local install into a fresh folder under dest, else ${EXPORT_OUTPUT_ENV}, ` +
32
32
  `else ~/Downloads/${EXPORT_SERVER_NAME}; on a hosted install as a zip behind a signed link) and returns where. ` +
33
- "Teams' copy expires after some weeks: an expired one is an error, not another recording. " +
33
+ "Teams' copy expires after about four weeks: an expired one is an error naming the recording, its play_url and the others, not another recording. " +
34
34
  'Does not mark anything read.' +
35
35
  UNTRUSTED_DESCRIPTION_SUFFIX,
36
36
  _meta: workMeta('lookup', { aliases: ['transcript', 'meeting transcript', 'recording', 'recap', 'vtt', 'what was said'] }),
@@ -84,10 +84,17 @@ export function registerTranscriptTools(server, { chatsvc }) {
84
84
  });
85
85
  }
86
86
  }
87
- const vtt = await chatsvc.fetchTranscript(chosen.object_id);
87
+ const picked = chosen;
88
+ const others = recordings.filter((r) => r !== picked).slice(0, MAX_OTHERS).map(shown);
89
+ let vtt;
90
+ try {
91
+ vtt = await chatsvc.fetchTranscript(picked.object_id);
92
+ }
93
+ catch (err) {
94
+ throw errorStatusOf(err) === 404 ? expiredError(summary.title, picked, others, err) : err;
95
+ }
88
96
  const cues = parseVtt(vtt);
89
97
  const text = renderTranscriptText(cues);
90
- const others = recordings.filter((r) => r !== chosen).slice(0, MAX_OTHERS).map(shown);
91
98
  const base = {
92
99
  conversation: summary.id,
93
100
  title: summary.title,
@@ -137,6 +144,28 @@ export function registerTranscriptTools(server, { chatsvc }) {
137
144
  }
138
145
  });
139
146
  }
147
+ /**
148
+ * A 404 for `r`'s transcript, naming what the caller cannot otherwise see: which
149
+ * recording was tried (the default is the newest, never stated in the call), its
150
+ * play_url — the one way left to the recording — and the chat's other recordings.
151
+ * Expiry is not worked out from the time: the store's window was observed, not
152
+ * documented, so the others are listed for the caller to try.
153
+ */
154
+ function expiredError(chatTitle, r, others, cause) {
155
+ const which = `recording ${r.message_id} (${r.time})`;
156
+ const play = r.play_url !== undefined ? ` Open the recording in the browser instead: ${r.play_url}` : '';
157
+ const rest = others.length > 0
158
+ ? ` Other recordings in this chat, newest first (pass one as recording_id): ${others
159
+ .map((o) => `${o.recording_id} (${o.time})`)
160
+ .join(', ')}.`
161
+ : '';
162
+ return new McpToolError(`The transcript of ${which} in "${chatTitle}" is no longer available from Teams (404): it has expired or was removed.`, {
163
+ status: 404,
164
+ kind: 'http',
165
+ hint: `Teams keeps its own copy of a transcript for about four weeks.${play}${rest}`,
166
+ cause,
167
+ });
168
+ }
140
169
  /** The object id of the recording message `id`, if it is one (any of a chunk's messages names it). */
141
170
  function recordingObjectOf(messages, id) {
142
171
  const m = messages.find((x) => x.id === id);
package/dist/version.js CHANGED
@@ -10,4 +10,4 @@
10
10
  * line below and nowhere else — not even in prose.
11
11
  */
12
12
  export const PACKAGE_NAME = 'microsoft-teams-mcp';
13
- export const VERSION = '0.8.1'; // x-release-please-version
13
+ export const VERSION = '0.8.2'; // x-release-please-version
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@chrischall/microsoft-teams-mcp",
3
- "version": "0.8.1",
3
+ "version": "0.8.2",
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.1",
9
+ "version": "0.8.2",
10
10
  "packages": [
11
11
  {
12
12
  "registryType": "npm",
13
13
  "identifier": "@chrischall/microsoft-teams-mcp",
14
- "version": "0.8.1",
14
+ "version": "0.8.2",
15
15
  "transport": {
16
16
  "type": "stdio"
17
17
  },