@softeria/ms-365-mcp-server 0.79.3 → 0.79.5

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/dist/cli.js CHANGED
@@ -65,6 +65,16 @@ function parseArgs() {
65
65
  if (process.env.ENABLED_TOOLS) {
66
66
  options.enabledTools = process.env.ENABLED_TOOLS;
67
67
  }
68
+ if (options.enabledTools) {
69
+ try {
70
+ new RegExp(options.enabledTools, "i");
71
+ } catch {
72
+ console.error(
73
+ `Error: invalid --enabled-tools regex pattern: "${options.enabledTools}". Without a valid filter, all tools would be exposed.`
74
+ );
75
+ process.exit(1);
76
+ }
77
+ }
68
78
  if (process.env.MS365_MCP_ORG_MODE === "true" || process.env.MS365_MCP_ORG_MODE === "1") {
69
79
  options.orgMode = true;
70
80
  }
package/dist/server.js CHANGED
@@ -132,7 +132,7 @@ class MicrosoftGraphServer {
132
132
  app.set("trust proxy", true);
133
133
  app.use(express.json());
134
134
  app.use(express.urlencoded({ extended: true }));
135
- const corsOrigin = process.env.MS365_MCP_CORS_ORIGIN || "*";
135
+ const corsOrigin = process.env.MS365_MCP_CORS_ORIGIN || "http://localhost:3000";
136
136
  app.use((req, res, next) => {
137
137
  res.header("Access-Control-Allow-Origin", corsOrigin);
138
138
  res.header("Access-Control-Allow-Methods", "GET, POST, PUT, DELETE, OPTIONS");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@softeria/ms-365-mcp-server",
3
- "version": "0.79.3",
3
+ "version": "0.79.5",
4
4
  "description": " A Model Context Protocol (MCP) server for interacting with Microsoft 365 and Office services through the Graph API",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",