@softeria/ms-365-mcp-server 0.91.0 → 0.92.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.
@@ -521,6 +521,13 @@
521
521
  "scopes": ["Files.Read"],
522
522
  "llmTip": "Generate a short-lived embeddable preview URL for a file (Office docs, PDFs, images). Body: { page?: number | string, zoom?: number, viewer?: 'onedrive' | 'office' }. Returns getUrl (interactive) and postUrl (form-post). Useful for surfacing inline previews in summary emails or chat messages without needing the recipient to open the file."
523
523
  },
524
+ {
525
+ "pathPattern": "/drives/{drive-id}/items/{driveItem-id}/thumbnails",
526
+ "method": "get",
527
+ "toolName": "list-drive-item-thumbnails",
528
+ "scopes": ["Files.Read"],
529
+ "llmTip": "Lists thumbnail sets for a file. Each set contains small (96px), medium (176px), large (800px) thumbnails with url and dimensions. Returns empty for unsupported types (text docs). Use $select=small,medium,large or $expand=small($select=url) to fetch specific sizes. The returned URLs are short-lived — fetch the bytes immediately."
530
+ },
524
531
  {
525
532
  "pathPattern": "/drives/{drive-id}/items/{driveItem-id}/permissions",
526
533
  "method": "get",
@@ -916,6 +916,27 @@ const microsoft_graph_permissionCollectionResponse = z.object({
916
916
  "@odata.nextLink": z.string().nullable(),
917
917
  value: z.array(microsoft_graph_permission)
918
918
  }).partial().passthrough();
919
+ const microsoft_graph_thumbnail = z.object({
920
+ content: z.string().describe("The content stream for the thumbnail.").nullish(),
921
+ height: z.number().gte(-2147483648).lte(2147483647).describe("The height of the thumbnail, in pixels.").nullish(),
922
+ sourceItemId: z.string().describe(
923
+ "The unique identifier of the item that provided the thumbnail. This is only available when a folder thumbnail is requested."
924
+ ).nullish(),
925
+ url: z.string().describe("The URL used to fetch the thumbnail content.").nullish(),
926
+ width: z.number().gte(-2147483648).lte(2147483647).describe("The width of the thumbnail, in pixels.").nullish()
927
+ }).passthrough();
928
+ const microsoft_graph_thumbnailSet = z.object({
929
+ id: z.string().describe("The unique identifier for an entity. Read-only.").optional(),
930
+ large: microsoft_graph_thumbnail.optional(),
931
+ medium: microsoft_graph_thumbnail.optional(),
932
+ small: microsoft_graph_thumbnail.optional(),
933
+ source: microsoft_graph_thumbnail.optional()
934
+ }).passthrough();
935
+ const microsoft_graph_thumbnailSetCollectionResponse = z.object({
936
+ "@odata.count": z.number().int().nullable(),
937
+ "@odata.nextLink": z.string().nullable(),
938
+ value: z.array(microsoft_graph_thumbnailSet)
939
+ }).partial().passthrough();
919
940
  const microsoft_graph_publicationFacet = z.object({
920
941
  checkedOutBy: microsoft_graph_identitySet.optional(),
921
942
  level: z.string().describe(
@@ -4565,6 +4586,9 @@ const schemas = {
4565
4586
  create_drive_item_preview_Body,
4566
4587
  microsoft_graph_itemPreviewInfo,
4567
4588
  microsoft_graph_permissionCollectionResponse,
4589
+ microsoft_graph_thumbnail,
4590
+ microsoft_graph_thumbnailSet,
4591
+ microsoft_graph_thumbnailSetCollectionResponse,
4568
4592
  microsoft_graph_publicationFacet,
4569
4593
  microsoft_graph_driveItemVersion,
4570
4594
  microsoft_graph_driveItemVersionCollectionResponse,
@@ -5769,6 +5793,56 @@ Items with this property set should be removed from your local state.`,
5769
5793
  ],
5770
5794
  response: z.void()
5771
5795
  },
5796
+ {
5797
+ method: "get",
5798
+ path: "/drives/:driveId/items/:driveItemId/thumbnails",
5799
+ alias: "list-drive-item-thumbnails",
5800
+ description: `Collection of thumbnailSet objects associated with the item. For more information, see getting thumbnails. Read-only. Nullable.`,
5801
+ requestFormat: "json",
5802
+ parameters: [
5803
+ {
5804
+ name: "$top",
5805
+ type: "Query",
5806
+ schema: z.number().int().gte(0).describe("Show only the first n items").optional()
5807
+ },
5808
+ {
5809
+ name: "$skip",
5810
+ type: "Query",
5811
+ schema: z.number().int().gte(0).describe("Skip the first n items").optional()
5812
+ },
5813
+ {
5814
+ name: "$search",
5815
+ type: "Query",
5816
+ schema: z.string().describe("Search items by search phrases").optional()
5817
+ },
5818
+ {
5819
+ name: "$filter",
5820
+ type: "Query",
5821
+ schema: z.string().describe("Filter items by property values").optional()
5822
+ },
5823
+ {
5824
+ name: "$count",
5825
+ type: "Query",
5826
+ schema: z.boolean().describe("Include count of items").optional()
5827
+ },
5828
+ {
5829
+ name: "$orderby",
5830
+ type: "Query",
5831
+ schema: z.array(z.string()).describe("Order items by property values").optional()
5832
+ },
5833
+ {
5834
+ name: "$select",
5835
+ type: "Query",
5836
+ schema: z.array(z.string()).describe("Select properties to be returned").optional()
5837
+ },
5838
+ {
5839
+ name: "$expand",
5840
+ type: "Query",
5841
+ schema: z.array(z.string()).describe("Expand related entities").optional()
5842
+ }
5843
+ ],
5844
+ response: z.void()
5845
+ },
5772
5846
  {
5773
5847
  method: "get",
5774
5848
  path: "/drives/:driveId/items/:driveItemId/versions",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@softeria/ms-365-mcp-server",
3
- "version": "0.91.0",
3
+ "version": "0.92.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",
@@ -521,6 +521,13 @@
521
521
  "scopes": ["Files.Read"],
522
522
  "llmTip": "Generate a short-lived embeddable preview URL for a file (Office docs, PDFs, images). Body: { page?: number | string, zoom?: number, viewer?: 'onedrive' | 'office' }. Returns getUrl (interactive) and postUrl (form-post). Useful for surfacing inline previews in summary emails or chat messages without needing the recipient to open the file."
523
523
  },
524
+ {
525
+ "pathPattern": "/drives/{drive-id}/items/{driveItem-id}/thumbnails",
526
+ "method": "get",
527
+ "toolName": "list-drive-item-thumbnails",
528
+ "scopes": ["Files.Read"],
529
+ "llmTip": "Lists thumbnail sets for a file. Each set contains small (96px), medium (176px), large (800px) thumbnails with url and dimensions. Returns empty for unsupported types (text docs). Use $select=small,medium,large or $expand=small($select=url) to fetch specific sizes. The returned URLs are short-lived — fetch the bytes immediately."
530
+ },
524
531
  {
525
532
  "pathPattern": "/drives/{drive-id}/items/{driveItem-id}/permissions",
526
533
  "method": "get",