@softeria/ms-365-mcp-server 0.190.0 → 0.190.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.
@@ -1961,6 +1961,7 @@
1961
1961
  "presets": ["teams", "teams-write", "work"],
1962
1962
  "workScopes": ["Chat.ReadBasic"],
1963
1963
  "maxTop": 50,
1964
+ "queryParams": ["top", "filter", "expand", "orderby", "skiptoken"],
1964
1965
  "llmTip": "Lists the signed-in user's chats. Only $filter, $top (max 50), $expand (members, lastMessagePreview) and $orderby are supported; $orderby accepts just lastMessagePreview/createdDateTime in descending order. Other options are rejected: $search returns 400 'Query option Search is not allowed', and ordering by lastUpdatedDateTime returns 400 BadRequest. Meeting chats have chatType=meeting and carry the meeting subject in topic."
1965
1966
  },
1966
1967
  {
@@ -2346,7 +2347,8 @@
2346
2347
  "toolName": "search-sharepoint-sites",
2347
2348
  "presets": ["search", "work"],
2348
2349
  "workScopes": ["Sites.Read.All"],
2349
- "appScopes": ["Sites.Read.All"]
2350
+ "appScopes": ["Sites.Read.All"],
2351
+ "plainSearch": true
2350
2352
  },
2351
2353
  {
2352
2354
  "pathPattern": "/sites/{site-id}",
@@ -846,8 +846,8 @@ const microsoft_graph_driveItem = z.object({
846
846
  webUrl: z.string().describe(
847
847
  "URL that either displays the resource in the browser (for Office file formats), or is a direct link to the file (for other formats). Read-only."
848
848
  ).nullish(),
849
- createdByUser: microsoft_graph_user.describe("[Note: Simplified from 138 properties to 25 most common ones]").optional(),
850
- lastModifiedByUser: microsoft_graph_user.describe("[Note: Simplified from 138 properties to 25 most common ones]").optional(),
849
+ createdByUser: microsoft_graph_user.describe("[Note: Simplified from 139 properties to 25 most common ones]").optional(),
850
+ lastModifiedByUser: microsoft_graph_user.describe("[Note: Simplified from 139 properties to 25 most common ones]").optional(),
851
851
  audio: microsoft_graph_audio.optional(),
852
852
  bundle: microsoft_graph_bundle.optional(),
853
853
  cTag: z.string().describe(
@@ -2753,8 +2753,8 @@ const microsoft_graph_listItem = z.object({
2753
2753
  webUrl: z.string().describe(
2754
2754
  "URL that either displays the resource in the browser (for Office file formats), or is a direct link to the file (for other formats). Read-only."
2755
2755
  ).nullish(),
2756
- createdByUser: microsoft_graph_user.describe("[Note: Simplified from 138 properties to 25 most common ones]").optional(),
2757
- lastModifiedByUser: microsoft_graph_user.describe("[Note: Simplified from 138 properties to 25 most common ones]").optional(),
2756
+ createdByUser: microsoft_graph_user.describe("[Note: Simplified from 139 properties to 25 most common ones]").optional(),
2757
+ lastModifiedByUser: microsoft_graph_user.describe("[Note: Simplified from 139 properties to 25 most common ones]").optional(),
2758
2758
  contentType: microsoft_graph_contentTypeInfo.optional(),
2759
2759
  deleted: microsoft_graph_deleted.optional(),
2760
2760
  sharepointIds: microsoft_graph_sharepointIds.optional(),
@@ -2884,8 +2884,8 @@ const microsoft_graph_list = z.lazy(
2884
2884
  webUrl: z.string().describe(
2885
2885
  "URL that either displays the resource in the browser (for Office file formats), or is a direct link to the file (for other formats). Read-only."
2886
2886
  ).nullish(),
2887
- createdByUser: microsoft_graph_user.describe("[Note: Simplified from 138 properties to 25 most common ones]").optional(),
2888
- lastModifiedByUser: microsoft_graph_user.describe("[Note: Simplified from 138 properties to 25 most common ones]").optional(),
2887
+ createdByUser: microsoft_graph_user.describe("[Note: Simplified from 139 properties to 25 most common ones]").optional(),
2888
+ lastModifiedByUser: microsoft_graph_user.describe("[Note: Simplified from 139 properties to 25 most common ones]").optional(),
2889
2889
  displayName: z.string().describe("The displayable title of the list.").nullish(),
2890
2890
  list: microsoft_graph_listInfo.optional(),
2891
2891
  sharepointIds: microsoft_graph_sharepointIds.optional(),
@@ -2917,8 +2917,8 @@ const microsoft_graph_drive = z.lazy(
2917
2917
  webUrl: z.string().describe(
2918
2918
  "URL that either displays the resource in the browser (for Office file formats), or is a direct link to the file (for other formats). Read-only."
2919
2919
  ).nullish(),
2920
- createdByUser: microsoft_graph_user.describe("[Note: Simplified from 138 properties to 25 most common ones]").optional(),
2921
- lastModifiedByUser: microsoft_graph_user.describe("[Note: Simplified from 138 properties to 25 most common ones]").optional(),
2920
+ createdByUser: microsoft_graph_user.describe("[Note: Simplified from 139 properties to 25 most common ones]").optional(),
2921
+ lastModifiedByUser: microsoft_graph_user.describe("[Note: Simplified from 139 properties to 25 most common ones]").optional(),
2922
2922
  driveType: z.string().describe(
2923
2923
  "Describes the type of drive represented by this resource. OneDrive personal drives return personal. OneDrive for Business returns business. SharePoint document libraries return documentLibrary. Read-only."
2924
2924
  ).nullish(),
@@ -4651,8 +4651,8 @@ const microsoft_graph_baseItem = z.object({
4651
4651
  webUrl: z.string().describe(
4652
4652
  "URL that either displays the resource in the browser (for Office file formats), or is a direct link to the file (for other formats). Read-only."
4653
4653
  ).nullish(),
4654
- createdByUser: microsoft_graph_user.describe("[Note: Simplified from 138 properties to 25 most common ones]").optional(),
4655
- lastModifiedByUser: microsoft_graph_user.describe("[Note: Simplified from 138 properties to 25 most common ones]").optional()
4654
+ createdByUser: microsoft_graph_user.describe("[Note: Simplified from 139 properties to 25 most common ones]").optional(),
4655
+ lastModifiedByUser: microsoft_graph_user.describe("[Note: Simplified from 139 properties to 25 most common ones]").optional()
4656
4656
  }).loose();
4657
4657
  const microsoft_graph_site = z.object({
4658
4658
  id: z.string().describe("The unique identifier for an entity. Read-only.").optional(),
@@ -4673,8 +4673,8 @@ const microsoft_graph_site = z.object({
4673
4673
  webUrl: z.string().describe(
4674
4674
  "URL that either displays the resource in the browser (for Office file formats), or is a direct link to the file (for other formats). Read-only."
4675
4675
  ).nullish(),
4676
- createdByUser: microsoft_graph_user.describe("[Note: Simplified from 138 properties to 25 most common ones]").optional(),
4677
- lastModifiedByUser: microsoft_graph_user.describe("[Note: Simplified from 138 properties to 25 most common ones]").optional(),
4676
+ createdByUser: microsoft_graph_user.describe("[Note: Simplified from 139 properties to 25 most common ones]").optional(),
4677
+ lastModifiedByUser: microsoft_graph_user.describe("[Note: Simplified from 139 properties to 25 most common ones]").optional(),
4678
4678
  isPersonalSite: z.boolean().describe("Identifies whether the site is personal or not. Read-only.").nullish(),
4679
4679
  root: microsoft_graph_root.optional(),
4680
4680
  sharepointIds: microsoft_graph_sharepointIds.optional(),
@@ -5997,8 +5997,8 @@ const endpoints = makeApi([
5997
5997
  webUrl: z.string().describe(
5998
5998
  "URL that either displays the resource in the browser (for Office file formats), or is a direct link to the file (for other formats). Read-only."
5999
5999
  ).nullish(),
6000
- createdByUser: microsoft_graph_user.describe("[Note: Simplified from 138 properties to 25 most common ones]").optional(),
6001
- lastModifiedByUser: microsoft_graph_user.describe("[Note: Simplified from 138 properties to 25 most common ones]").optional(),
6000
+ createdByUser: microsoft_graph_user.describe("[Note: Simplified from 139 properties to 25 most common ones]").optional(),
6001
+ lastModifiedByUser: microsoft_graph_user.describe("[Note: Simplified from 139 properties to 25 most common ones]").optional(),
6002
6002
  audio: microsoft_graph_audio.optional(),
6003
6003
  bundle: microsoft_graph_bundle.optional(),
6004
6004
  cTag: z.string().describe(
@@ -6112,8 +6112,8 @@ const endpoints = makeApi([
6112
6112
  webUrl: z.string().describe(
6113
6113
  "URL that either displays the resource in the browser (for Office file formats), or is a direct link to the file (for other formats). Read-only."
6114
6114
  ).nullish(),
6115
- createdByUser: microsoft_graph_user.describe("[Note: Simplified from 138 properties to 25 most common ones]").optional(),
6116
- lastModifiedByUser: microsoft_graph_user.describe("[Note: Simplified from 138 properties to 25 most common ones]").optional(),
6115
+ createdByUser: microsoft_graph_user.describe("[Note: Simplified from 139 properties to 25 most common ones]").optional(),
6116
+ lastModifiedByUser: microsoft_graph_user.describe("[Note: Simplified from 139 properties to 25 most common ones]").optional(),
6117
6117
  audio: microsoft_graph_audio.optional(),
6118
6118
  bundle: microsoft_graph_bundle.optional(),
6119
6119
  cTag: z.string().describe(
@@ -2366,6 +2366,11 @@ async function executeGraphTool(tool, config, graphClient, params, authManager,
2366
2366
  const deltaTokenError = normalizeDeltaTokenParam(params.token, queryParams, tool.alias);
2367
2367
  if (deltaTokenError) return deltaTokenError;
2368
2368
  }
2369
+ if (config?.plainSearch && queryParams["$search"] !== void 0) {
2370
+ const search = queryParams["$search"].trim();
2371
+ delete queryParams["$search"];
2372
+ queryParams["search"] = /^"\s*\*\s*"$/.test(search) ? "*" : search;
2373
+ }
2369
2374
  clampTopQueryParam(queryParams);
2370
2375
  const searchError = normalizeSearchQueryParam(queryParams, tool.path, tool.alias);
2371
2376
  if (searchError) return searchError;
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.190.0",
4
+ "version": "0.190.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",
@@ -1961,6 +1961,7 @@
1961
1961
  "presets": ["teams", "teams-write", "work"],
1962
1962
  "workScopes": ["Chat.ReadBasic"],
1963
1963
  "maxTop": 50,
1964
+ "queryParams": ["top", "filter", "expand", "orderby", "skiptoken"],
1964
1965
  "llmTip": "Lists the signed-in user's chats. Only $filter, $top (max 50), $expand (members, lastMessagePreview) and $orderby are supported; $orderby accepts just lastMessagePreview/createdDateTime in descending order. Other options are rejected: $search returns 400 'Query option Search is not allowed', and ordering by lastUpdatedDateTime returns 400 BadRequest. Meeting chats have chatType=meeting and carry the meeting subject in topic."
1965
1966
  },
1966
1967
  {
@@ -2346,7 +2347,8 @@
2346
2347
  "toolName": "search-sharepoint-sites",
2347
2348
  "presets": ["search", "work"],
2348
2349
  "workScopes": ["Sites.Read.All"],
2349
- "appScopes": ["Sites.Read.All"]
2350
+ "appScopes": ["Sites.Read.All"],
2351
+ "plainSearch": true
2350
2352
  },
2351
2353
  {
2352
2354
  "pathPattern": "/sites/{site-id}",