@softeria/ms-365-mcp-server 0.192.0 → 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
  }
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.192.0",
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",
@@ -2399,7 +2399,9 @@
2399
2399
  "presets": ["work"],
2400
2400
  "workScopes": [["Sites.Read.All"], ["Sites.Selected"]],
2401
2401
  "appScopes": [["Sites.Read.All"], ["Sites.Selected"]],
2402
- "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'."
2403
2405
  },
2404
2406
  {
2405
2407
  "pathPattern": "/sites/{site-id}/lists/{list-id}/items/{listItem-id}",
@@ -2528,6 +2530,95 @@
2528
2530
  "appScopes": [["Sites.Manage.All"], ["Sites.FullControl.All"], ["Sites.Selected"]],
2529
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.)."
2530
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
+ },
2531
2622
  {
2532
2623
  "pathPattern": "/sites/{site-id}:/{path}",
2533
2624
  "method": "get",