@softeria/ms-365-mcp-server 0.161.1 → 0.161.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.
@@ -401,7 +401,7 @@ class GraphClient {
401
401
  const removeODataProps2 = (obj) => {
402
402
  if (typeof obj === "object" && obj !== null) {
403
403
  Object.keys(obj).forEach((key) => {
404
- if (key.startsWith("@odata.") && key !== "@odata.nextLink" && key !== "@odata.deltaLink") {
404
+ if (key.startsWith("@odata.") && key !== "@odata.nextLink" && key !== "@odata.deltaLink" && key !== "@odata.count") {
405
405
  delete obj[key];
406
406
  } else if (typeof obj[key] === "object") {
407
407
  removeODataProps2(obj[key]);
@@ -430,7 +430,7 @@ class GraphClient {
430
430
  const removeODataProps = (obj) => {
431
431
  if (typeof obj === "object" && obj !== null) {
432
432
  Object.keys(obj).forEach((key) => {
433
- if (key.startsWith("@odata.") && key !== "@odata.nextLink" && key !== "@odata.deltaLink") {
433
+ if (key.startsWith("@odata.") && key !== "@odata.nextLink" && key !== "@odata.deltaLink" && key !== "@odata.count") {
434
434
  delete obj[key];
435
435
  } else if (typeof obj[key] === "object") {
436
436
  removeODataProps(obj[key]);
@@ -1771,9 +1771,6 @@ async function executeGraphTool(tool, config, graphClient, params, authManager,
1771
1771
  );
1772
1772
  }
1773
1773
  combinedResponse.value = allItems;
1774
- if (combinedResponse["@odata.count"]) {
1775
- combinedResponse["@odata.count"] = allItems.length;
1776
- }
1777
1774
  if (unmergeablePage && nextLink) {
1778
1775
  combinedResponse["@odata.nextLink"] = nextLink;
1779
1776
  } else {
@@ -44,7 +44,7 @@ function isSkiptokenApplicable(tool, paramNames) {
44
44
  }
45
45
  return false;
46
46
  }
47
- const COUNT_PARAM_DESCRIPTION = "Set true to enable advanced query mode (ConsistencyLevel: eventual). Required for complex $filter on flag/flagStatus or contains().";
47
+ const COUNT_PARAM_DESCRIPTION = "Set true to enable advanced query mode (ConsistencyLevel: eventual). Required for complex $filter on flag/flagStatus or contains(). The response then includes @odata.count, the total for the filtered collection, which can exceed the items returned when fetchAllPages hits its page/item cap.";
48
48
  const CONFIRM_PARAM_DESCRIPTION = 'For destructive operations when the confirm gate is enabled (MS365_MCP_REQUIRE_CONFIRM=true; off by default). Set to true only after the user has explicitly approved this action. When the gate is on, calls without confirm: true return { error: "confirmation_required" } without touching user data.';
49
49
  const TIMEZONE_PARAM_DESCRIPTION = 'IANA timezone name (e.g., "America/New_York", "Europe/London", "Asia/Tokyo") for calendar event times. If not specified, times are returned in UTC.';
50
50
  const EXPAND_EXTENDED_PROPERTIES_PARAM_DESCRIPTION = "When true, expands singleValueExtendedProperties on each event. Use this to retrieve custom extended properties (e.g., sync metadata) stored on calendar events.";
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.161.1",
4
+ "version": "0.161.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",