@softeria/ms-365-mcp-server 0.12.0 → 0.12.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.
- package/dist/endpoints.json +12 -0
- package/dist/generated/client.js +192 -0
- package/dist/graph-client.js +9 -1
- package/package.json +1 -1
- package/src/endpoints.json +12 -0
package/dist/endpoints.json
CHANGED
|
@@ -262,6 +262,18 @@
|
|
|
262
262
|
"toolName": "create-planner-task",
|
|
263
263
|
"scopes": ["Tasks.ReadWrite"]
|
|
264
264
|
},
|
|
265
|
+
{
|
|
266
|
+
"pathPattern": "/planner/tasks/{plannerTask-id}",
|
|
267
|
+
"method": "patch",
|
|
268
|
+
"toolName": "update-planner-task",
|
|
269
|
+
"scopes": ["Tasks.ReadWrite"]
|
|
270
|
+
},
|
|
271
|
+
{
|
|
272
|
+
"pathPattern": "/planner/tasks/{plannerTask-id}/details",
|
|
273
|
+
"method": "patch",
|
|
274
|
+
"toolName": "update-planner-task-details",
|
|
275
|
+
"scopes": ["Tasks.ReadWrite"]
|
|
276
|
+
},
|
|
265
277
|
{
|
|
266
278
|
"pathPattern": "/me/contacts",
|
|
267
279
|
"method": "get",
|
package/dist/generated/client.js
CHANGED
|
@@ -6181,6 +6181,198 @@ open extensions or extended properties, and how to specify extended properties.`
|
|
|
6181
6181
|
}
|
|
6182
6182
|
]
|
|
6183
6183
|
},
|
|
6184
|
+
{
|
|
6185
|
+
method: "patch",
|
|
6186
|
+
path: "/planner/tasks/:plannerTaskId",
|
|
6187
|
+
alias: "update-planner-task",
|
|
6188
|
+
description: `Update the properties of plannerTask object.`,
|
|
6189
|
+
requestFormat: "json",
|
|
6190
|
+
parameters: [
|
|
6191
|
+
{
|
|
6192
|
+
name: "body",
|
|
6193
|
+
description: `New navigation property values`,
|
|
6194
|
+
type: "Body",
|
|
6195
|
+
schema: z.object({
|
|
6196
|
+
id: z.string().describe("The unique identifier for an entity. Read-only.").optional(),
|
|
6197
|
+
createdDateTime: z.string().regex(
|
|
6198
|
+
/^[0-9]{4,}-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01])T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]{1,12})?(Z|[+-][0-9][0-9]:[0-9][0-9])$/
|
|
6199
|
+
).datetime({ offset: true }).describe(
|
|
6200
|
+
"Read-only. Date and time at which the task is created. The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z"
|
|
6201
|
+
).nullish(),
|
|
6202
|
+
title: z.string().describe("Title of the task.").optional(),
|
|
6203
|
+
details: microsoft_graph_plannerTaskDetails.optional(),
|
|
6204
|
+
activeChecklistItemCount: z.number().gte(-2147483648).lte(2147483647).describe(
|
|
6205
|
+
"Number of checklist items with value set to false, representing incomplete items."
|
|
6206
|
+
).nullish(),
|
|
6207
|
+
appliedCategories: microsoft_graph_plannerAppliedCategories.optional(),
|
|
6208
|
+
assigneePriority: z.string().describe(
|
|
6209
|
+
"Hint used to order items of this type in a list view. The format is defined as outlined here."
|
|
6210
|
+
).nullish(),
|
|
6211
|
+
assignments: microsoft_graph_plannerAssignments.optional(),
|
|
6212
|
+
bucketId: z.string().describe(
|
|
6213
|
+
"Bucket ID to which the task belongs. The bucket needs to be in the plan that the task is in. It's 28 characters long and case-sensitive. Format validation is done on the service."
|
|
6214
|
+
).nullish(),
|
|
6215
|
+
checklistItemCount: z.number().gte(-2147483648).lte(2147483647).describe("Number of checklist items that are present on the task.").nullish(),
|
|
6216
|
+
completedBy: microsoft_graph_identitySet.optional(),
|
|
6217
|
+
completedDateTime: z.string().regex(
|
|
6218
|
+
/^[0-9]{4,}-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01])T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]{1,12})?(Z|[+-][0-9][0-9]:[0-9][0-9])$/
|
|
6219
|
+
).datetime({ offset: true }).describe(
|
|
6220
|
+
"Read-only. Date and time at which the 'percentComplete' of the task is set to '100'. The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z"
|
|
6221
|
+
).nullish(),
|
|
6222
|
+
conversationThreadId: z.string().describe(
|
|
6223
|
+
"Thread ID of the conversation on the task. This is the ID of the conversation thread object created in the group."
|
|
6224
|
+
).nullish(),
|
|
6225
|
+
createdBy: microsoft_graph_identitySet.optional(),
|
|
6226
|
+
dueDateTime: z.string().regex(
|
|
6227
|
+
/^[0-9]{4,}-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01])T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]{1,12})?(Z|[+-][0-9][0-9]:[0-9][0-9])$/
|
|
6228
|
+
).datetime({ offset: true }).describe(
|
|
6229
|
+
"Date and time at which the task is due. The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z"
|
|
6230
|
+
).nullish(),
|
|
6231
|
+
hasDescription: z.boolean().describe(
|
|
6232
|
+
"Read-only. Value is true if the details object of the task has a nonempty description and false otherwise."
|
|
6233
|
+
).nullish(),
|
|
6234
|
+
orderHint: z.string().describe(
|
|
6235
|
+
"Hint used to order items of this type in a list view. The format is defined as outlined here."
|
|
6236
|
+
).nullish(),
|
|
6237
|
+
percentComplete: z.number().gte(-2147483648).lte(2147483647).describe(
|
|
6238
|
+
"Percentage of task completion. When set to 100, the task is considered completed."
|
|
6239
|
+
).nullish(),
|
|
6240
|
+
planId: z.string().describe("Plan ID to which the task belongs.").nullish(),
|
|
6241
|
+
previewType: microsoft_graph_plannerPreviewType.optional(),
|
|
6242
|
+
priority: z.number().gte(-2147483648).lte(2147483647).describe(
|
|
6243
|
+
"Priority of the task. The valid range of values is between 0 and 10, with the increasing value being lower priority (0 has the highest priority and 10 has the lowest priority). Currently, Planner interprets values 0 and 1 as 'urgent', 2, 3 and 4 as 'important', 5, 6, and 7 as 'medium', and 8, 9, and 10 as 'low'. Additionally, Planner sets the value 1 for 'urgent', 3 for 'important', 5 for 'medium', and 9 for 'low'."
|
|
6244
|
+
).nullish(),
|
|
6245
|
+
referenceCount: z.number().gte(-2147483648).lte(2147483647).describe("Number of external references that exist on the task.").nullish(),
|
|
6246
|
+
startDateTime: z.string().regex(
|
|
6247
|
+
/^[0-9]{4,}-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01])T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]{1,12})?(Z|[+-][0-9][0-9]:[0-9][0-9])$/
|
|
6248
|
+
).datetime({ offset: true }).describe(
|
|
6249
|
+
"Date and time at which the task starts. The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z"
|
|
6250
|
+
).nullish(),
|
|
6251
|
+
assignedToTaskBoardFormat: microsoft_graph_plannerAssignedToTaskBoardTaskFormat.optional(),
|
|
6252
|
+
bucketTaskBoardFormat: microsoft_graph_plannerBucketTaskBoardTaskFormat.optional()
|
|
6253
|
+
}).strict().passthrough()
|
|
6254
|
+
},
|
|
6255
|
+
{
|
|
6256
|
+
name: "If-Match",
|
|
6257
|
+
type: "Header",
|
|
6258
|
+
schema: z.string().describe("ETag value.")
|
|
6259
|
+
}
|
|
6260
|
+
],
|
|
6261
|
+
response: z.void(),
|
|
6262
|
+
errors: [
|
|
6263
|
+
{
|
|
6264
|
+
status: NaN,
|
|
6265
|
+
description: `Success`,
|
|
6266
|
+
schema: z.object({
|
|
6267
|
+
id: z.string().describe("The unique identifier for an entity. Read-only.").optional(),
|
|
6268
|
+
createdDateTime: z.string().regex(
|
|
6269
|
+
/^[0-9]{4,}-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01])T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]{1,12})?(Z|[+-][0-9][0-9]:[0-9][0-9])$/
|
|
6270
|
+
).datetime({ offset: true }).describe(
|
|
6271
|
+
"Read-only. Date and time at which the task is created. The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z"
|
|
6272
|
+
).nullish(),
|
|
6273
|
+
title: z.string().describe("Title of the task.").optional(),
|
|
6274
|
+
details: microsoft_graph_plannerTaskDetails.optional(),
|
|
6275
|
+
activeChecklistItemCount: z.number().gte(-2147483648).lte(2147483647).describe(
|
|
6276
|
+
"Number of checklist items with value set to false, representing incomplete items."
|
|
6277
|
+
).nullish(),
|
|
6278
|
+
appliedCategories: microsoft_graph_plannerAppliedCategories.optional(),
|
|
6279
|
+
assigneePriority: z.string().describe(
|
|
6280
|
+
"Hint used to order items of this type in a list view. The format is defined as outlined here."
|
|
6281
|
+
).nullish(),
|
|
6282
|
+
assignments: microsoft_graph_plannerAssignments.optional(),
|
|
6283
|
+
bucketId: z.string().describe(
|
|
6284
|
+
"Bucket ID to which the task belongs. The bucket needs to be in the plan that the task is in. It's 28 characters long and case-sensitive. Format validation is done on the service."
|
|
6285
|
+
).nullish(),
|
|
6286
|
+
checklistItemCount: z.number().gte(-2147483648).lte(2147483647).describe("Number of checklist items that are present on the task.").nullish(),
|
|
6287
|
+
completedBy: microsoft_graph_identitySet.optional(),
|
|
6288
|
+
completedDateTime: z.string().regex(
|
|
6289
|
+
/^[0-9]{4,}-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01])T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]{1,12})?(Z|[+-][0-9][0-9]:[0-9][0-9])$/
|
|
6290
|
+
).datetime({ offset: true }).describe(
|
|
6291
|
+
"Read-only. Date and time at which the 'percentComplete' of the task is set to '100'. The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z"
|
|
6292
|
+
).nullish(),
|
|
6293
|
+
conversationThreadId: z.string().describe(
|
|
6294
|
+
"Thread ID of the conversation on the task. This is the ID of the conversation thread object created in the group."
|
|
6295
|
+
).nullish(),
|
|
6296
|
+
createdBy: microsoft_graph_identitySet.optional(),
|
|
6297
|
+
dueDateTime: z.string().regex(
|
|
6298
|
+
/^[0-9]{4,}-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01])T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]{1,12})?(Z|[+-][0-9][0-9]:[0-9][0-9])$/
|
|
6299
|
+
).datetime({ offset: true }).describe(
|
|
6300
|
+
"Date and time at which the task is due. The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z"
|
|
6301
|
+
).nullish(),
|
|
6302
|
+
hasDescription: z.boolean().describe(
|
|
6303
|
+
"Read-only. Value is true if the details object of the task has a nonempty description and false otherwise."
|
|
6304
|
+
).nullish(),
|
|
6305
|
+
orderHint: z.string().describe(
|
|
6306
|
+
"Hint used to order items of this type in a list view. The format is defined as outlined here."
|
|
6307
|
+
).nullish(),
|
|
6308
|
+
percentComplete: z.number().gte(-2147483648).lte(2147483647).describe(
|
|
6309
|
+
"Percentage of task completion. When set to 100, the task is considered completed."
|
|
6310
|
+
).nullish(),
|
|
6311
|
+
planId: z.string().describe("Plan ID to which the task belongs.").nullish(),
|
|
6312
|
+
previewType: microsoft_graph_plannerPreviewType.optional(),
|
|
6313
|
+
priority: z.number().gte(-2147483648).lte(2147483647).describe(
|
|
6314
|
+
"Priority of the task. The valid range of values is between 0 and 10, with the increasing value being lower priority (0 has the highest priority and 10 has the lowest priority). Currently, Planner interprets values 0 and 1 as 'urgent', 2, 3 and 4 as 'important', 5, 6, and 7 as 'medium', and 8, 9, and 10 as 'low'. Additionally, Planner sets the value 1 for 'urgent', 3 for 'important', 5 for 'medium', and 9 for 'low'."
|
|
6315
|
+
).nullish(),
|
|
6316
|
+
referenceCount: z.number().gte(-2147483648).lte(2147483647).describe("Number of external references that exist on the task.").nullish(),
|
|
6317
|
+
startDateTime: z.string().regex(
|
|
6318
|
+
/^[0-9]{4,}-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01])T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]{1,12})?(Z|[+-][0-9][0-9]:[0-9][0-9])$/
|
|
6319
|
+
).datetime({ offset: true }).describe(
|
|
6320
|
+
"Date and time at which the task starts. The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z"
|
|
6321
|
+
).nullish(),
|
|
6322
|
+
assignedToTaskBoardFormat: microsoft_graph_plannerAssignedToTaskBoardTaskFormat.optional(),
|
|
6323
|
+
bucketTaskBoardFormat: microsoft_graph_plannerBucketTaskBoardTaskFormat.optional()
|
|
6324
|
+
}).strict().passthrough()
|
|
6325
|
+
},
|
|
6326
|
+
{
|
|
6327
|
+
status: NaN,
|
|
6328
|
+
description: `error`,
|
|
6329
|
+
schema: microsoft_graph_ODataErrors_ODataError
|
|
6330
|
+
},
|
|
6331
|
+
{
|
|
6332
|
+
status: NaN,
|
|
6333
|
+
description: `error`,
|
|
6334
|
+
schema: microsoft_graph_ODataErrors_ODataError
|
|
6335
|
+
}
|
|
6336
|
+
]
|
|
6337
|
+
},
|
|
6338
|
+
{
|
|
6339
|
+
method: "patch",
|
|
6340
|
+
path: "/planner/tasks/:plannerTaskId/details",
|
|
6341
|
+
alias: "update-planner-task-details",
|
|
6342
|
+
description: `Update the properties of plannerTaskDetails object.`,
|
|
6343
|
+
requestFormat: "json",
|
|
6344
|
+
parameters: [
|
|
6345
|
+
{
|
|
6346
|
+
name: "body",
|
|
6347
|
+
description: `New navigation property values`,
|
|
6348
|
+
type: "Body",
|
|
6349
|
+
schema: microsoft_graph_plannerTaskDetails
|
|
6350
|
+
},
|
|
6351
|
+
{
|
|
6352
|
+
name: "If-Match",
|
|
6353
|
+
type: "Header",
|
|
6354
|
+
schema: z.string().describe("ETag value.")
|
|
6355
|
+
}
|
|
6356
|
+
],
|
|
6357
|
+
response: z.void(),
|
|
6358
|
+
errors: [
|
|
6359
|
+
{
|
|
6360
|
+
status: NaN,
|
|
6361
|
+
description: `Success`,
|
|
6362
|
+
schema: microsoft_graph_plannerTaskDetails
|
|
6363
|
+
},
|
|
6364
|
+
{
|
|
6365
|
+
status: NaN,
|
|
6366
|
+
description: `error`,
|
|
6367
|
+
schema: microsoft_graph_ODataErrors_ODataError
|
|
6368
|
+
},
|
|
6369
|
+
{
|
|
6370
|
+
status: NaN,
|
|
6371
|
+
description: `error`,
|
|
6372
|
+
schema: microsoft_graph_ODataErrors_ODataError
|
|
6373
|
+
}
|
|
6374
|
+
]
|
|
6375
|
+
},
|
|
6184
6376
|
{
|
|
6185
6377
|
method: "get",
|
|
6186
6378
|
path: "/sites",
|
package/dist/graph-client.js
CHANGED
|
@@ -110,7 +110,15 @@ class GraphClient {
|
|
|
110
110
|
if (!response.ok) {
|
|
111
111
|
throw new Error(`Microsoft Graph API error: ${response.status} ${response.statusText}`);
|
|
112
112
|
}
|
|
113
|
-
|
|
113
|
+
const text = await response.text();
|
|
114
|
+
if (text === "") {
|
|
115
|
+
return { message: "OK!" };
|
|
116
|
+
}
|
|
117
|
+
try {
|
|
118
|
+
return JSON.parse(text);
|
|
119
|
+
} catch (jsonError) {
|
|
120
|
+
return { message: "OK!", rawResponse: text };
|
|
121
|
+
}
|
|
114
122
|
} catch (error) {
|
|
115
123
|
logger.error("Microsoft Graph API request failed:", error);
|
|
116
124
|
throw error;
|
package/package.json
CHANGED
package/src/endpoints.json
CHANGED
|
@@ -262,6 +262,18 @@
|
|
|
262
262
|
"toolName": "create-planner-task",
|
|
263
263
|
"scopes": ["Tasks.ReadWrite"]
|
|
264
264
|
},
|
|
265
|
+
{
|
|
266
|
+
"pathPattern": "/planner/tasks/{plannerTask-id}",
|
|
267
|
+
"method": "patch",
|
|
268
|
+
"toolName": "update-planner-task",
|
|
269
|
+
"scopes": ["Tasks.ReadWrite"]
|
|
270
|
+
},
|
|
271
|
+
{
|
|
272
|
+
"pathPattern": "/planner/tasks/{plannerTask-id}/details",
|
|
273
|
+
"method": "patch",
|
|
274
|
+
"toolName": "update-planner-task-details",
|
|
275
|
+
"scopes": ["Tasks.ReadWrite"]
|
|
276
|
+
},
|
|
265
277
|
{
|
|
266
278
|
"pathPattern": "/me/contacts",
|
|
267
279
|
"method": "get",
|