@softeria/ms-365-mcp-server 0.157.1 → 0.157.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.
Files changed (2) hide show
  1. package/dist/server.js +2 -1
  2. package/package.json +1 -1
package/dist/server.js CHANGED
@@ -529,7 +529,8 @@ class MicrosoftGraphServer {
529
529
  this.options.enabledTools,
530
530
  this.options.readOnly
531
531
  );
532
- const scopeSet = /* @__PURE__ */ new Set([...baseScopes, "User.Read", "offline_access"]);
532
+ const oboExtraScopes = this.options.obo ? parseAllowedScopes(this.options.extraScopes) ?? [] : [];
533
+ const scopeSet = /* @__PURE__ */ new Set([...baseScopes, ...oboExtraScopes, "User.Read", "offline_access"]);
533
534
  microsoftAuthUrl.searchParams.set("scope", Array.from(scopeSet).join(" "));
534
535
  res.redirect(microsoftAuthUrl.toString());
535
536
  });
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@softeria/ms-365-mcp-server",
3
3
  "mcpName": "io.github.Softeria/ms-365-mcp-server",
4
- "version": "0.157.1",
4
+ "version": "0.157.2",
5
5
  "description": " A Model Context Protocol (MCP) server for interacting with Microsoft 365 and Office services through the Graph API",
6
6
  "type": "module",
7
7
  "main": "dist/index.js",