@softeria/ms-365-mcp-server 0.191.2 → 0.193.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.
@@ -2414,6 +2414,9 @@ async function executeGraphTool(tool, config, graphClient, params, authManager,
2414
2414
  if (bodyFormat !== "html" && tool.method.toUpperCase() === "GET") {
2415
2415
  preferValues.push(`outlook.body-content-type="${bodyFormat}"`);
2416
2416
  }
2417
+ if (config?.honorNonIndexedQueries && (queryParams["$filter"]?.trim() || queryParams["$orderby"]?.trim())) {
2418
+ preferValues.push("HonorNonIndexedQueriesWarningMayFailRandomly");
2419
+ }
2417
2420
  if (preferValues.length > 0) {
2418
2421
  headers["Prefer"] = preferValues.join(", ");
2419
2422
  }
@@ -69,7 +69,7 @@ const DELTA_TOKEN_PARAM_DESCRIPTION = "Delta state to resume from: the @odata.de
69
69
  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.";
70
70
  const MEMBER_NAME_PARAM_DESCRIPTION = "Case-insensitive text to match against each member's displayName and email. Applied after $select projection, so only fields you can see are matched. Without fetchAllPages only the fetched page is filtered, and @odata.count still reports the unfiltered total.";
71
71
  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.';
72
- const IF_MATCH_PARAM_DESCRIPTION = "Optional ETag for a conditional update. Use the ETag from the list item read (with includeHeaders=true); if it is stale, Graph returns 412 and does not apply the update.";
72
+ const IF_MATCH_PARAM_DESCRIPTION = "Optional ETag for a conditional write. Use the ETag from your last read of the same item (the eTag field, or the ETag response header when includeHeaders=true); if it is stale, Graph returns 412 and does not apply the change.";
73
73
  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.';
74
74
  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.";
75
75
  function getAcceptParamDescription(acceptType) {
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.191.2",
4
+ "version": "0.193.0",
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",
@@ -806,7 +806,8 @@
806
806
  "presets": ["files", "onedrive", "personal"],
807
807
  "scopes": [["Files.ReadWrite"], ["Sites.Selected"]],
808
808
  "appScopes": [["Files.ReadWrite.All"], ["Sites.ReadWrite.All"], ["Sites.Selected"]],
809
- "llmTip": "Body is a base64-encoded string of the file bytes; the server decodes it before PUT. Graph accepts up to 250MB here, but the whole string travels as a tool argument and a truncated one decodes to a truncated file with no error, so use create-upload-session rather than emitting a large base64 string. For new files use path format: /items/root:/path/to/file.txt:/content. Overwrites existing files without warning."
809
+ "supportsIfMatch": true,
810
+ "llmTip": "Body is a base64-encoded string of the file bytes; the server decodes it before PUT. Graph accepts up to 250MB here, but the whole string travels as a tool argument and a truncated one decodes to a truncated file with no error, so use create-upload-session rather than emitting a large base64 string. For new files use path format: /items/root:/path/to/file.txt:/content. Overwrites existing files without warning. To avoid overwriting someone else's newer changes, read the file's eTag with get-drive-item before you download or edit it, then pass that value as If-Match when you upload; a stale ETag returns 412 and the file is left unchanged."
810
811
  },
811
812
  {
812
813
  "pathPattern": "/drives/{drive-id}/items/{driveItem-id}/createUploadSession",
@@ -815,7 +816,8 @@
815
816
  "presets": ["files", "onedrive", "personal"],
816
817
  "scopes": [["Files.ReadWrite"], ["Sites.Selected"]],
817
818
  "appScopes": [["Sites.ReadWrite.All"], ["Sites.Selected"]],
818
- "llmTip": "For large file uploads (up to 250 GB; no minimum, unlike the Outlook attachment session). Returns a pre-authenticated uploadUrl; the caller PUTs the bytes there itself, without an Authorization header, in ranges under 60 MiB that are multiples of 320 KiB (except the last). This server does not perform the PUT. For new files use path: /items/{parentId}:/{fileName}:/createUploadSession. Body (optional): { item: { '@microsoft.graph.conflictBehavior': 'rename' } }."
819
+ "supportsIfMatch": true,
820
+ "llmTip": "For large file uploads (up to 250 GB; no minimum, unlike the Outlook attachment session). Returns a pre-authenticated uploadUrl; the caller PUTs the bytes there itself, without an Authorization header, in ranges under 60 MiB that are multiples of 320 KiB (except the last). This server does not perform the PUT. For new files use path: /items/{parentId}:/{fileName}:/createUploadSession. Body (optional): { item: { '@microsoft.graph.conflictBehavior': 'rename' } }. To avoid overwriting someone else's newer changes when replacing an existing file, pass the file's eTag (from get-drive-item) as If-Match when creating the session; a stale ETag returns 412 and no upload session is created."
819
821
  },
820
822
  {
821
823
  "pathPattern": "/drives/{drive-id}/items/{driveItem-id}",
@@ -833,7 +835,8 @@
833
835
  "presets": ["files", "onedrive", "personal"],
834
836
  "scopes": [["Files.ReadWrite"], ["Sites.Selected"]],
835
837
  "appScopes": [["Files.ReadWrite.All"], ["Sites.ReadWrite.All"], ["Sites.Selected"]],
836
- "llmTip": "Move and/or rename a file or folder. To move, provide parentReference with the target folder's id. To rename, provide a new name. Both can be done in a single request."
838
+ "supportsIfMatch": true,
839
+ "llmTip": "Move and/or rename a file or folder. To move, provide parentReference with the target folder's id. To rename, provide a new name. Both can be done in a single request. To avoid acting on an item someone else changed since you read it, pass its eTag (from get-drive-item) as If-Match; a stale ETag returns 412 and the item is left unchanged."
837
840
  },
838
841
  {
839
842
  "pathPattern": "/drives/{drive-id}/items/{driveItem-id}/children",
@@ -2396,7 +2399,9 @@
2396
2399
  "presets": ["work"],
2397
2400
  "workScopes": [["Sites.Read.All"], ["Sites.Selected"]],
2398
2401
  "appScopes": [["Sites.Read.All"], ["Sites.Selected"]],
2399
- "llmTip": "Add $expand=fields to include actual column values. Without it, only metadata is returned."
2402
+ "queryParams": ["select", "expand", "filter", "orderby", "top", "skiptoken"],
2403
+ "honorNonIndexedQueries": true,
2404
+ "llmTip": "Add $expand=fields to include actual column values. Without it, only metadata is returned. Filter on a column as fields/Status eq 'Approved'."
2400
2405
  },
2401
2406
  {
2402
2407
  "pathPattern": "/sites/{site-id}/lists/{list-id}/items/{listItem-id}",
@@ -2525,6 +2530,95 @@
2525
2530
  "appScopes": [["Sites.Manage.All"], ["Sites.FullControl.All"], ["Sites.Selected"]],
2526
2531
  "llmTip": "Deletes a column from a SharePoint list. This is irreversible — all data stored in this column across every list item is lost. Confirm with the user before calling. Cannot delete built-in columns (Title, Created, Modified, etc.)."
2527
2532
  },
2533
+ {
2534
+ "pathPattern": "/sites/{site-id}/lists/{list-id}/contentTypes",
2535
+ "method": "get",
2536
+ "toolName": "list-sharepoint-list-content-types",
2537
+ "presets": ["work"],
2538
+ "workScopes": [["Sites.Read.All"], ["Sites.Selected"]],
2539
+ "appScopes": [
2540
+ ["Sites.Read.All"],
2541
+ ["Sites.Manage.All"],
2542
+ ["Sites.FullControl.All"],
2543
+ ["Sites.Selected"]
2544
+ ],
2545
+ "queryParams": ["select", "expand", "filter", "orderby", "top", "skiptoken"]
2546
+ },
2547
+ {
2548
+ "pathPattern": "/sites/{site-id}/contentTypes",
2549
+ "method": "get",
2550
+ "toolName": "list-sharepoint-site-content-types",
2551
+ "presets": ["work"],
2552
+ "workScopes": [["Sites.Read.All"], ["Sites.Selected"]],
2553
+ "appScopes": [
2554
+ ["Sites.Read.All"],
2555
+ ["Sites.Manage.All"],
2556
+ ["Sites.FullControl.All"],
2557
+ ["Sites.Selected"]
2558
+ ],
2559
+ "queryParams": ["select", "expand", "filter", "orderby", "top", "skiptoken"]
2560
+ },
2561
+ {
2562
+ "pathPattern": "/sites/{site-id}/columns",
2563
+ "method": "get",
2564
+ "toolName": "list-sharepoint-site-columns",
2565
+ "presets": ["work"],
2566
+ "workScopes": [["Sites.Read.All"], ["Sites.Selected"]],
2567
+ "appScopes": [
2568
+ ["Sites.Read.All"],
2569
+ ["Sites.Manage.All"],
2570
+ ["Sites.FullControl.All"],
2571
+ ["Sites.Selected"]
2572
+ ],
2573
+ "queryParams": ["select", "expand"],
2574
+ "llmTip": "Returns every site column in one response, hundreds with the built-in ones: pass $select, e.g. name,displayName,columnGroup."
2575
+ },
2576
+ {
2577
+ "pathPattern": "/drives/{drive-id}/list",
2578
+ "method": "get",
2579
+ "toolName": "get-drive-list",
2580
+ "presets": ["work"],
2581
+ "workScopes": [["Sites.Read.All"], ["Sites.Selected"]],
2582
+ "appScopes": [["Sites.Read.All"], ["Sites.Selected"]],
2583
+ "queryParams": ["select", "expand"],
2584
+ "descriptionOverride": "Get the SharePoint list behind a document library drive. Its id and parentReference.siteId are the listId and siteId the SharePoint list tools take."
2585
+ },
2586
+ {
2587
+ "pathPattern": "/drives/{drive-id}/list/columns",
2588
+ "method": "get",
2589
+ "toolName": "list-drive-list-columns",
2590
+ "presets": ["work"],
2591
+ "workScopes": [["Sites.Read.All"], ["Sites.Selected"]],
2592
+ "appScopes": [
2593
+ ["Sites.Read.All"],
2594
+ ["Sites.Manage.All"],
2595
+ ["Sites.FullControl.All"],
2596
+ ["Sites.Selected"]
2597
+ ],
2598
+ "queryParams": ["select", "expand"],
2599
+ "descriptionOverride": "List the column definitions of the SharePoint document library behind a drive."
2600
+ },
2601
+ {
2602
+ "pathPattern": "/drives/{drive-id}/list/items",
2603
+ "method": "get",
2604
+ "toolName": "list-drive-list-items",
2605
+ "presets": ["work"],
2606
+ "workScopes": [["Sites.Read.All"], ["Sites.Selected"]],
2607
+ "appScopes": [["Sites.Read.All"], ["Sites.Selected"]],
2608
+ "queryParams": ["select", "expand", "filter", "orderby", "top", "skiptoken"],
2609
+ "honorNonIndexedQueries": true,
2610
+ "descriptionOverride": "List the files and folders of a document library as SharePoint list items. Add $expand=fields for the column values; filter on a column as fields/Status eq 'Approved'."
2611
+ },
2612
+ {
2613
+ "pathPattern": "/drives/{drive-id}/items/{driveItem-id}/listItem",
2614
+ "method": "get",
2615
+ "toolName": "get-drive-item-list-item",
2616
+ "presets": ["work"],
2617
+ "workScopes": [["Sites.Read.All"], ["Sites.Selected"]],
2618
+ "appScopes": [["Sites.Read.All"], ["Sites.Manage.All"], ["Sites.Selected"]],
2619
+ "queryParams": ["select", "expand"],
2620
+ "descriptionOverride": "Get the SharePoint list item behind a file or folder in a document library, with its column values in fields."
2621
+ },
2528
2622
  {
2529
2623
  "pathPattern": "/sites/{site-id}:/{path}",
2530
2624
  "method": "get",