@softeria/ms-365-mcp-server 0.100.0 → 0.101.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.
@@ -1897,5 +1897,33 @@
1897
1897
  "toolName": "list-supported-languages",
1898
1898
  "scopes": ["User.Read"],
1899
1899
  "llmTip": "Lists locales and languages the user's mailbox server supports for the Outlook UI and message rendering. Returns localeInfo objects with locale (e.g. 'en-US'), displayName ('English (United States)'), and nativeName ('English (United States)'). Use this to validate the locale value before calling update-mailbox-settings to change the user's preferred language."
1900
+ },
1901
+ {
1902
+ "pathPattern": "/me/calendar/calendarPermissions",
1903
+ "method": "get",
1904
+ "toolName": "list-my-calendar-permissions",
1905
+ "scopes": ["Calendars.Read"],
1906
+ "llmTip": "Lists share recipients and delegates on the user's primary calendar. Returns calendarPermission objects with id, role ('none' | 'freeBusyRead' | 'limitedRead' | 'read' | 'write' | 'delegateWithoutPrivateEventAccess' | 'delegateWithPrivateEventAccess' | 'custom'), emailAddress { name, address }, isInsideOrganization, isRemovable, allowedRoles. Returns an empty collection when called by a delegate or share recipient (only the calendar owner sees the full list). For a non-primary calendar, use /me/calendars/{calendar-id}/calendarPermissions — not currently exposed."
1907
+ },
1908
+ {
1909
+ "pathPattern": "/me/calendar/calendarPermissions",
1910
+ "method": "post",
1911
+ "toolName": "create-my-calendar-permission",
1912
+ "scopes": ["Calendars.ReadWrite"],
1913
+ "llmTip": "Shares the user's primary calendar with another user (or sets up a delegate). Body: { emailAddress: { name: 'Adele Vance', address: 'adele@contoso.com' }, role: 'read' | 'write' | 'delegateWithoutPrivateEventAccess' | 'delegateWithPrivateEventAccess', isInsideOrganization: true, isRemovable: true }. Use list-users to resolve the recipient SMTP. Returns the created calendarPermission with its id (used by update-my-calendar-permission and delete-my-calendar-permission)."
1914
+ },
1915
+ {
1916
+ "pathPattern": "/me/calendar/calendarPermissions/{calendarPermission-id}",
1917
+ "method": "patch",
1918
+ "toolName": "update-my-calendar-permission",
1919
+ "scopes": ["Calendars.ReadWrite"],
1920
+ "llmTip": "Changes the role (permission level) granted to an existing share recipient or delegate. Body: { role: 'read' | 'write' | 'delegateWithoutPrivateEventAccess' | 'delegateWithPrivateEventAccess' }. Only the role property is writable — to change the recipient's email or other properties, delete and recreate via delete-my-calendar-permission + create-my-calendar-permission. Get the permission id via list-my-calendar-permissions."
1921
+ },
1922
+ {
1923
+ "pathPattern": "/me/calendar/calendarPermissions/{calendarPermission-id}",
1924
+ "method": "delete",
1925
+ "toolName": "delete-my-calendar-permission",
1926
+ "scopes": ["Calendars.ReadWrite"],
1927
+ "llmTip": "Revokes a calendar share or delegate access. Get the permission id via list-my-calendar-permissions. Permissions where isRemovable=false (e.g. the implicit 'My Organization' default) cannot be deleted — Graph returns an error."
1900
1928
  }
1901
1929
  ]
@@ -1850,6 +1850,35 @@ const microsoft_graph_conversationThreadCollectionResponse = z.object({
1850
1850
  value: z.array(microsoft_graph_conversationThread)
1851
1851
  }).partial().passthrough();
1852
1852
  const reply_to_group_thread_Body = z.object({ Post: microsoft_graph_post }).partial().passthrough();
1853
+ const microsoft_graph_calendarRoleType = z.enum([
1854
+ "none",
1855
+ "freeBusyRead",
1856
+ "limitedRead",
1857
+ "read",
1858
+ "write",
1859
+ "delegateWithoutPrivateEventAccess",
1860
+ "delegateWithPrivateEventAccess",
1861
+ "custom"
1862
+ ]);
1863
+ const microsoft_graph_calendarPermission = z.object({
1864
+ id: z.string().describe("The unique identifier for an entity. Read-only.").optional(),
1865
+ allowedRoles: z.array(z.union([microsoft_graph_calendarRoleType, z.object({}).partial().passthrough()])).describe(
1866
+ "List of allowed sharing or delegating permission levels for the calendar. The possible values are: none, freeBusyRead, limitedRead, read, write, delegateWithoutPrivateEventAccess, delegateWithPrivateEventAccess, custom."
1867
+ ).optional(),
1868
+ emailAddress: microsoft_graph_emailAddress.optional(),
1869
+ isInsideOrganization: z.boolean().describe(
1870
+ "True if the user in context (recipient or delegate) is inside the same organization as the calendar owner."
1871
+ ).nullish(),
1872
+ isRemovable: z.boolean().describe(
1873
+ "True if the user can be removed from the list of recipients or delegates for the specified calendar, false otherwise. The 'My organization' user determines the permissions other people within your organization have to the given calendar. You can't remove 'My organization' as a share recipient to a calendar."
1874
+ ).nullish(),
1875
+ role: microsoft_graph_calendarRoleType.optional()
1876
+ }).passthrough();
1877
+ const microsoft_graph_calendarPermissionCollectionResponse = z.object({
1878
+ "@odata.count": z.number().int().nullable(),
1879
+ "@odata.nextLink": z.string().nullable(),
1880
+ value: z.array(microsoft_graph_calendarPermission)
1881
+ }).partial().passthrough();
1853
1882
  const get_schedule_Body = z.object({
1854
1883
  Schedules: z.array(z.string().nullable()),
1855
1884
  EndTime: z.union([microsoft_graph_dateTimeTimeZone, z.object({}).partial().passthrough()]),
@@ -1913,30 +1942,6 @@ const microsoft_graph_calendarColor = z.enum([
1913
1942
  "lightRed",
1914
1943
  "maxColor"
1915
1944
  ]);
1916
- const microsoft_graph_calendarRoleType = z.enum([
1917
- "none",
1918
- "freeBusyRead",
1919
- "limitedRead",
1920
- "read",
1921
- "write",
1922
- "delegateWithoutPrivateEventAccess",
1923
- "delegateWithPrivateEventAccess",
1924
- "custom"
1925
- ]);
1926
- const microsoft_graph_calendarPermission = z.object({
1927
- id: z.string().describe("The unique identifier for an entity. Read-only.").optional(),
1928
- allowedRoles: z.array(z.union([microsoft_graph_calendarRoleType, z.object({}).partial().passthrough()])).describe(
1929
- "List of allowed sharing or delegating permission levels for the calendar. The possible values are: none, freeBusyRead, limitedRead, read, write, delegateWithoutPrivateEventAccess, delegateWithPrivateEventAccess, custom."
1930
- ).optional(),
1931
- emailAddress: microsoft_graph_emailAddress.optional(),
1932
- isInsideOrganization: z.boolean().describe(
1933
- "True if the user in context (recipient or delegate) is inside the same organization as the calendar owner."
1934
- ).nullish(),
1935
- isRemovable: z.boolean().describe(
1936
- "True if the user can be removed from the list of recipients or delegates for the specified calendar, false otherwise. The 'My organization' user determines the permissions other people within your organization have to the given calendar. You can't remove 'My organization' as a share recipient to a calendar."
1937
- ).nullish(),
1938
- role: microsoft_graph_calendarRoleType.optional()
1939
- }).passthrough();
1940
1945
  const microsoft_graph_calendar = z.object({
1941
1946
  id: z.string().describe("The unique identifier for an entity. Read-only.").optional(),
1942
1947
  allowedOnlineMeetingProviders: z.array(z.union([microsoft_graph_onlineMeetingProviderType, z.object({}).partial().passthrough()])).describe(
@@ -4716,6 +4721,9 @@ const schemas = {
4716
4721
  ReferenceCreate,
4717
4722
  microsoft_graph_conversationThreadCollectionResponse,
4718
4723
  reply_to_group_thread_Body,
4724
+ microsoft_graph_calendarRoleType,
4725
+ microsoft_graph_calendarPermission,
4726
+ microsoft_graph_calendarPermissionCollectionResponse,
4719
4727
  get_schedule_Body,
4720
4728
  microsoft_graph_freeBusyError,
4721
4729
  microsoft_graph_scheduleItem,
@@ -4724,8 +4732,6 @@ const schemas = {
4724
4732
  microsoft_graph_scheduleInformation,
4725
4733
  microsoft_graph_onlineMeetingProviderType,
4726
4734
  microsoft_graph_calendarColor,
4727
- microsoft_graph_calendarRoleType,
4728
- microsoft_graph_calendarPermission,
4729
4735
  microsoft_graph_calendar,
4730
4736
  microsoft_graph_calendarCollectionResponse,
4731
4737
  microsoft_graph_chatCollectionResponse,
@@ -7155,6 +7161,103 @@ from the default calendar of a group.`,
7155
7161
  ],
7156
7162
  response: z.void()
7157
7163
  },
7164
+ {
7165
+ method: "get",
7166
+ path: "/me/calendar/calendarPermissions",
7167
+ alias: "list-my-calendar-permissions",
7168
+ description: `The permissions of the users with whom the calendar is shared.`,
7169
+ requestFormat: "json",
7170
+ parameters: [
7171
+ {
7172
+ name: "$top",
7173
+ type: "Query",
7174
+ schema: z.number().int().gte(0).describe("Show only the first n items").optional()
7175
+ },
7176
+ {
7177
+ name: "$skip",
7178
+ type: "Query",
7179
+ schema: z.number().int().gte(0).describe("Skip the first n items").optional()
7180
+ },
7181
+ {
7182
+ name: "$search",
7183
+ type: "Query",
7184
+ schema: z.string().describe("Search items by search phrases").optional()
7185
+ },
7186
+ {
7187
+ name: "$filter",
7188
+ type: "Query",
7189
+ schema: z.string().describe("Filter items by property values").optional()
7190
+ },
7191
+ {
7192
+ name: "$count",
7193
+ type: "Query",
7194
+ schema: z.boolean().describe("Include count of items").optional()
7195
+ },
7196
+ {
7197
+ name: "$orderby",
7198
+ type: "Query",
7199
+ schema: z.array(z.string()).describe("Order items by property values").optional()
7200
+ },
7201
+ {
7202
+ name: "$select",
7203
+ type: "Query",
7204
+ schema: z.array(z.string()).describe("Select properties to be returned").optional()
7205
+ },
7206
+ {
7207
+ name: "$expand",
7208
+ type: "Query",
7209
+ schema: z.array(z.string()).describe("Expand related entities").optional()
7210
+ }
7211
+ ],
7212
+ response: z.void()
7213
+ },
7214
+ {
7215
+ method: "post",
7216
+ path: "/me/calendar/calendarPermissions",
7217
+ alias: "create-my-calendar-permission",
7218
+ description: `Create a calendarPermission resource to specify the identity and role of the user with whom the specified calendar is being shared or delegated.`,
7219
+ requestFormat: "json",
7220
+ parameters: [
7221
+ {
7222
+ name: "body",
7223
+ description: `New navigation property`,
7224
+ type: "Body",
7225
+ schema: microsoft_graph_calendarPermission
7226
+ }
7227
+ ],
7228
+ response: z.void()
7229
+ },
7230
+ {
7231
+ method: "patch",
7232
+ path: "/me/calendar/calendarPermissions/:calendarPermissionId",
7233
+ alias: "update-my-calendar-permission",
7234
+ description: `Update the navigation property calendarPermissions in me`,
7235
+ requestFormat: "json",
7236
+ parameters: [
7237
+ {
7238
+ name: "body",
7239
+ description: `New navigation property values`,
7240
+ type: "Body",
7241
+ schema: microsoft_graph_calendarPermission
7242
+ }
7243
+ ],
7244
+ response: z.void()
7245
+ },
7246
+ {
7247
+ method: "delete",
7248
+ path: "/me/calendar/calendarPermissions/:calendarPermissionId",
7249
+ alias: "delete-my-calendar-permission",
7250
+ description: `Delete navigation property calendarPermissions for me`,
7251
+ requestFormat: "json",
7252
+ parameters: [
7253
+ {
7254
+ name: "If-Match",
7255
+ type: "Header",
7256
+ schema: z.string().describe("ETag").optional()
7257
+ }
7258
+ ],
7259
+ response: z.void()
7260
+ },
7158
7261
  {
7159
7262
  method: "post",
7160
7263
  path: "/me/calendar/getSchedule",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@softeria/ms-365-mcp-server",
3
- "version": "0.100.0",
3
+ "version": "0.101.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",
@@ -1897,5 +1897,33 @@
1897
1897
  "toolName": "list-supported-languages",
1898
1898
  "scopes": ["User.Read"],
1899
1899
  "llmTip": "Lists locales and languages the user's mailbox server supports for the Outlook UI and message rendering. Returns localeInfo objects with locale (e.g. 'en-US'), displayName ('English (United States)'), and nativeName ('English (United States)'). Use this to validate the locale value before calling update-mailbox-settings to change the user's preferred language."
1900
+ },
1901
+ {
1902
+ "pathPattern": "/me/calendar/calendarPermissions",
1903
+ "method": "get",
1904
+ "toolName": "list-my-calendar-permissions",
1905
+ "scopes": ["Calendars.Read"],
1906
+ "llmTip": "Lists share recipients and delegates on the user's primary calendar. Returns calendarPermission objects with id, role ('none' | 'freeBusyRead' | 'limitedRead' | 'read' | 'write' | 'delegateWithoutPrivateEventAccess' | 'delegateWithPrivateEventAccess' | 'custom'), emailAddress { name, address }, isInsideOrganization, isRemovable, allowedRoles. Returns an empty collection when called by a delegate or share recipient (only the calendar owner sees the full list). For a non-primary calendar, use /me/calendars/{calendar-id}/calendarPermissions — not currently exposed."
1907
+ },
1908
+ {
1909
+ "pathPattern": "/me/calendar/calendarPermissions",
1910
+ "method": "post",
1911
+ "toolName": "create-my-calendar-permission",
1912
+ "scopes": ["Calendars.ReadWrite"],
1913
+ "llmTip": "Shares the user's primary calendar with another user (or sets up a delegate). Body: { emailAddress: { name: 'Adele Vance', address: 'adele@contoso.com' }, role: 'read' | 'write' | 'delegateWithoutPrivateEventAccess' | 'delegateWithPrivateEventAccess', isInsideOrganization: true, isRemovable: true }. Use list-users to resolve the recipient SMTP. Returns the created calendarPermission with its id (used by update-my-calendar-permission and delete-my-calendar-permission)."
1914
+ },
1915
+ {
1916
+ "pathPattern": "/me/calendar/calendarPermissions/{calendarPermission-id}",
1917
+ "method": "patch",
1918
+ "toolName": "update-my-calendar-permission",
1919
+ "scopes": ["Calendars.ReadWrite"],
1920
+ "llmTip": "Changes the role (permission level) granted to an existing share recipient or delegate. Body: { role: 'read' | 'write' | 'delegateWithoutPrivateEventAccess' | 'delegateWithPrivateEventAccess' }. Only the role property is writable — to change the recipient's email or other properties, delete and recreate via delete-my-calendar-permission + create-my-calendar-permission. Get the permission id via list-my-calendar-permissions."
1921
+ },
1922
+ {
1923
+ "pathPattern": "/me/calendar/calendarPermissions/{calendarPermission-id}",
1924
+ "method": "delete",
1925
+ "toolName": "delete-my-calendar-permission",
1926
+ "scopes": ["Calendars.ReadWrite"],
1927
+ "llmTip": "Revokes a calendar share or delegate access. Get the permission id via list-my-calendar-permissions. Permissions where isRemovable=false (e.g. the implicit 'My Organization' default) cannot be deleted — Graph returns an error."
1900
1928
  }
1901
1929
  ]