@softeria/ms-365-mcp-server 0.43.3 → 0.44.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/README.md CHANGED
@@ -520,6 +520,7 @@ Environment variables:
520
520
  - `MS365_MCP_ORG_MODE=true|1`: Enable organization/work mode (alternative to --org-mode flag)
521
521
  - `MS365_MCP_FORCE_WORK_SCOPES=true|1`: Backwards compatibility for MS365_MCP_ORG_MODE
522
522
  - `MS365_MCP_OUTPUT_FORMAT=toon`: Enable TOON output format (alternative to --toon flag)
523
+ - `MS365_MCP_BODY_FORMAT=html`: Return email bodies as HTML instead of plain text (default: text)
523
524
  - `MS365_MCP_CLOUD_TYPE=global|china`: Microsoft cloud environment (alternative to --cloud flag)
524
525
  - `LOG_LEVEL`: Set logging level (default: 'info')
525
526
  - `SILENT=true|1`: Disable console output
@@ -106,9 +106,17 @@ async function executeGraphTool(tool, config, graphClient, params, authManager)
106
106
  logger.info(`Set body param: ${JSON.stringify(body)}`);
107
107
  }
108
108
  }
109
+ const preferValues = [];
109
110
  if (config?.supportsTimezone && params.timezone) {
110
- headers["Prefer"] = `outlook.timezone="${params.timezone}"`;
111
- logger.info(`Setting timezone header: Prefer: outlook.timezone="${params.timezone}"`);
111
+ preferValues.push(`outlook.timezone="${params.timezone}"`);
112
+ logger.info(`Setting timezone preference: outlook.timezone="${params.timezone}"`);
113
+ }
114
+ const bodyFormat = process.env.MS365_MCP_BODY_FORMAT || "text";
115
+ if (bodyFormat !== "html") {
116
+ preferValues.push(`outlook.body-content-type="${bodyFormat}"`);
117
+ }
118
+ if (preferValues.length > 0) {
119
+ headers["Prefer"] = preferValues.join(", ");
112
120
  }
113
121
  if (config?.supportsExpandExtendedProperties && params.expandExtendedProperties === true) {
114
122
  const expandValue = "singleValueExtendedProperties";
@@ -1,10 +1,10 @@
1
- 2026-03-03 12:04:56 INFO: [GRAPH CLIENT] Final URL being sent to Microsoft: https://graph.microsoft.com/v1.0/me
2
- 2026-03-03 12:04:56 INFO: [GRAPH CLIENT] Final URL being sent to Microsoft: https://graph.microsoft.com/v1.0/me
3
- 2026-03-03 12:04:56 INFO: [GRAPH CLIENT] Final URL being sent to Microsoft: https://graph.microsoft.com/v1.0/me
4
- 2026-03-03 12:04:56 INFO: [GRAPH CLIENT] Final URL being sent to Microsoft: https://graph.microsoft.com/v1.0/me/messages
5
- 2026-03-03 12:04:56 INFO: [GRAPH CLIENT] Final URL being sent to Microsoft: https://graph.microsoft.com/v1.0/me/calendar
6
- 2026-03-03 12:04:57 INFO: Using environment variables for secrets
7
- 2026-03-03 12:04:57 INFO: Using environment variables for secrets
8
- 2026-03-03 12:04:57 INFO: Using environment variables for secrets
9
- 2026-03-03 12:04:57 INFO: Using environment variables for secrets
10
- 2026-03-03 12:04:57 INFO: Using environment variables for secrets
1
+ 2026-03-03 14:05:54 INFO: [GRAPH CLIENT] Final URL being sent to Microsoft: https://graph.microsoft.com/v1.0/me
2
+ 2026-03-03 14:05:54 INFO: [GRAPH CLIENT] Final URL being sent to Microsoft: https://graph.microsoft.com/v1.0/me
3
+ 2026-03-03 14:05:54 INFO: [GRAPH CLIENT] Final URL being sent to Microsoft: https://graph.microsoft.com/v1.0/me
4
+ 2026-03-03 14:05:54 INFO: [GRAPH CLIENT] Final URL being sent to Microsoft: https://graph.microsoft.com/v1.0/me/messages
5
+ 2026-03-03 14:05:54 INFO: [GRAPH CLIENT] Final URL being sent to Microsoft: https://graph.microsoft.com/v1.0/me/calendar
6
+ 2026-03-03 14:05:55 INFO: Using environment variables for secrets
7
+ 2026-03-03 14:05:55 INFO: Using environment variables for secrets
8
+ 2026-03-03 14:05:55 INFO: Using environment variables for secrets
9
+ 2026-03-03 14:05:55 INFO: Using environment variables for secrets
10
+ 2026-03-03 14:05:55 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.43.3",
3
+ "version": "0.44.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",