@chrischall/microsoft-teams-mcp 0.9.0 → 0.11.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.
@@ -1,5 +1,6 @@
1
1
  import { z } from 'zod';
2
2
  import { CONFIRM_FLOW_SENTENCE, CONFIRM_INJECTION_RULE, confirmTokenParam, confirmWrite, McpToolError, toolAnnotations, WriteOutcomeUnknownError, writeOutcomeStatus, } from '@chrischall/mcp-utils';
3
+ import { UNTITLED_GROUP_TITLE } from '../model.js';
3
4
  import { wrapApiError } from './errors.js';
4
5
  import { workMeta } from './hints.js';
5
6
  import { knownPeople, resolvePeople } from './people.js';
@@ -8,6 +9,7 @@ import { untrustedField, untrustedResult, UNTRUSTED_DESCRIPTION_SUFFIX } from '.
8
9
  const RENAME = 'teams_rename_chat';
9
10
  const ADD = 'teams_add_chat_members';
10
11
  const REMOVE = 'teams_remove_chat_members';
12
+ const CREATE = 'teams_create_group_chat';
11
13
  /** Most people one call adds or removes. */
12
14
  const MAX_PEOPLE = 20;
13
15
  const KIND_LABELS = {
@@ -21,21 +23,28 @@ const conversationParam = z
21
23
  .min(1)
22
24
  .describe('The group chat: its id (from teams_list_conversations), or a case-insensitive substring of its title or ' +
23
25
  "an untitled chat's participant names.");
26
+ /** How a person may be named, for a `people` parameter; `local` says where a name is matched before the directory. */
27
+ function peopleParamText(local) {
28
+ return ('each an MRI (8:orgid:…), a bare Entra object id, an email address (looked up in your organisation\'s ' +
29
+ 'directory), or a display name ("Greg King" and "King, Greg" are the same) matched among ' +
30
+ `${local}, then — only if no one there matches — in the directory.`);
31
+ }
24
32
  const peopleParam = z
25
33
  .array(z.string().trim().min(1))
26
34
  .min(1)
27
35
  .max(MAX_PEOPLE)
28
- .describe('Who: each an MRI (8:orgid:…), a bare Entra object id, an email address (looked up in your organisation\'s ' +
29
- 'directory), or a display name ("Greg King" and "King, Greg" are the same) matched among the other people ' +
30
- 'of your 1:1 chats and recent senders in this chat, then — only if no one there matches — in the directory.');
31
- const PEOPLE_SENTENCE = 'people are MRIs (8:orgid:…), bare object ids, email addresses, or display names. A name is matched ' +
32
- '(ignoring case, in either "First Last" or "Last, First" order) among the other person of each of the ' +
33
- "user's 1:1 chats and the chat's recent senders first; only when no one there matches is the organisation's " +
34
- 'directory searched, where the one person with exactly that name is taken (or the only suggestion, when the ' +
35
- 'name is whole words of it). An email address is looked up in the directory and must be exactly one ' +
36
- "person's email or UPN. An ambiguous or unknown person refuses the whole call, listing candidates. The " +
37
- 'directory is searched with the same token as teams_search_messages: the first lookup may need the user to ' +
38
- 'run any search in the Teams search box so it can be captured. ';
36
+ .describe(`Who: ${peopleParamText('the other people of your 1:1 chats and recent senders in this chat')}`);
37
+ /** The description's sentence on naming people; `local` says where a name is matched before the directory. */
38
+ function peopleSentence(local) {
39
+ return ('people are MRIs (8:orgid:…), bare object ids, email addresses, or display names. A name is matched ' +
40
+ `(ignoring case, in either "First Last" or "Last, First" order) among ${local} first; only when no one ` +
41
+ "there matches is the organisation's directory searched, where the one person with exactly that name is " +
42
+ 'taken (or the only suggestion, when the name is whole words of it). An email address is looked up in the ' +
43
+ "directory and must be exactly one person's email or UPN. An ambiguous or unknown person refuses the whole " +
44
+ 'call, listing candidates. The directory is searched with the same token as teams_search_messages: the ' +
45
+ 'first lookup may need the user to run any search in the Teams search box so it can be captured. ');
46
+ }
47
+ const PEOPLE_SENTENCE = peopleSentence("the other person of each of the user's 1:1 chats and the chat's recent senders");
39
48
  /** The conversation, refused unless it is a group chat. `doing` words the refusal ("renamed"). */
40
49
  async function groupChat(chatsvc, conversation, me, doing) {
41
50
  const target = await resolveTarget(chatsvc, conversation, me, `change`);
@@ -67,7 +76,11 @@ function shown(p) {
67
76
  ...(p.email !== undefined ? { email: p.email } : {}),
68
77
  };
69
78
  }
70
- /** People resolved and de-duplicated by MRI (the first naming of each kept). */
79
+ /**
80
+ * People resolved and de-duplicated by MRI (the first naming of each kept).
81
+ * Names are matched among the user's 1:1s and, given `conversationId`, that
82
+ * chat's recent senders; with none (a chat not yet made), the 1:1s only.
83
+ */
71
84
  async function resolveFor(chatsvc, directory, me, conversationId, people) {
72
85
  const known = await knownPeople(chatsvc, me, conversationId);
73
86
  const seen = new Set();
@@ -378,6 +391,125 @@ export function registerGroupChatTools(server, { chatsvc, substrate }) {
378
391
  throw wrapApiError(err, 'remove people from the chat');
379
392
  }
380
393
  });
394
+ server.registerTool(CREATE, {
395
+ title: 'Create a Teams group chat',
396
+ description: 'Start a new group chat as the signed-in user with 2–20 other people, optionally named (topic). The user ' +
397
+ 'is always included (listing them is ignored), as are duplicates; fewer than two other people is refused — ' +
398
+ 'one other person is a 1:1, which this tool does not create. ' +
399
+ peopleSentence("the other person of each of the user's 1:1 chats") +
400
+ 'Everyone added sees the chat at once in their chat list, and it cannot be deleted afterwards — only ' +
401
+ 'left. No message is sent: post the first one with teams_send_message, passing the new conversation id. ' +
402
+ 'Not idempotent: every confirmed call makes a NEW chat. The result has the new conversation (id, title, ' +
403
+ 'kind "group"), the members and whether reading the chat back showed them all and the topic (verified); ' +
404
+ 'status "unknown" means Teams did not confirm the create — a chat may exist anyway, so check ' +
405
+ 'teams_list_conversations and do NOT retry blindly (that would make a second chat). ' +
406
+ CONFIRM_FLOW_SENTENCE +
407
+ ' The preview shows the topic and exactly who would be in the chat — each with their source (id, chat or ' +
408
+ 'directory) and, from the directory, their email — so the user can check it is the right people. ' +
409
+ CONFIRM_INJECTION_RULE +
410
+ UNTRUSTED_DESCRIPTION_SUFFIX,
411
+ annotations: toolAnnotations({ readOnly: false, destructive: false, idempotent: false, openWorld: true }),
412
+ _meta: workMeta('send', {
413
+ aliases: ['create chat', 'new group chat', 'start a chat', 'new chat', 'group chat', 'start group chat'],
414
+ }),
415
+ inputSchema: {
416
+ people: z
417
+ .array(z.string().trim().min(1))
418
+ .min(2)
419
+ .max(MAX_PEOPLE)
420
+ .describe(`Who to start the chat with (2–20 others; you are added automatically): ` +
421
+ peopleParamText('the other people of your 1:1 chats')),
422
+ topic: z
423
+ .string()
424
+ .optional()
425
+ .describe('A name for the chat (surrounding spaces are trimmed). Omit or leave empty for an untitled chat.'),
426
+ confirmToken: confirmTokenParam,
427
+ },
428
+ }, async ({ people, topic: rawTopic, confirmToken }, ctx) => {
429
+ try {
430
+ const me = await chatsvc.meMri();
431
+ const topic = rawTopic?.trim() || undefined;
432
+ const others = (await resolveFor(chatsvc, substrate, me, undefined, people)).filter((p) => p.mri.toLowerCase() !== me.toLowerCase());
433
+ if (others.length < 2) {
434
+ throw new McpToolError(`A group chat needs at least two other people besides you; ${others.length === 1 ? `only ${JSON.stringify(others[0].person)} is` : 'no one else is'} left once you and duplicates are dropped. One other person is a 1:1 chat, which this tool does not create.`, {
435
+ hint: 'Add at least one more person, or to talk to one person use your 1:1 chat with them (teams_send_message, ' +
436
+ 'conversation set to their name).',
437
+ });
438
+ }
439
+ const members = others.map(shown);
440
+ const allMris = [me, ...others.map((p) => p.mri)];
441
+ const count = `you and ${others.length} other people`;
442
+ const gate = await confirmWrite(ctx, {
443
+ tool: CREATE,
444
+ action: 'chat.create',
445
+ message: 'Review and confirm this new group chat before it is created — it cannot be deleted afterwards:',
446
+ // The topic is the caller's own text: JSON-quoted all the same, so it reads as one value.
447
+ summary: `Create ${topic !== undefined ? `group chat ${JSON.stringify(topic)}` : 'an untitled group chat'} with ${count}`,
448
+ account: me,
449
+ target: 'new group chat',
450
+ request: { method: 'POST', path: '/threads', body: { members: allMris, ...(topic !== undefined ? { topic } : {}) } },
451
+ // The resolved names are set by other people, so they are fenced.
452
+ preview: {
453
+ topic: topic ?? '(untitled)',
454
+ members: untrustedField(members),
455
+ note: 'Creates a NEW group chat with everyone as a member (Teams makes each one an Admin). Everyone added ' +
456
+ 'sees it at once; it cannot be deleted afterwards, only left. No message is sent.',
457
+ },
458
+ confirmToken,
459
+ });
460
+ if (gate)
461
+ return gate;
462
+ let id;
463
+ try {
464
+ ({ id } = await chatsvc.createGroupChat(others.map((p) => p.mri), topic));
465
+ }
466
+ catch (e) {
467
+ if (!(e instanceof WriteOutcomeUnknownError))
468
+ throw e;
469
+ return untrustedResult({
470
+ status: 'unknown',
471
+ ...(topic !== undefined ? { topic } : {}),
472
+ members,
473
+ warning: `Teams did not confirm creating the chat (${unconfirmedWhy(e)}), so it may or may not exist. Check ` +
474
+ 'teams_list_conversations for a new group chat with these people (no messages yet) before doing ' +
475
+ 'anything else — do NOT retry blindly: if it was created, retrying makes a second chat, and chats ' +
476
+ 'cannot be deleted.',
477
+ });
478
+ }
479
+ let warning;
480
+ let verified;
481
+ try {
482
+ const thread = await chatsvc.getThread(id);
483
+ const present = memberSet(thread);
484
+ const missing = allMris.filter((m) => !present.has(m.toLowerCase()));
485
+ const shownTopic = thread.properties?.topic || undefined;
486
+ const notes = [];
487
+ if (missing.length > 0)
488
+ notes.push(`did not show ${missing.join(', ')} as a member`);
489
+ if (shownTopic !== topic)
490
+ notes.push(`showed the topic as ${JSON.stringify(shownTopic ?? '')}`);
491
+ verified = notes.length === 0;
492
+ if (!verified) {
493
+ warning = `Teams created the chat, but reading it back ${notes.join(' and ')} — check it in Teams (do not create it again).`;
494
+ }
495
+ }
496
+ catch {
497
+ verified = null;
498
+ warning = 'Teams created the chat, but reading the chat back failed — check it in teams_list_conversations (do not create it again).';
499
+ }
500
+ return untrustedResult({
501
+ status: 'created',
502
+ conversation: { id, title: topic ?? UNTITLED_GROUP_TITLE, kind: 'group' },
503
+ ...(topic !== undefined ? { topic } : {}),
504
+ members,
505
+ verified,
506
+ ...(warning !== undefined ? { warning } : {}),
507
+ });
508
+ }
509
+ catch (err) {
510
+ throw wrapApiError(err, 'create the group chat');
511
+ }
512
+ });
381
513
  }
382
514
  /** `results` in the order the people were asked for. */
383
515
  function orderAs(people, results) {
@@ -1,6 +1,7 @@
1
1
  /**
2
2
  * People by name, for the tools that act on someone: a group chat's members
3
- * (`teams_add_chat_members`, `teams_remove_chat_members`) and a message's
3
+ * (`teams_add_chat_members`, `teams_remove_chat_members`,
4
+ * `teams_create_group_chat`) and a message's
4
5
  * @mentions (`teams_send_message`).
5
6
  *
6
7
  * A person is, in this order:
@@ -68,7 +69,8 @@ export async function recentSenders(chatsvc, conversationId) {
68
69
  /**
69
70
  * Everyone this MCP can put a name to for `conversationId`: the other person
70
71
  * of every 1:1 the user has (as that 1:1 is titled), then the chat's recent
71
- * senders. One entry per MRI (ignoring case), the 1:1 name winning. Never
72
+ * senders. With no `conversationId` (a chat not yet made), the 1:1 people
73
+ * only. One entry per MRI (ignoring case), the 1:1 name winning. Never
72
74
  * throws — a failed read just knows fewer people.
73
75
  */
74
76
  export async function knownPeople(chatsvc, me, conversationId) {
@@ -91,6 +93,8 @@ export async function knownPeople(chatsvc, me, conversationId) {
91
93
  catch {
92
94
  // No 1:1 names; the chat's own senders may still do.
93
95
  }
96
+ if (conversationId === undefined)
97
+ return [...byMri.values()];
94
98
  try {
95
99
  for (const [mri, name] of await recentSenders(chatsvc, conversationId))
96
100
  add(mri, name);
@@ -187,8 +191,8 @@ function pickByName(person, found) {
187
191
  `suggested: ${candidateList(found)}. ${THIRD_PARTY_NAMES_NOTE}`, { hint: 'If one of them is who you mean, pass their email address or MRI (8:orgid:…).' });
188
192
  }
189
193
  throw new McpToolError(`No one in your chats or your organisation's directory is called "${person}".`, {
190
- hint: `${PASS_ID} A name is matched among the other person of each of your 1:1 chats and this chat's recent ` +
191
- "senders, then searched in your organisation's directory.",
194
+ hint: `${PASS_ID} A name is matched among the other person of each of your 1:1 chats and (for an existing chat) ` +
195
+ "its recent senders, then searched in your organisation's directory.",
192
196
  });
193
197
  }
194
198
  /**
@@ -0,0 +1,122 @@
1
+ import { z } from 'zod';
2
+ import { McpToolError, toolAnnotations } from '@chrischall/mcp-utils';
3
+ import { isOccurrenceDate, occurrenceUid, parseMeetingInfo, summarizeRecap } from '../recap.js';
4
+ import { AmbiguousConversationError, ambiguousResult, resolveListed } from './conversation.js';
5
+ import { wrapApiError } from './errors.js';
6
+ import { workMeta } from './hints.js';
7
+ import { untrustedResult, UNTRUSTED_DESCRIPTION_SUFFIX } from './untrusted.js';
8
+ /** Messages read for the days a recurring meeting met (newest first). */
9
+ export const MAX_SCAN = 1000;
10
+ /** Occurrences tried, newest first, for one with a recap. */
11
+ export const MAX_PROBE = 5;
12
+ /** Other occurrence days listed beside the one returned. */
13
+ const MAX_OTHERS = 20;
14
+ /** Messages that mark a meeting having happened: a call starting or ending, or a recording. */
15
+ const CALL_TYPES = new Set(['Event/Call', 'RichText/Media_CallRecording', 'RichText/Media_CallTranscript']);
16
+ /** The UTC days of the calls in `messages`, newest first, one each. */
17
+ export function callDays(messages) {
18
+ const days = new Map();
19
+ for (const m of messages) {
20
+ if (!CALL_TYPES.has(m.messagetype ?? ''))
21
+ continue;
22
+ const ms = Date.parse(m.composetime ?? m.originalarrivaltime ?? '') || Number(m.id);
23
+ if (!Number.isFinite(ms) || ms <= 0)
24
+ continue;
25
+ const day = new Date(ms).toISOString().slice(0, 10);
26
+ days.set(day, Math.max(days.get(day) ?? 0, ms));
27
+ }
28
+ return [...days.entries()].sort((a, b) => b[1] - a[1]).map(([d]) => d);
29
+ }
30
+ const isEmpty = (r) => Object.keys(r).length === 0;
31
+ function hintFor(recap, occurrence, recurring, searched) {
32
+ const parts = [];
33
+ if (isEmpty(recap)) {
34
+ parts.push(recurring && occurrence === undefined && !searched
35
+ ? 'No call was found in this chat to pick an occurrence from: pass date (YYYY-MM-DD) for the occurrence you want.'
36
+ : `Nothing was recorded or shared for ${occurrence !== undefined ? `the ${occurrence} occurrence` : 'this meeting'}: no recording, transcript, notes or files.`);
37
+ }
38
+ if (recap.transcripts !== undefined)
39
+ parts.push('teams_get_transcript reads a recording\'s transcript text from this same chat.');
40
+ if (recap.ai_summary !== undefined) {
41
+ parts.push("Teams made AI notes (Intelligent Recap) for this meeting; they are shown only in Teams, to licensed users, and are not read here.");
42
+ }
43
+ return parts.length > 0 ? parts.join(' ') : undefined;
44
+ }
45
+ export function registerRecapTools(server, { chatsvc, recap }) {
46
+ server.registerTool('teams_get_meeting_recap', {
47
+ title: 'Get a Teams meeting recap',
48
+ description: "Get what a Teams meeting's Recap tab shows, from its meeting chat (by id or by name, as teams_list_conversations " +
49
+ 'lists it): recordings (start, end, duration, play link), transcripts, the meeting notes (Loop) link, attendance ' +
50
+ 'reports, files shared in the meeting chat or on stage (e.g. a whiteboard), and whether Teams made AI notes ' +
51
+ '(their text is not read). A recurring meeting has one recap per occurrence: pass date (YYYY-MM-DD) for one, else ' +
52
+ `the newest day the chat shows a call on that has a recap is returned (up to ${MAX_PROBE} tried), with series ` +
53
+ '(what belongs to the whole series) and other_occurrences (other call days, newest first). For the transcript text ' +
54
+ 'use teams_get_transcript. Uses its own token, captured when a Recap tab is opened in Teams. Does not mark anything read.' +
55
+ UNTRUSTED_DESCRIPTION_SUFFIX,
56
+ _meta: workMeta('lookup', {
57
+ aliases: ['recap', 'meeting recap', 'meeting notes', 'attendance report', 'attendance', 'recording link', 'intelligent recap', 'ai notes'],
58
+ }),
59
+ annotations: toolAnnotations({ readOnly: true, openWorld: true }),
60
+ inputSchema: {
61
+ conversation: z.string().min(1).describe("The meeting chat's id, or a case-insensitive substring of its title."),
62
+ date: z
63
+ .string()
64
+ .refine(isOccurrenceDate, 'date must be a real day, YYYY-MM-DD')
65
+ .optional()
66
+ .describe('For a recurring meeting: the occurrence, YYYY-MM-DD (the UTC day it met). Default: the newest with a recap.'),
67
+ },
68
+ }, async ({ conversation, date }) => {
69
+ try {
70
+ const [raw, me] = await Promise.all([chatsvc.listConversations(), chatsvc.meMri()]);
71
+ const summary = await resolveListed(chatsvc, raw, me, conversation, 'read the recap of');
72
+ const meeting = parseMeetingInfo(await chatsvc.getThread(summary.id));
73
+ if (meeting === undefined) {
74
+ throw new McpToolError(`"${summary.title}" is not a meeting chat: it has no scheduled meeting to recap.`, {
75
+ hint: "Pass a meeting's own chat (teams_list_conversations lists them with type \"meeting\").",
76
+ });
77
+ }
78
+ const read = async (uid) => summarizeRecap(await recap.readCollabObject(meeting, uid, summary.id));
79
+ const base = {
80
+ conversation: summary.id,
81
+ title: summary.title,
82
+ meeting: {
83
+ ...(meeting.subject !== undefined ? { subject: meeting.subject } : {}),
84
+ recurring: meeting.recurring,
85
+ ...(meeting.joinUrl !== undefined ? { join_url: meeting.joinUrl } : {}),
86
+ },
87
+ };
88
+ if (!meeting.recurring) {
89
+ const r = await read(meeting.iCalUid);
90
+ const hint = hintFor(r, undefined, false, true);
91
+ return untrustedResult({ ...base, recap: r, ...(hint !== undefined ? { hint } : {}) });
92
+ }
93
+ const days = date !== undefined ? [date] : callDays(await chatsvc.getMessages(summary.id, { max: MAX_SCAN }));
94
+ const series = await read(meeting.iCalUid);
95
+ let chosen;
96
+ for (const day of days.slice(0, MAX_PROBE)) {
97
+ const r = await read(occurrenceUid(meeting.iCalUid, day));
98
+ chosen ??= { day, recap: r };
99
+ if (!isEmpty(r)) {
100
+ chosen = { day, recap: r };
101
+ break;
102
+ }
103
+ }
104
+ const r = chosen?.recap ?? {};
105
+ const others = days.filter((d) => d !== chosen?.day).slice(0, MAX_OTHERS);
106
+ const hint = hintFor(r, chosen?.day, true, days.length > 0);
107
+ return untrustedResult({
108
+ ...base,
109
+ ...(chosen !== undefined ? { occurrence: chosen.day } : {}),
110
+ recap: r,
111
+ ...(!isEmpty(series) ? { series } : {}),
112
+ ...(others.length > 0 ? { other_occurrences: others } : {}),
113
+ ...(hint !== undefined ? { hint } : {}),
114
+ });
115
+ }
116
+ catch (err) {
117
+ if (err instanceof AmbiguousConversationError)
118
+ return untrustedResult(ambiguousResult(err));
119
+ throw wrapApiError(err, 'get the meeting recap');
120
+ }
121
+ });
122
+ }
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.9.0'; // x-release-please-version
13
+ export const VERSION = '0.11.0'; // x-release-please-version
package/mint.yaml CHANGED
@@ -82,6 +82,15 @@ env:
82
82
  help: >-
83
83
  Path to the cached Substrate search token file. Defaults to
84
84
  ~/.microsoft-teams-mcp/substrate-token.json.
85
+ - name: TEAMS_RECAP_TOKEN_FILE
86
+ required: false
87
+ help: >-
88
+ Path to the cached meeting-recap token file. Defaults to
89
+ ~/.microsoft-teams-mcp/recap-token.json.
90
+ - name: TEAMS_MCPS_REGION
91
+ required: false
92
+ help: >-
93
+ Meeting-recap region in the API path. Defaults to us.
85
94
  - name: TEAMS_SHAREPOINT_TOKEN_FILE
86
95
  required: false
87
96
  help: >-
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@chrischall/microsoft-teams-mcp",
3
- "version": "0.9.0",
3
+ "version": "0.11.0",
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.9.0",
9
+ "version": "0.11.0",
10
10
  "packages": [
11
11
  {
12
12
  "registryType": "npm",
13
13
  "identifier": "@chrischall/microsoft-teams-mcp",
14
- "version": "0.9.0",
14
+ "version": "0.11.0",
15
15
  "transport": {
16
16
  "type": "stdio"
17
17
  },
@@ -93,6 +93,20 @@
93
93
  "format": "string",
94
94
  "isSecret": false
95
95
  },
96
+ {
97
+ "name": "TEAMS_RECAP_TOKEN_FILE",
98
+ "description": "Where the captured meeting-recap token is cached. Defaults to ~/.microsoft-teams-mcp/recap-token.json.",
99
+ "isRequired": false,
100
+ "format": "string",
101
+ "isSecret": false
102
+ },
103
+ {
104
+ "name": "TEAMS_MCPS_REGION",
105
+ "description": "The region in the Teams meeting-recap API path (teams.cloud.microsoft/api/mcps/<region>). Defaults to us. Leave blank unless your tenant lives elsewhere.",
106
+ "isRequired": false,
107
+ "format": "string",
108
+ "isSecret": false
109
+ },
96
110
  {
97
111
  "name": "TEAMS_SHAREPOINT_TOKEN_FILE",
98
112
  "description": "Where the captured SharePoint tokens are cached. Defaults to ~/.microsoft-teams-mcp/sharepoint-tokens.json.",
@@ -116,7 +130,7 @@
116
130
  },
117
131
  {
118
132
  "name": "MCP_CONFIRM_MODE",
119
- "description": "What the writes (teams_send_message, teams_react, teams_mark_read, teams_rename_chat, teams_add_chat_members, teams_remove_chat_members and the read tools' mark_read) do on a client that cannot show a confirmation prompt (claude.ai, Claude Desktop): \"ask-user\" (default: the first call returns a preview and a confirmToken, and the model must get your approval in chat before using it), \"auto\" (the model may use the token after reviewing the preview itself) or \"refuse\". An unrecognised value is treated as refuse.",
133
+ "description": "What the writes (teams_send_message, teams_react, teams_mark_read, teams_rename_chat, teams_add_chat_members, teams_remove_chat_members, teams_create_group_chat and the read tools' mark_read) do on a client that cannot show a confirmation prompt (claude.ai, Claude Desktop): \"ask-user\" (default: the first call returns a preview and a confirmToken, and the model must get your approval in chat before using it), \"auto\" (the model may use the token after reviewing the preview itself) or \"refuse\". An unrecognised value is treated as refuse.",
120
134
  "isRequired": false,
121
135
  "format": "string",
122
136
  "isSecret": false