@softeria/ms-365-mcp-server 0.79.3 → 0.79.4
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 +10 -0
- package/package.json +1 -1
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@softeria/ms-365-mcp-server",
|
|
3
|
-
"version": "0.79.
|
|
3
|
+
"version": "0.79.4",
|
|
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",
|