@chrischall/microsoft-teams-mcp 0.8.6 → 0.8.7

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.6"
10
+ "version": "0.8.7"
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.6",
18
+ "version": "0.8.7",
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.6",
4
+ "version": "0.8.7",
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
@@ -83,8 +83,9 @@ Two things follow from that:
83
83
  - **Open the file once per SharePoint host.** The SharePoint token is captured
84
84
  from the browser's own request to the file's SharePoint host, is short-lived
85
85
  (~53 minutes), and is scoped to one host family. So the first file from a
86
- given host in a session may need you to open it once in a signed-in Teams tab
87
- (that browser request is what the token is read from); after that the token is
86
+ given host in a session may need you to reload a signed-in Teams tab (the
87
+ requests it makes while loading are what the token is read from; opening a
88
+ file does not reliably make one); after that the token is
88
89
  cached and refreshed until it expires. A file your account cannot open, or on
89
90
  a SharePoint host your token does not cover, comes back as metadata and its
90
91
  open link rather than failing.
@@ -458,7 +459,7 @@ Everything is optional — by default the token is captured from your browser.
458
459
  returned as its contents — an image as the image, anything else as an embedded
459
460
  resource carrying the bytes. Shared-file download uses a separate, short-lived
460
461
  SharePoint token captured per SharePoint host, so the first file from a given
461
- host may need [opening once in Teams](#sharepoint-file-download) to mint it; a
462
+ host may need [your Teams tab reloaded](#sharepoint-file-download) to mint it; a
462
463
  file your account cannot open, or one that could not be fetched, comes back as
463
464
  metadata and its open link instead of failing. The caption names the
464
465
  conversation beside its id (`title`, plus `participants` for an untitled
package/dist/bundle.js CHANGED
@@ -38523,7 +38523,7 @@ var init_version = __esm({
38523
38523
  "src/version.ts"() {
38524
38524
  "use strict";
38525
38525
  PACKAGE_NAME = "microsoft-teams-mcp";
38526
- VERSION = "0.8.6";
38526
+ VERSION = "0.8.7";
38527
38527
  }
38528
38528
  });
38529
38529
 
@@ -50112,7 +50112,7 @@ async function captureSharePointTokenViaFetchproxy(host, env = process.env) {
50112
50112
  serverName: PACKAGE_NAME,
50113
50113
  version: VERSION,
50114
50114
  what: `a SharePoint token for ${host}`,
50115
- guidance: `Click around Teams or open one of your own OneDrive files \u2014 that makes the browser request ${host}, which is where the SharePoint token is captured from \u2014 then retry.`,
50115
+ guidance: `Reload your signed-in Teams tab and retry while it loads \u2014 that makes the page call ${host} with the SharePoint token we capture. Opening a file does not reliably do this.`,
50116
50116
  createTransport: bridgeScopedTransport(env, host)
50117
50117
  });
50118
50118
  rememberSharePointHost(host, env);
@@ -51376,7 +51376,7 @@ var SharePointClient = class {
51376
51376
  throw new McpToolError("SharePoint rejected the access token (401) even after a fresh capture.", {
51377
51377
  status,
51378
51378
  kind: "credential_rejected",
51379
- hint: "Open the shared file once in a signed-in Teams tab to mint a fresh SharePoint token, then retry."
51379
+ hint: "Reload your signed-in Teams tab to mint a fresh SharePoint token, and retry while it loads."
51380
51380
  });
51381
51381
  }
51382
51382
  if (status === 429) {
@@ -55045,13 +55045,13 @@ function registerExportTools(server, deps2, opts = {}) {
55045
55045
  // src/tools/attachment.ts
55046
55046
  var MAX_RAW_MESSAGES4 = 4e3;
55047
55047
  var MAX_FILE_BYTES = 25 * 1024 * 1024;
55048
- var FILE_HINT = "A shared file is downloaded from SharePoint and returned as its contents (an image as an image, anything else as an embedded resource; over 10 MiB as a download link, or a saved file on a local install). The first file from a given SharePoint host may need opening once in Teams to mint a short-lived token; a file your account cannot open comes back as metadata and its link.";
55048
+ var FILE_HINT = "A shared file is downloaded from SharePoint and returned as its contents (an image as an image, anything else as an embedded resource; over 10 MiB as a download link, or a saved file on a local install). The first file from a given SharePoint host may need your Teams tab reloaded to mint a short-lived token; a file your account cannot open comes back as metadata and its link.";
55049
55049
  function registerAttachmentTools(server, { chatsvc, sharepoint }) {
55050
55050
  server.registerTool(
55051
55051
  "teams_get_attachment",
55052
55052
  {
55053
55053
  title: "Get a Teams message attachment",
55054
- description: `Fetch one attachment of a Teams chat or channel message, as listed by teams_list_messages / teams_list_unread_messages. An inline image (attachments.images[].ref) is returned as the image itself. A shared file (attachments.files[].name) is downloaded from SharePoint and returned as its contents: an image as the image, anything else as an embedded resource carrying the bytes. Anything over 10 MiB comes back instead as a signed, expiring download link (downloadUrl) on a hosted install, or saved to a fresh file (path) under ${EXPORT_OUTPUT_ENV}, else ~/Downloads/${EXPORT_SERVER_NAME}, on a local one; the caption's via says which. The first file from a given SharePoint host in a session may need opening once in Teams to mint a short-lived token; a file your account cannot open, or one that could not be fetched, comes back as metadata and its open link instead of failing. Its caption names the conversation beside its id: title (as teams_list_conversations names it \u2014 an untitled group chat by its participants, a 1:1 by the other person) and participants. Does not mark anything read.` + UNTRUSTED_DESCRIPTION_SUFFIX2,
55054
+ description: `Fetch one attachment of a Teams chat or channel message, as listed by teams_list_messages / teams_list_unread_messages. An inline image (attachments.images[].ref) is returned as the image itself. A shared file (attachments.files[].name) is downloaded from SharePoint and returned as its contents: an image as the image, anything else as an embedded resource carrying the bytes. Anything over 10 MiB comes back instead as a signed, expiring download link (downloadUrl) on a hosted install, or saved to a fresh file (path) under ${EXPORT_OUTPUT_ENV}, else ~/Downloads/${EXPORT_SERVER_NAME}, on a local one; the caption's via says which. The first file from a given SharePoint host in a session may need your Teams tab reloaded to mint a short-lived token; a file your account cannot open, or one that could not be fetched, comes back as metadata and its open link instead of failing. Its caption names the conversation beside its id: title (as teams_list_conversations names it \u2014 an untitled group chat by its participants, a 1:1 by the other person) and participants. Does not mark anything read.` + UNTRUSTED_DESCRIPTION_SUFFIX2,
55055
55055
  annotations: toolAnnotations({ readOnly: true, openWorld: true }),
55056
55056
  _meta: workMeta("other", { aliases: ["attachment", "image", "file", "screenshot"] }),
55057
55057
  inputSchema: {
@@ -55202,7 +55202,7 @@ function degradeHint(err, host) {
55202
55202
  }
55203
55203
  if (err instanceof McpToolError && err.hint !== void 0) return err.hint;
55204
55204
  if (err instanceof Error && err.message !== "") return err.message;
55205
- return `Couldn't mint a SharePoint token for ${host} \u2014 open the shared file once in a signed-in Teams tab (that browser request is where the token is captured from), then retry.`;
55205
+ return `Couldn't mint a SharePoint token for ${host} \u2014 reload your signed-in Teams tab and retry while it loads (that page load is where the token is captured from).`;
55206
55206
  }
55207
55207
 
55208
55208
  // src/tools/send.ts
@@ -104,9 +104,9 @@ export async function captureSharePointTokenViaFetchproxy(host, env = process.en
104
104
  serverName: PACKAGE_NAME,
105
105
  version: VERSION,
106
106
  what: `a SharePoint token for ${host}`,
107
- guidance: `Click around Teams or open one of your own OneDrive files — that makes the ` +
108
- `browser request ${host}, which is where the SharePoint token is captured ` +
109
- 'from — then retry.',
107
+ guidance: `Reload your signed-in Teams tab and retry while it loads — that makes the ` +
108
+ `page call ${host} with the SharePoint token we capture. Opening a file does ` +
109
+ 'not reliably do this.',
110
110
  createTransport: bridgeScopedTransport(env, host),
111
111
  });
112
112
  // Granted and captured: every later hello declares this host too.
@@ -254,7 +254,7 @@ export class SharePointClient {
254
254
  throw new McpToolError('SharePoint rejected the access token (401) even after a fresh capture.', {
255
255
  status,
256
256
  kind: 'credential_rejected',
257
- hint: 'Open the shared file once in a signed-in Teams tab to mint a fresh SharePoint token, then retry.',
257
+ hint: 'Reload your signed-in Teams tab to mint a fresh SharePoint token, and retry while it loads.',
258
258
  });
259
259
  }
260
260
  if (status === 429) {
@@ -25,7 +25,7 @@ export const MAX_FILE_BYTES = 25 * 1024 * 1024;
25
25
  const FILE_HINT = 'A shared file is downloaded from SharePoint and returned as its contents (an image as an image, ' +
26
26
  'anything else as an embedded resource; over 10 MiB as a download link, or a saved file on a local ' +
27
27
  'install). The first file from a given SharePoint host may need ' +
28
- 'opening once in Teams to mint a short-lived token; a file your account cannot open comes back as ' +
28
+ 'your Teams tab reloaded to mint a short-lived token; a file your account cannot open comes back as ' +
29
29
  'metadata and its link.';
30
30
  export function registerAttachmentTools(server, { chatsvc, sharepoint }) {
31
31
  server.registerTool('teams_get_attachment', {
@@ -38,7 +38,7 @@ export function registerAttachmentTools(server, { chatsvc, sharepoint }) {
38
38
  'expiring download link (downloadUrl) on a hosted install, or saved to a fresh file (path) under ' +
39
39
  `${EXPORT_OUTPUT_ENV}, else ~/Downloads/${EXPORT_SERVER_NAME}, on a local one; the caption's via ` +
40
40
  'says which. The first file from a given SharePoint host in a ' +
41
- 'session may need opening once in Teams to mint a short-lived token; a file your account ' +
41
+ 'session may need your Teams tab reloaded to mint a short-lived token; a file your account ' +
42
42
  'cannot open, or one that could not be fetched, comes back as metadata and its open link ' +
43
43
  'instead of failing. Its caption names the conversation beside its id: title (as teams_list_conversations ' +
44
44
  'names it — an untitled group chat by its participants, a 1:1 by the other person) and participants. ' +
@@ -246,6 +246,6 @@ export function degradeHint(err, host) {
246
246
  // "open the file" cannot fix a refusal.
247
247
  if (err instanceof Error && err.message !== '')
248
248
  return err.message;
249
- return (`Couldn't mint a SharePoint token for ${host} — open the shared file once in a signed-in Teams ` +
250
- 'tab (that browser request is where the token is captured from), then retry.');
249
+ return (`Couldn't mint a SharePoint token for ${host} — reload your signed-in Teams tab and retry while ` +
250
+ 'it loads (that page load is where the token is captured from).');
251
251
  }
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.6'; // x-release-please-version
13
+ export const VERSION = '0.8.7'; // 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.6",
3
+ "version": "0.8.7",
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>",
@@ -47,17 +47,17 @@
47
47
  "dependencies": {
48
48
  "@chrischall/mcp-utils": "^3.7.2",
49
49
  "@fetchproxy/server": "^3.8.0",
50
- "@modelcontextprotocol/server": "^2.3.0",
51
- "dotenv": "^18.0.1",
52
- "zod": "^4.6.5"
50
+ "@modelcontextprotocol/server": "^2.4.0",
51
+ "dotenv": "^18.0.10",
52
+ "zod": "^4.6.7"
53
53
  },
54
54
  "devDependencies": {
55
- "@modelcontextprotocol/client": "^2.3.0",
56
- "@types/node": "^26.0.0",
57
- "@vitest/coverage-v8": "^5.0.0",
58
- "esbuild": "^0.28.1",
55
+ "@modelcontextprotocol/client": "^2.4.0",
56
+ "@types/node": "^26.6.6",
57
+ "@vitest/coverage-v8": "^5.1.0",
58
+ "esbuild": "^0.28.2",
59
59
  "typescript": "^7.0.2",
60
- "vitest": "^5.0.0"
60
+ "vitest": "^5.1.0"
61
61
  },
62
62
  "allowScripts": {
63
63
  "esbuild": false,
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.6",
9
+ "version": "0.8.7",
10
10
  "packages": [
11
11
  {
12
12
  "registryType": "npm",
13
13
  "identifier": "@chrischall/microsoft-teams-mcp",
14
- "version": "0.8.6",
14
+ "version": "0.8.7",
15
15
  "transport": {
16
16
  "type": "stdio"
17
17
  },