@softeria/ms-365-mcp-server 0.181.0 → 0.181.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/PRESETS.md +17 -12
- package/dist/endpoints.json +13 -13
- package/dist/graph-client.js +5 -1
- package/dist/server.js +3 -1
- package/package.json +1 -1
- package/src/endpoints.json +13 -13
- package/src/generated/README.md +2 -2
package/PRESETS.md
CHANGED
|
@@ -10,14 +10,14 @@ Every preset also includes the account tools (`login`, `logout`, `verify-login`,
|
|
|
10
10
|
|
|
11
11
|
| Preset | Mode | Tools | Scopes | Org mode | Description |
|
|
12
12
|
| ------------- | ---------------------------------------------------------------- | ---------: | -------: | -------------------- | --------------------------------------------------------------------------------------------------------------------------------- |
|
|
13
|
-
| `all` | [full](#all-full)<br>[read only](#all-read-only) | 370<br>180 |
|
|
13
|
+
| `all` | [full](#all-full)<br>[read only](#all-read-only) | 370<br>180 | 65<br>38 | -<br>- | All available tools |
|
|
14
14
|
| `calendar` | [full](#calendar-full)<br>[read only](#calendar-read-only) | 47<br>22 | 7<br>5 | -<br>- | Calendar and event management |
|
|
15
15
|
| `contacts` | [full](#contacts-full)<br>[read only](#contacts-read-only) | 15<br>7 | 1<br>1 | -<br>- | Outlook contacts management |
|
|
16
16
|
| `excel` | [full](#excel-full)<br>[read only](#excel-read-only) | 25<br>9 | 1<br>1 | -<br>- | Excel spreadsheet operations |
|
|
17
17
|
| `files` | [full](#files-full)<br>[read only](#files-read-only) | 25<br>14 | 3<br>2 | -<br>- | OneDrive file and folder operations |
|
|
18
18
|
| `mail` | [full](#mail-full)<br>[read only](#mail-read-only) | 50<br>19 | 5<br>3 | -<br>- | Email operations (read, send, manage folders, attachments) |
|
|
19
19
|
| `onedrive` | [full](#onedrive-full)<br>[read only](#onedrive-read-only) | 23<br>12 | 2<br>1 | -<br>- | OneDrive app only: drive and file operations, excluding Excel |
|
|
20
|
-
| `onenote` | [full](#onenote-full)<br>[read only](#onenote-read-only) | 29<br>17 |
|
|
20
|
+
| `onenote` | [full](#onenote-full)<br>[read only](#onenote-read-only) | 29<br>17 | 5<br>2 | -<br>- | OneNote notebook operations |
|
|
21
21
|
| `outlook` | [full](#outlook-full)<br>[read only](#outlook-read-only) | 97<br>37 | 8<br>6 | -<br>- | Outlook app only: mail, calendar and contacts |
|
|
22
22
|
| `personal` | [full](#personal-full)<br>[read only](#personal-read-only) | 178<br>74 | 20<br>15 | -<br>- | Personal productivity tools (mail, calendar, files, contacts, tasks, notes, search) |
|
|
23
23
|
| `search` | [full](#search-full)<br>[read only](#search-read-only) | 7<br>7 | 8<br>8 | -<br>- | Microsoft Search capabilities |
|
|
@@ -25,7 +25,7 @@ Every preset also includes the account tools (`login`, `logout`, `verify-login`,
|
|
|
25
25
|
| `teams` | [full](#teams-full)<br>[read only](#teams-read-only) | 73<br>43 | 31<br>18 | required<br>required | Teams app only: chats, channels, meetings and presence |
|
|
26
26
|
| `teams-write` | [full](#teams-write-full)<br>[read only](#teams-write-read-only) | 11<br>7 | 6<br>3 | required<br>required | Teams send-only: send/reply in chats and channels, list chats/teams/channels by name, activity notifications - no message reading |
|
|
27
27
|
| `users` | [full](#users-full)<br>[read only](#users-read-only) | 11<br>11 | 4<br>4 | required<br>required | User directory access |
|
|
28
|
-
| `work` | [full](#work-full)<br>[read only](#work-read-only) | 190<br>110 |
|
|
28
|
+
| `work` | [full](#work-full)<br>[read only](#work-read-only) | 190<br>110 | 55<br>33 | required<br>required | Organization/work tools (Teams, SharePoint, shared mailboxes, search) |
|
|
29
29
|
|
|
30
30
|
## `all` full
|
|
31
31
|
|
|
@@ -404,7 +404,7 @@ Tools (370):
|
|
|
404
404
|
- `upload-file-content`
|
|
405
405
|
- `upload-my-profile-photo`
|
|
406
406
|
|
|
407
|
-
Scopes (
|
|
407
|
+
Scopes (65):
|
|
408
408
|
|
|
409
409
|
- `Calendars.Read.Shared`
|
|
410
410
|
- `Calendars.ReadWrite`
|
|
@@ -439,7 +439,9 @@ Scopes (63):
|
|
|
439
439
|
- `MailboxSettings.ReadWrite`
|
|
440
440
|
- `Notes.Create`
|
|
441
441
|
- `Notes.Read`
|
|
442
|
+
- `Notes.Read.All`
|
|
442
443
|
- `Notes.ReadWrite`
|
|
444
|
+
- `Notes.ReadWrite.All`
|
|
443
445
|
- `OnlineMeetingArtifact.Read.All`
|
|
444
446
|
- `OnlineMeetingRecording.Read.All`
|
|
445
447
|
- `OnlineMeetings.Read`
|
|
@@ -657,7 +659,7 @@ Tools (180):
|
|
|
657
659
|
- `search-query`
|
|
658
660
|
- `search-sharepoint-sites`
|
|
659
661
|
|
|
660
|
-
Scopes (
|
|
662
|
+
Scopes (38):
|
|
661
663
|
|
|
662
664
|
- `Calendars.Read`
|
|
663
665
|
- `Calendars.Read.Shared`
|
|
@@ -677,6 +679,7 @@ Scopes (37):
|
|
|
677
679
|
- `Mail.Read.Shared`
|
|
678
680
|
- `MailboxSettings.Read`
|
|
679
681
|
- `Notes.Read`
|
|
682
|
+
- `Notes.Read.All`
|
|
680
683
|
- `OnlineMeetingArtifact.Read.All`
|
|
681
684
|
- `OnlineMeetingRecording.Read.All`
|
|
682
685
|
- `OnlineMeetings.Read`
|
|
@@ -1153,11 +1156,13 @@ Tools (29):
|
|
|
1153
1156
|
- `update-onenote-page-content`
|
|
1154
1157
|
- `update-sharepoint-site-onenote-page-content`
|
|
1155
1158
|
|
|
1156
|
-
Scopes (
|
|
1159
|
+
Scopes (5):
|
|
1157
1160
|
|
|
1158
1161
|
- `Notes.Create`
|
|
1159
1162
|
- `Notes.Read`
|
|
1163
|
+
- `Notes.Read.All`
|
|
1160
1164
|
- `Notes.ReadWrite`
|
|
1165
|
+
- `Notes.ReadWrite.All`
|
|
1161
1166
|
|
|
1162
1167
|
## `onenote` read only
|
|
1163
1168
|
|
|
@@ -1183,9 +1188,10 @@ Tools (17):
|
|
|
1183
1188
|
- `list-sharepoint-site-onenote-section-group-sections`
|
|
1184
1189
|
- `list-sharepoint-site-onenote-section-pages`
|
|
1185
1190
|
|
|
1186
|
-
Scopes (
|
|
1191
|
+
Scopes (2):
|
|
1187
1192
|
|
|
1188
1193
|
- `Notes.Read`
|
|
1194
|
+
- `Notes.Read.All`
|
|
1189
1195
|
|
|
1190
1196
|
## `outlook` full
|
|
1191
1197
|
|
|
@@ -2278,7 +2284,7 @@ Tools (190):
|
|
|
2278
2284
|
- `update-team-channel`
|
|
2279
2285
|
- `upload-attachment-from-file`
|
|
2280
2286
|
|
|
2281
|
-
Scopes (
|
|
2287
|
+
Scopes (55):
|
|
2282
2288
|
|
|
2283
2289
|
- `Calendars.Read`
|
|
2284
2290
|
- `Calendars.Read.Shared`
|
|
@@ -2306,9 +2312,8 @@ Scopes (56):
|
|
|
2306
2312
|
- `Mail.Read.Shared`
|
|
2307
2313
|
- `Mail.ReadWrite.Shared`
|
|
2308
2314
|
- `Mail.Send.Shared`
|
|
2309
|
-
- `Notes.
|
|
2310
|
-
- `Notes.
|
|
2311
|
-
- `Notes.ReadWrite`
|
|
2315
|
+
- `Notes.Read.All`
|
|
2316
|
+
- `Notes.ReadWrite.All`
|
|
2312
2317
|
- `OnlineMeetingArtifact.Read.All`
|
|
2313
2318
|
- `OnlineMeetingRecording.Read.All`
|
|
2314
2319
|
- `OnlineMeetings.Read`
|
|
@@ -2472,7 +2477,7 @@ Scopes (33):
|
|
|
2472
2477
|
- `GroupMember.Read.All`
|
|
2473
2478
|
- `Mail.Read`
|
|
2474
2479
|
- `Mail.Read.Shared`
|
|
2475
|
-
- `Notes.Read`
|
|
2480
|
+
- `Notes.Read.All`
|
|
2476
2481
|
- `OnlineMeetingArtifact.Read.All`
|
|
2477
2482
|
- `OnlineMeetingRecording.Read.All`
|
|
2478
2483
|
- `OnlineMeetings.Read`
|
package/dist/endpoints.json
CHANGED
|
@@ -1301,77 +1301,77 @@
|
|
|
1301
1301
|
"method": "get",
|
|
1302
1302
|
"toolName": "list-sharepoint-site-onenote-notebooks",
|
|
1303
1303
|
"presets": ["onenote", "work"],
|
|
1304
|
-
"workScopes": ["Notes.Read"]
|
|
1304
|
+
"workScopes": ["Notes.Read.All"]
|
|
1305
1305
|
},
|
|
1306
1306
|
{
|
|
1307
1307
|
"pathPattern": "/sites/{site-id}/onenote/notebooks/{notebook-id}/sections",
|
|
1308
1308
|
"method": "get",
|
|
1309
1309
|
"toolName": "list-sharepoint-site-onenote-notebook-sections",
|
|
1310
1310
|
"presets": ["onenote", "work"],
|
|
1311
|
-
"workScopes": ["Notes.Read"]
|
|
1311
|
+
"workScopes": ["Notes.Read.All"]
|
|
1312
1312
|
},
|
|
1313
1313
|
{
|
|
1314
1314
|
"pathPattern": "/sites/{site-id}/onenote/sections/{onenoteSection-id}/pages",
|
|
1315
1315
|
"method": "get",
|
|
1316
1316
|
"toolName": "list-sharepoint-site-onenote-section-pages",
|
|
1317
1317
|
"presets": ["onenote", "work"],
|
|
1318
|
-
"workScopes": ["Notes.Read"]
|
|
1318
|
+
"workScopes": ["Notes.Read.All"]
|
|
1319
1319
|
},
|
|
1320
1320
|
{
|
|
1321
1321
|
"pathPattern": "/sites/{site-id}/onenote/notebooks/{notebook-id}/sectionGroups",
|
|
1322
1322
|
"method": "get",
|
|
1323
1323
|
"toolName": "list-sharepoint-site-onenote-notebook-section-groups",
|
|
1324
1324
|
"presets": ["onenote", "work"],
|
|
1325
|
-
"workScopes": ["Notes.Read"]
|
|
1325
|
+
"workScopes": ["Notes.Read.All"]
|
|
1326
1326
|
},
|
|
1327
1327
|
{
|
|
1328
1328
|
"pathPattern": "/sites/{site-id}/onenote/sectionGroups/{sectionGroup-id}/sections",
|
|
1329
1329
|
"method": "get",
|
|
1330
1330
|
"toolName": "list-sharepoint-site-onenote-section-group-sections",
|
|
1331
1331
|
"presets": ["onenote", "work"],
|
|
1332
|
-
"workScopes": ["Notes.Read"]
|
|
1332
|
+
"workScopes": ["Notes.Read.All"]
|
|
1333
1333
|
},
|
|
1334
1334
|
{
|
|
1335
1335
|
"pathPattern": "/sites/{site-id}/onenote/sectionGroups/{sectionGroup-id}/sectionGroups",
|
|
1336
1336
|
"method": "get",
|
|
1337
1337
|
"toolName": "list-sharepoint-site-onenote-section-group-section-groups",
|
|
1338
1338
|
"presets": ["onenote", "work"],
|
|
1339
|
-
"workScopes": ["Notes.Read"]
|
|
1339
|
+
"workScopes": ["Notes.Read.All"]
|
|
1340
1340
|
},
|
|
1341
1341
|
{
|
|
1342
1342
|
"pathPattern": "/sites/{site-id}/onenote/pages/{onenotePage-id}/content",
|
|
1343
1343
|
"method": "get",
|
|
1344
1344
|
"toolName": "get-sharepoint-site-onenote-page-content",
|
|
1345
1345
|
"presets": ["onenote", "work"],
|
|
1346
|
-
"workScopes": ["Notes.Read"]
|
|
1346
|
+
"workScopes": ["Notes.Read.All"]
|
|
1347
1347
|
},
|
|
1348
1348
|
{
|
|
1349
1349
|
"pathPattern": "/sites/{site-id}/onenote/notebooks",
|
|
1350
1350
|
"method": "post",
|
|
1351
1351
|
"toolName": "create-sharepoint-site-onenote-notebook",
|
|
1352
1352
|
"presets": ["onenote", "work"],
|
|
1353
|
-
"workScopes": ["Notes.
|
|
1353
|
+
"workScopes": ["Notes.ReadWrite.All"]
|
|
1354
1354
|
},
|
|
1355
1355
|
{
|
|
1356
1356
|
"pathPattern": "/sites/{site-id}/onenote/notebooks/{notebook-id}/sections",
|
|
1357
1357
|
"method": "post",
|
|
1358
1358
|
"toolName": "create-sharepoint-site-onenote-section",
|
|
1359
1359
|
"presets": ["onenote", "work"],
|
|
1360
|
-
"workScopes": ["Notes.
|
|
1360
|
+
"workScopes": ["Notes.ReadWrite.All"]
|
|
1361
1361
|
},
|
|
1362
1362
|
{
|
|
1363
1363
|
"pathPattern": "/sites/{site-id}/onenote/sectionGroups/{sectionGroup-id}/sections",
|
|
1364
1364
|
"method": "post",
|
|
1365
1365
|
"toolName": "create-sharepoint-site-onenote-section-group-section",
|
|
1366
1366
|
"presets": ["onenote", "work"],
|
|
1367
|
-
"workScopes": ["Notes.
|
|
1367
|
+
"workScopes": ["Notes.ReadWrite.All"]
|
|
1368
1368
|
},
|
|
1369
1369
|
{
|
|
1370
1370
|
"pathPattern": "/sites/{site-id}/onenote/sections/{onenoteSection-id}/pages",
|
|
1371
1371
|
"method": "post",
|
|
1372
1372
|
"toolName": "create-sharepoint-site-onenote-section-page",
|
|
1373
1373
|
"presets": ["onenote", "work"],
|
|
1374
|
-
"workScopes": ["Notes.
|
|
1374
|
+
"workScopes": ["Notes.ReadWrite.All"],
|
|
1375
1375
|
"contentType": "text/html",
|
|
1376
1376
|
"llmTip": "Body must be a full HTML document (with <html><head><title>...</title></head><body>...</body></html>). Partial HTML fails silently."
|
|
1377
1377
|
},
|
|
@@ -1380,7 +1380,7 @@
|
|
|
1380
1380
|
"method": "patch",
|
|
1381
1381
|
"toolName": "update-sharepoint-site-onenote-page-content",
|
|
1382
1382
|
"presets": ["onenote", "work"],
|
|
1383
|
-
"workScopes": ["Notes.ReadWrite"],
|
|
1383
|
+
"workScopes": ["Notes.ReadWrite.All"],
|
|
1384
1384
|
"requestBodySchema": {
|
|
1385
1385
|
"type": "array",
|
|
1386
1386
|
"description": "Array of patchContentCommand objects applied in order to the page's HTML.",
|
|
@@ -1415,7 +1415,7 @@
|
|
|
1415
1415
|
"method": "delete",
|
|
1416
1416
|
"toolName": "delete-sharepoint-site-onenote-page",
|
|
1417
1417
|
"presets": ["onenote", "work"],
|
|
1418
|
-
"workScopes": ["Notes.ReadWrite"]
|
|
1418
|
+
"workScopes": ["Notes.ReadWrite.All"]
|
|
1419
1419
|
},
|
|
1420
1420
|
{
|
|
1421
1421
|
"pathPattern": "/me/onenote/pages",
|
package/dist/graph-client.js
CHANGED
|
@@ -165,11 +165,12 @@ function toBlobResponse(data, blob) {
|
|
|
165
165
|
};
|
|
166
166
|
}
|
|
167
167
|
class GraphClient {
|
|
168
|
-
constructor(authManager, secrets, outputFormat = "json") {
|
|
168
|
+
constructor(authManager, secrets, outputFormat = "json", options = {}) {
|
|
169
169
|
this.outputFormat = "json";
|
|
170
170
|
this.authManager = authManager;
|
|
171
171
|
this.secrets = secrets;
|
|
172
172
|
this.outputFormat = outputFormat;
|
|
173
|
+
this.orgMode = Boolean(options.orgMode);
|
|
173
174
|
}
|
|
174
175
|
async makeRequest(endpoint, options = {}) {
|
|
175
176
|
return (await this.makeRequestWithMetadata(endpoint, options)).data;
|
|
@@ -352,6 +353,9 @@ class GraphClient {
|
|
|
352
353
|
if (this.authManager.isAppMode?.()) {
|
|
353
354
|
return "Grant one of these as an application permission to your app registration (with admin consent), or for mail and calendars through Exchange RBAC for Applications.";
|
|
354
355
|
}
|
|
356
|
+
if (this.orgMode) {
|
|
357
|
+
return "The access token does not carry a scope this request needs. Make sure the app registration has the permission and sign in again to consent to it.";
|
|
358
|
+
}
|
|
355
359
|
return "This tool requires organization mode. Please restart with --org-mode flag.";
|
|
356
360
|
}
|
|
357
361
|
async createGraphApiError(response) {
|
package/dist/server.js
CHANGED
|
@@ -318,7 +318,9 @@ class MicrosoftGraphServer {
|
|
|
318
318
|
logger.info("On-Behalf-Of (OBO) flow enabled");
|
|
319
319
|
}
|
|
320
320
|
const outputFormat = this.options.toon ? "toon" : "json";
|
|
321
|
-
this.graphClient = new GraphClient(this.authManager, this.secrets, outputFormat
|
|
321
|
+
this.graphClient = new GraphClient(this.authManager, this.secrets, outputFormat, {
|
|
322
|
+
orgMode: Boolean(this.options.orgMode)
|
|
323
|
+
});
|
|
322
324
|
if (!this.options.http) {
|
|
323
325
|
this.server = this.createMcpServer();
|
|
324
326
|
}
|
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.181.
|
|
4
|
+
"version": "0.181.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
|
@@ -1301,77 +1301,77 @@
|
|
|
1301
1301
|
"method": "get",
|
|
1302
1302
|
"toolName": "list-sharepoint-site-onenote-notebooks",
|
|
1303
1303
|
"presets": ["onenote", "work"],
|
|
1304
|
-
"workScopes": ["Notes.Read"]
|
|
1304
|
+
"workScopes": ["Notes.Read.All"]
|
|
1305
1305
|
},
|
|
1306
1306
|
{
|
|
1307
1307
|
"pathPattern": "/sites/{site-id}/onenote/notebooks/{notebook-id}/sections",
|
|
1308
1308
|
"method": "get",
|
|
1309
1309
|
"toolName": "list-sharepoint-site-onenote-notebook-sections",
|
|
1310
1310
|
"presets": ["onenote", "work"],
|
|
1311
|
-
"workScopes": ["Notes.Read"]
|
|
1311
|
+
"workScopes": ["Notes.Read.All"]
|
|
1312
1312
|
},
|
|
1313
1313
|
{
|
|
1314
1314
|
"pathPattern": "/sites/{site-id}/onenote/sections/{onenoteSection-id}/pages",
|
|
1315
1315
|
"method": "get",
|
|
1316
1316
|
"toolName": "list-sharepoint-site-onenote-section-pages",
|
|
1317
1317
|
"presets": ["onenote", "work"],
|
|
1318
|
-
"workScopes": ["Notes.Read"]
|
|
1318
|
+
"workScopes": ["Notes.Read.All"]
|
|
1319
1319
|
},
|
|
1320
1320
|
{
|
|
1321
1321
|
"pathPattern": "/sites/{site-id}/onenote/notebooks/{notebook-id}/sectionGroups",
|
|
1322
1322
|
"method": "get",
|
|
1323
1323
|
"toolName": "list-sharepoint-site-onenote-notebook-section-groups",
|
|
1324
1324
|
"presets": ["onenote", "work"],
|
|
1325
|
-
"workScopes": ["Notes.Read"]
|
|
1325
|
+
"workScopes": ["Notes.Read.All"]
|
|
1326
1326
|
},
|
|
1327
1327
|
{
|
|
1328
1328
|
"pathPattern": "/sites/{site-id}/onenote/sectionGroups/{sectionGroup-id}/sections",
|
|
1329
1329
|
"method": "get",
|
|
1330
1330
|
"toolName": "list-sharepoint-site-onenote-section-group-sections",
|
|
1331
1331
|
"presets": ["onenote", "work"],
|
|
1332
|
-
"workScopes": ["Notes.Read"]
|
|
1332
|
+
"workScopes": ["Notes.Read.All"]
|
|
1333
1333
|
},
|
|
1334
1334
|
{
|
|
1335
1335
|
"pathPattern": "/sites/{site-id}/onenote/sectionGroups/{sectionGroup-id}/sectionGroups",
|
|
1336
1336
|
"method": "get",
|
|
1337
1337
|
"toolName": "list-sharepoint-site-onenote-section-group-section-groups",
|
|
1338
1338
|
"presets": ["onenote", "work"],
|
|
1339
|
-
"workScopes": ["Notes.Read"]
|
|
1339
|
+
"workScopes": ["Notes.Read.All"]
|
|
1340
1340
|
},
|
|
1341
1341
|
{
|
|
1342
1342
|
"pathPattern": "/sites/{site-id}/onenote/pages/{onenotePage-id}/content",
|
|
1343
1343
|
"method": "get",
|
|
1344
1344
|
"toolName": "get-sharepoint-site-onenote-page-content",
|
|
1345
1345
|
"presets": ["onenote", "work"],
|
|
1346
|
-
"workScopes": ["Notes.Read"]
|
|
1346
|
+
"workScopes": ["Notes.Read.All"]
|
|
1347
1347
|
},
|
|
1348
1348
|
{
|
|
1349
1349
|
"pathPattern": "/sites/{site-id}/onenote/notebooks",
|
|
1350
1350
|
"method": "post",
|
|
1351
1351
|
"toolName": "create-sharepoint-site-onenote-notebook",
|
|
1352
1352
|
"presets": ["onenote", "work"],
|
|
1353
|
-
"workScopes": ["Notes.
|
|
1353
|
+
"workScopes": ["Notes.ReadWrite.All"]
|
|
1354
1354
|
},
|
|
1355
1355
|
{
|
|
1356
1356
|
"pathPattern": "/sites/{site-id}/onenote/notebooks/{notebook-id}/sections",
|
|
1357
1357
|
"method": "post",
|
|
1358
1358
|
"toolName": "create-sharepoint-site-onenote-section",
|
|
1359
1359
|
"presets": ["onenote", "work"],
|
|
1360
|
-
"workScopes": ["Notes.
|
|
1360
|
+
"workScopes": ["Notes.ReadWrite.All"]
|
|
1361
1361
|
},
|
|
1362
1362
|
{
|
|
1363
1363
|
"pathPattern": "/sites/{site-id}/onenote/sectionGroups/{sectionGroup-id}/sections",
|
|
1364
1364
|
"method": "post",
|
|
1365
1365
|
"toolName": "create-sharepoint-site-onenote-section-group-section",
|
|
1366
1366
|
"presets": ["onenote", "work"],
|
|
1367
|
-
"workScopes": ["Notes.
|
|
1367
|
+
"workScopes": ["Notes.ReadWrite.All"]
|
|
1368
1368
|
},
|
|
1369
1369
|
{
|
|
1370
1370
|
"pathPattern": "/sites/{site-id}/onenote/sections/{onenoteSection-id}/pages",
|
|
1371
1371
|
"method": "post",
|
|
1372
1372
|
"toolName": "create-sharepoint-site-onenote-section-page",
|
|
1373
1373
|
"presets": ["onenote", "work"],
|
|
1374
|
-
"workScopes": ["Notes.
|
|
1374
|
+
"workScopes": ["Notes.ReadWrite.All"],
|
|
1375
1375
|
"contentType": "text/html",
|
|
1376
1376
|
"llmTip": "Body must be a full HTML document (with <html><head><title>...</title></head><body>...</body></html>). Partial HTML fails silently."
|
|
1377
1377
|
},
|
|
@@ -1380,7 +1380,7 @@
|
|
|
1380
1380
|
"method": "patch",
|
|
1381
1381
|
"toolName": "update-sharepoint-site-onenote-page-content",
|
|
1382
1382
|
"presets": ["onenote", "work"],
|
|
1383
|
-
"workScopes": ["Notes.ReadWrite"],
|
|
1383
|
+
"workScopes": ["Notes.ReadWrite.All"],
|
|
1384
1384
|
"requestBodySchema": {
|
|
1385
1385
|
"type": "array",
|
|
1386
1386
|
"description": "Array of patchContentCommand objects applied in order to the page's HTML.",
|
|
@@ -1415,7 +1415,7 @@
|
|
|
1415
1415
|
"method": "delete",
|
|
1416
1416
|
"toolName": "delete-sharepoint-site-onenote-page",
|
|
1417
1417
|
"presets": ["onenote", "work"],
|
|
1418
|
-
"workScopes": ["Notes.ReadWrite"]
|
|
1418
|
+
"workScopes": ["Notes.ReadWrite.All"]
|
|
1419
1419
|
},
|
|
1420
1420
|
{
|
|
1421
1421
|
"pathPattern": "/me/onenote/pages",
|
package/src/generated/README.md
CHANGED
|
@@ -44,13 +44,13 @@ improvements should now be much easier to implement and maintain.
|
|
|
44
44
|
To regenerate the client code (e.g., after API changes or to update the supported endpoints):
|
|
45
45
|
|
|
46
46
|
```
|
|
47
|
-
|
|
47
|
+
node bin/generate-graph-client.mjs
|
|
48
48
|
```
|
|
49
49
|
|
|
50
50
|
This command does the following:
|
|
51
51
|
|
|
52
52
|
1. Fetches/processes the OpenAPI spec
|
|
53
53
|
2. Generates the TypeScript client with Zod validation
|
|
54
|
-
3.
|
|
54
|
+
3. Writes the v1.0 and beta clients to `client.ts` and `client-beta.ts`.
|
|
55
55
|
|
|
56
56
|
No complex build scripts needed - the generation is handled by openapi-zod-client.
|