@softeria/ms-365-mcp-server 0.32.0 → 0.33.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.
- package/dist/endpoints.json +2 -1
- package/dist/graph-tools.js +15 -1
- package/logs/mcp-server.log +5 -5
- package/package.json +1 -1
- package/src/endpoints.json +2 -1
package/dist/endpoints.json
CHANGED
package/dist/graph-tools.js
CHANGED
|
@@ -83,6 +83,10 @@ async function executeGraphTool(tool, config, graphClient, params) {
|
|
|
83
83
|
headers["Prefer"] = `outlook.timezone="${params.timezone}"`;
|
|
84
84
|
logger.info(`Setting timezone header: Prefer: outlook.timezone="${params.timezone}"`);
|
|
85
85
|
}
|
|
86
|
+
if (config?.contentType) {
|
|
87
|
+
headers["Content-Type"] = config.contentType;
|
|
88
|
+
logger.info(`Setting custom Content-Type: ${config.contentType}`);
|
|
89
|
+
}
|
|
86
90
|
if (Object.keys(queryParams).length > 0) {
|
|
87
91
|
const queryString = Object.entries(queryParams).map(([key, value]) => `${encodeURIComponent(key)}=${encodeURIComponent(value)}`).join("&");
|
|
88
92
|
path2 = `${path2}${path2.includes("?") ? "&" : "?"}${queryString}`;
|
|
@@ -92,7 +96,17 @@ async function executeGraphTool(tool, config, graphClient, params) {
|
|
|
92
96
|
headers
|
|
93
97
|
};
|
|
94
98
|
if (options.method !== "GET" && body) {
|
|
95
|
-
|
|
99
|
+
if (config?.contentType === "text/html") {
|
|
100
|
+
if (typeof body === "string") {
|
|
101
|
+
options.body = body;
|
|
102
|
+
} else if (typeof body === "object" && "content" in body) {
|
|
103
|
+
options.body = body.content;
|
|
104
|
+
} else {
|
|
105
|
+
options.body = String(body);
|
|
106
|
+
}
|
|
107
|
+
} else {
|
|
108
|
+
options.body = typeof body === "string" ? body : JSON.stringify(body);
|
|
109
|
+
}
|
|
96
110
|
}
|
|
97
111
|
const isProbablyMediaContent = tool.errors?.some((error) => error.description === "Retrieved media content") || path2.endsWith("/content");
|
|
98
112
|
if (config?.returnDownloadUrl && path2.endsWith("/content")) {
|
package/logs/mcp-server.log
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
2026-01
|
|
2
|
-
2026-01
|
|
3
|
-
2026-01
|
|
4
|
-
2026-01
|
|
5
|
-
2026-01
|
|
1
|
+
2026-02-01 10:50:13 INFO: Using environment variables for secrets
|
|
2
|
+
2026-02-01 10:50:13 INFO: Using environment variables for secrets
|
|
3
|
+
2026-02-01 10:50:13 INFO: Using environment variables for secrets
|
|
4
|
+
2026-02-01 10:50:13 INFO: Using environment variables for secrets
|
|
5
|
+
2026-02-01 10:50:13 INFO: Using environment variables for secrets
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@softeria/ms-365-mcp-server",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.33.0",
|
|
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",
|
package/src/endpoints.json
CHANGED