@softeria/ms-365-mcp-server 0.192.0 → 0.193.1

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.1",
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",
@@ -69,6 +69,7 @@
69
69
  "@vitest/coverage-v8": "^4.1.8",
70
70
  "eslint": "^9.31.0",
71
71
  "globals": "^16.3.0",
72
+ "openapi-zod-client": "1.18.3",
72
73
  "prettier": "^3.5.3",
73
74
  "semantic-release": "^25.0.2",
74
75
  "tsup": "^8.5.0",
@@ -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",
@@ -43,14 +43,16 @@ improvements should now be much easier to implement and maintain.
43
43
 
44
44
  To regenerate the client code (e.g., after API changes or to update the supported endpoints):
45
45
 
46
+ ```sh
47
+ npm ci
48
+ npm run generate
46
49
  ```
47
- node bin/generate-graph-client.mjs
48
- ```
49
-
50
- This command does the following:
51
50
 
52
- 1. Fetches/processes the OpenAPI spec
53
- 2. Generates the TypeScript client with Zod validation
54
- 3. Writes the v1.0 and beta clients to `client.ts` and `client-beta.ts`.
51
+ Generation uses v1.0 and beta OpenAPI specs from the same pinned Microsoft Graph metadata commit.
52
+ The raw specs are cached under `openapi/<metadata-commit>/` and verified against their pinned
53
+ SHA-256 hashes; old unversioned files are ignored. To re-download the same pinned inputs, run
54
+ `node bin/generate-graph-client.mjs --force`.
55
55
 
56
- No complex build scripts needed - the generation is handled by openapi-zod-client.
56
+ The lockfile supplies `openapi-zod-client` and Prettier. Generation writes `client.ts` and
57
+ `client-beta.ts` and refreshes the tracked `PRESETS.md`. To update the Graph specs, change the
58
+ revision and both hashes in `bin/modules/download-openapi.mjs` together and review the outputs.