@softeria/ms-365-mcp-server 0.182.0 → 0.182.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.
- package/bin/modules/simplified-openapi.mjs +2 -1
- package/dist/endpoints.json +54 -1
- package/dist/generated/client.js +24 -1
- package/package.json +1 -1
- package/src/endpoints.json +54 -1
|
@@ -34,7 +34,8 @@ export function createAndSaveSimplifiedOpenAPI(
|
|
|
34
34
|
// synthesize the whole operation from endpoints.json.
|
|
35
35
|
// 2. The method exists but the endpoint declares its own requestBodySchema
|
|
36
36
|
// (Microsoft published a deprecated/malformed/private-preview body our generator
|
|
37
|
-
// can't consume
|
|
37
|
+
// can't consume, or a body far bigger than what the operation accepts, #757):
|
|
38
|
+
// override ONLY the request body and keep Microsoft's published
|
|
38
39
|
// responses/parameters intact, so we don't silently drop upstream fields or mask
|
|
39
40
|
// a future upstream fix. requestBodySchema is explicit opt-in per endpoint.
|
|
40
41
|
for (const endpoint of endpoints) {
|
package/dist/endpoints.json
CHANGED
|
@@ -2982,7 +2982,60 @@
|
|
|
2982
2982
|
"presets": ["teams", "work"],
|
|
2983
2983
|
"workScopes": ["Chat.Create", "Chat.ReadWrite"],
|
|
2984
2984
|
"appScopes": ["Chat.Create"],
|
|
2985
|
-
"
|
|
2985
|
+
"requestBodySchema": {
|
|
2986
|
+
"type": "object",
|
|
2987
|
+
"required": ["chatType", "members"],
|
|
2988
|
+
"properties": {
|
|
2989
|
+
"chatType": {
|
|
2990
|
+
"type": "string",
|
|
2991
|
+
"enum": ["oneOnOne", "group"]
|
|
2992
|
+
},
|
|
2993
|
+
"topic": {
|
|
2994
|
+
"type": "string",
|
|
2995
|
+
"description": "Chat title. Group chats only."
|
|
2996
|
+
},
|
|
2997
|
+
"members": {
|
|
2998
|
+
"type": "array",
|
|
2999
|
+
"description": "Everyone in the chat, including the signed-in user. Each member also needs '@odata.type': '#microsoft.graph.aadUserConversationMember'.",
|
|
3000
|
+
"items": {
|
|
3001
|
+
"type": "object",
|
|
3002
|
+
"required": ["roles", "user@odata.bind"],
|
|
3003
|
+
"properties": {
|
|
3004
|
+
"roles": {
|
|
3005
|
+
"type": "array",
|
|
3006
|
+
"items": { "type": "string", "enum": ["owner", "guest"] }
|
|
3007
|
+
},
|
|
3008
|
+
"user@odata.bind": {
|
|
3009
|
+
"type": "string",
|
|
3010
|
+
"description": "e.g. https://graph.microsoft.com/v1.0/users('{user-id or userPrincipalName}')"
|
|
3011
|
+
},
|
|
3012
|
+
"tenantId": {
|
|
3013
|
+
"type": "string",
|
|
3014
|
+
"description": "Home tenant of a federated user from another organization. Such users keep the 'owner' role."
|
|
3015
|
+
}
|
|
3016
|
+
},
|
|
3017
|
+
"additionalProperties": true
|
|
3018
|
+
}
|
|
3019
|
+
},
|
|
3020
|
+
"installedApps": {
|
|
3021
|
+
"type": "array",
|
|
3022
|
+
"description": "Teams apps to install in the new chat.",
|
|
3023
|
+
"items": {
|
|
3024
|
+
"type": "object",
|
|
3025
|
+
"required": ["teamsApp@odata.bind"],
|
|
3026
|
+
"properties": {
|
|
3027
|
+
"teamsApp@odata.bind": {
|
|
3028
|
+
"type": "string",
|
|
3029
|
+
"description": "e.g. https://graph.microsoft.com/v1.0/appCatalogs/teamsApps/{teams-app-id}"
|
|
3030
|
+
}
|
|
3031
|
+
},
|
|
3032
|
+
"additionalProperties": true
|
|
3033
|
+
}
|
|
3034
|
+
}
|
|
3035
|
+
},
|
|
3036
|
+
"additionalProperties": true
|
|
3037
|
+
},
|
|
3038
|
+
"llmTip": "A oneOnOne chat takes exactly 2 members. The signed-in user must be a member. In-tenant guests take the 'guest' role. Use the returned id with send-chat-message."
|
|
2986
3039
|
},
|
|
2987
3040
|
{
|
|
2988
3041
|
"pathPattern": "/subscriptions",
|
package/dist/generated/client.js
CHANGED
|
@@ -5486,7 +5486,30 @@ const endpoints = makeApi([
|
|
|
5486
5486
|
name: "body",
|
|
5487
5487
|
description: `New entity`,
|
|
5488
5488
|
type: "Body",
|
|
5489
|
-
schema:
|
|
5489
|
+
schema: z.object({
|
|
5490
|
+
chatType: z.enum(["oneOnOne", "group"]),
|
|
5491
|
+
topic: z.string().describe("Chat title. Group chats only.").optional(),
|
|
5492
|
+
members: z.array(
|
|
5493
|
+
z.object({
|
|
5494
|
+
roles: z.array(z.enum(["owner", "guest"])),
|
|
5495
|
+
"user@odata.bind": z.string().describe(
|
|
5496
|
+
"e.g. https://graph.microsoft.com/v1.0/users('{user-id or userPrincipalName}')"
|
|
5497
|
+
),
|
|
5498
|
+
tenantId: z.string().describe(
|
|
5499
|
+
"Home tenant of a federated user from another organization. Such users keep the 'owner' role."
|
|
5500
|
+
).optional()
|
|
5501
|
+
}).loose().loose()
|
|
5502
|
+
).describe(
|
|
5503
|
+
"Everyone in the chat, including the signed-in user. Each member also needs '@odata.type': '#microsoft.graph.aadUserConversationMember'."
|
|
5504
|
+
),
|
|
5505
|
+
installedApps: z.array(
|
|
5506
|
+
z.object({
|
|
5507
|
+
"teamsApp@odata.bind": z.string().describe(
|
|
5508
|
+
"e.g. https://graph.microsoft.com/v1.0/appCatalogs/teamsApps/{teams-app-id}"
|
|
5509
|
+
)
|
|
5510
|
+
}).loose().loose()
|
|
5511
|
+
).describe("Teams apps to install in the new chat.").optional()
|
|
5512
|
+
}).loose().loose()
|
|
5490
5513
|
}
|
|
5491
5514
|
],
|
|
5492
5515
|
response: z.void()
|
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.182.
|
|
4
|
+
"version": "0.182.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",
|
package/src/endpoints.json
CHANGED
|
@@ -2982,7 +2982,60 @@
|
|
|
2982
2982
|
"presets": ["teams", "work"],
|
|
2983
2983
|
"workScopes": ["Chat.Create", "Chat.ReadWrite"],
|
|
2984
2984
|
"appScopes": ["Chat.Create"],
|
|
2985
|
-
"
|
|
2985
|
+
"requestBodySchema": {
|
|
2986
|
+
"type": "object",
|
|
2987
|
+
"required": ["chatType", "members"],
|
|
2988
|
+
"properties": {
|
|
2989
|
+
"chatType": {
|
|
2990
|
+
"type": "string",
|
|
2991
|
+
"enum": ["oneOnOne", "group"]
|
|
2992
|
+
},
|
|
2993
|
+
"topic": {
|
|
2994
|
+
"type": "string",
|
|
2995
|
+
"description": "Chat title. Group chats only."
|
|
2996
|
+
},
|
|
2997
|
+
"members": {
|
|
2998
|
+
"type": "array",
|
|
2999
|
+
"description": "Everyone in the chat, including the signed-in user. Each member also needs '@odata.type': '#microsoft.graph.aadUserConversationMember'.",
|
|
3000
|
+
"items": {
|
|
3001
|
+
"type": "object",
|
|
3002
|
+
"required": ["roles", "user@odata.bind"],
|
|
3003
|
+
"properties": {
|
|
3004
|
+
"roles": {
|
|
3005
|
+
"type": "array",
|
|
3006
|
+
"items": { "type": "string", "enum": ["owner", "guest"] }
|
|
3007
|
+
},
|
|
3008
|
+
"user@odata.bind": {
|
|
3009
|
+
"type": "string",
|
|
3010
|
+
"description": "e.g. https://graph.microsoft.com/v1.0/users('{user-id or userPrincipalName}')"
|
|
3011
|
+
},
|
|
3012
|
+
"tenantId": {
|
|
3013
|
+
"type": "string",
|
|
3014
|
+
"description": "Home tenant of a federated user from another organization. Such users keep the 'owner' role."
|
|
3015
|
+
}
|
|
3016
|
+
},
|
|
3017
|
+
"additionalProperties": true
|
|
3018
|
+
}
|
|
3019
|
+
},
|
|
3020
|
+
"installedApps": {
|
|
3021
|
+
"type": "array",
|
|
3022
|
+
"description": "Teams apps to install in the new chat.",
|
|
3023
|
+
"items": {
|
|
3024
|
+
"type": "object",
|
|
3025
|
+
"required": ["teamsApp@odata.bind"],
|
|
3026
|
+
"properties": {
|
|
3027
|
+
"teamsApp@odata.bind": {
|
|
3028
|
+
"type": "string",
|
|
3029
|
+
"description": "e.g. https://graph.microsoft.com/v1.0/appCatalogs/teamsApps/{teams-app-id}"
|
|
3030
|
+
}
|
|
3031
|
+
},
|
|
3032
|
+
"additionalProperties": true
|
|
3033
|
+
}
|
|
3034
|
+
}
|
|
3035
|
+
},
|
|
3036
|
+
"additionalProperties": true
|
|
3037
|
+
},
|
|
3038
|
+
"llmTip": "A oneOnOne chat takes exactly 2 members. The signed-in user must be a member. In-tenant guests take the 'guest' role. Use the returned id with send-chat-message."
|
|
2986
3039
|
},
|
|
2987
3040
|
{
|
|
2988
3041
|
"pathPattern": "/subscriptions",
|