@alanse/mcp-server-google-workspace 0.2.0 → 1.0.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.
- package/LICENSE +92 -18
- package/README.md +135 -36
- package/dist/auth.js +3 -2
- package/dist/index.js +6 -6
- package/dist/lib/document-id-resolver.js +76 -0
- package/dist/lib/response-formatter.js +82 -0
- package/dist/lib/validation.js +112 -0
- package/dist/tools/docs/basic/gdocs_create.js +37 -0
- package/dist/tools/docs/basic/gdocs_get_metadata.js +45 -0
- package/dist/tools/docs/basic/gdocs_list_documents.js +59 -0
- package/dist/tools/docs/basic/gdocs_read.js +62 -0
- package/dist/tools/docs/content/gdocs_append_text.js +57 -0
- package/dist/tools/docs/content/gdocs_apply_style.js +86 -0
- package/dist/tools/docs/content/gdocs_create_heading.js +89 -0
- package/dist/tools/docs/content/gdocs_create_list.js +86 -0
- package/dist/tools/docs/content/gdocs_delete_text.js +64 -0
- package/dist/tools/docs/content/gdocs_format_text.js +137 -0
- package/dist/tools/docs/content/gdocs_insert_text.js +62 -0
- package/dist/tools/docs/content/gdocs_replace_text.js +64 -0
- package/dist/tools/docs/content/gdocs_set_alignment.js +76 -0
- package/dist/tools/docs/content/gdocs_update_text.js +78 -0
- package/dist/tools/docs/elements/gdocs_batch_update.js +108 -0
- package/dist/tools/docs/elements/gdocs_create_table.js +73 -0
- package/dist/tools/docs/elements/gdocs_export.js +62 -0
- package/dist/tools/docs/elements/gdocs_insert_image.js +96 -0
- package/dist/tools/docs/elements/gdocs_insert_link.js +77 -0
- package/dist/tools/docs/elements/gdocs_insert_page_break.js +55 -0
- package/dist/tools/docs/elements/gdocs_insert_toc.js +71 -0
- package/dist/tools/docs/elements/gdocs_merge_documents.js +104 -0
- package/dist/tools/docs/elements/gdocs_suggest_mode.js +41 -0
- package/dist/tools/drive/drive_read_file.js +77 -0
- package/dist/tools/drive/drive_search.js +71 -0
- package/dist/tools/index.js +124 -5
- package/package.json +3 -3
package/dist/tools/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
//
|
|
2
|
-
import { schema as
|
|
3
|
-
import { schema as
|
|
1
|
+
// Drive operations
|
|
2
|
+
import { schema as driveSearchSchema, search } from './drive/drive_search.js';
|
|
3
|
+
import { schema as driveReadFileSchema, readFile } from './drive/drive_read_file.js';
|
|
4
4
|
// Basic operations
|
|
5
5
|
import { schema as gsheetsReadSchema, readSheet } from './sheets/basic/gsheets_read.js';
|
|
6
6
|
import { schema as gsheetsListSheetsSchema, listSheets } from './sheets/basic/gsheets_list_sheets.js';
|
|
@@ -62,13 +62,39 @@ import { schema as gsheetsUpdateDimensionGroupSchema, updateDimensionGroup } fro
|
|
|
62
62
|
import { schema as gsheetsCreateDeveloperMetadataSchema, createDeveloperMetadata } from './sheets/advanced/gsheets_create_developer_metadata.js';
|
|
63
63
|
import { schema as gsheetsUpdateDeveloperMetadataSchema, updateDeveloperMetadata } from './sheets/advanced/gsheets_update_developer_metadata.js';
|
|
64
64
|
import { schema as gsheetsDeleteDeveloperMetadataSchema, deleteDeveloperMetadata } from './sheets/advanced/gsheets_delete_developer_metadata.js';
|
|
65
|
+
// Google Docs - Basic operations
|
|
66
|
+
import { schema as gdocsCreateSchema, createDocument } from './docs/basic/gdocs_create.js';
|
|
67
|
+
import { schema as gdocsReadSchema, readDocument } from './docs/basic/gdocs_read.js';
|
|
68
|
+
import { schema as gdocsGetMetadataSchema, getMetadata } from './docs/basic/gdocs_get_metadata.js';
|
|
69
|
+
import { schema as gdocsListDocumentsSchema, listDocuments } from './docs/basic/gdocs_list_documents.js';
|
|
70
|
+
// Google Docs - Content/Formatting operations
|
|
71
|
+
import { schema as gdocsInsertTextSchema, insertText } from './docs/content/gdocs_insert_text.js';
|
|
72
|
+
import { schema as gdocsUpdateTextSchema, updateText } from './docs/content/gdocs_update_text.js';
|
|
73
|
+
import { schema as gdocsDeleteTextSchema, deleteText } from './docs/content/gdocs_delete_text.js';
|
|
74
|
+
import { schema as gdocsReplaceTextSchema, replaceText } from './docs/content/gdocs_replace_text.js';
|
|
75
|
+
import { schema as gdocsAppendTextSchema, appendText } from './docs/content/gdocs_append_text.js';
|
|
76
|
+
import { schema as gdocsFormatTextSchema, formatText } from './docs/content/gdocs_format_text.js';
|
|
77
|
+
import { schema as gdocsCreateHeadingSchema, createHeading } from './docs/content/gdocs_create_heading.js';
|
|
78
|
+
import { schema as gdocsCreateListSchema, createList } from './docs/content/gdocs_create_list.js';
|
|
79
|
+
import { schema as gdocsSetAlignmentSchema, setAlignment } from './docs/content/gdocs_set_alignment.js';
|
|
80
|
+
import { schema as gdocsApplyStyleSchema, applyStyle } from './docs/content/gdocs_apply_style.js';
|
|
81
|
+
// Google Docs - Elements/Advanced operations
|
|
82
|
+
import { schema as gdocsInsertImageSchema, insertImage } from './docs/elements/gdocs_insert_image.js';
|
|
83
|
+
import { schema as gdocsCreateTableSchema, createTable } from './docs/elements/gdocs_create_table.js';
|
|
84
|
+
import { schema as gdocsInsertPageBreakSchema, insertPageBreak } from './docs/elements/gdocs_insert_page_break.js';
|
|
85
|
+
import { schema as gdocsInsertLinkSchema, insertLink } from './docs/elements/gdocs_insert_link.js';
|
|
86
|
+
import { schema as gdocsInsertTocSchema, insertToc } from './docs/elements/gdocs_insert_toc.js';
|
|
87
|
+
import { schema as gdocsBatchUpdateSchema, batchUpdate as gdocsBatchUpdate } from './docs/elements/gdocs_batch_update.js';
|
|
88
|
+
import { schema as gdocsMergeDocumentsSchema, mergeDocuments } from './docs/elements/gdocs_merge_documents.js';
|
|
89
|
+
import { schema as gdocsExportSchema, exportDocument } from './docs/elements/gdocs_export.js';
|
|
90
|
+
import { schema as gdocsSuggestModeSchema, suggestMode } from './docs/elements/gdocs_suggest_mode.js';
|
|
65
91
|
export const tools = [
|
|
66
92
|
{
|
|
67
|
-
...
|
|
93
|
+
...driveSearchSchema,
|
|
68
94
|
handler: search,
|
|
69
95
|
},
|
|
70
96
|
{
|
|
71
|
-
...
|
|
97
|
+
...driveReadFileSchema,
|
|
72
98
|
handler: readFile,
|
|
73
99
|
},
|
|
74
100
|
{
|
|
@@ -290,5 +316,98 @@ export const tools = [
|
|
|
290
316
|
{
|
|
291
317
|
...gsheetsDeleteDeveloperMetadataSchema,
|
|
292
318
|
handler: deleteDeveloperMetadata,
|
|
319
|
+
},
|
|
320
|
+
// Google Docs tools
|
|
321
|
+
{
|
|
322
|
+
...gdocsCreateSchema,
|
|
323
|
+
handler: createDocument,
|
|
324
|
+
},
|
|
325
|
+
{
|
|
326
|
+
...gdocsReadSchema,
|
|
327
|
+
handler: readDocument,
|
|
328
|
+
},
|
|
329
|
+
{
|
|
330
|
+
...gdocsGetMetadataSchema,
|
|
331
|
+
handler: getMetadata,
|
|
332
|
+
},
|
|
333
|
+
{
|
|
334
|
+
...gdocsListDocumentsSchema,
|
|
335
|
+
handler: listDocuments,
|
|
336
|
+
},
|
|
337
|
+
{
|
|
338
|
+
...gdocsInsertTextSchema,
|
|
339
|
+
handler: insertText,
|
|
340
|
+
},
|
|
341
|
+
{
|
|
342
|
+
...gdocsUpdateTextSchema,
|
|
343
|
+
handler: updateText,
|
|
344
|
+
},
|
|
345
|
+
{
|
|
346
|
+
...gdocsDeleteTextSchema,
|
|
347
|
+
handler: deleteText,
|
|
348
|
+
},
|
|
349
|
+
{
|
|
350
|
+
...gdocsReplaceTextSchema,
|
|
351
|
+
handler: replaceText,
|
|
352
|
+
},
|
|
353
|
+
{
|
|
354
|
+
...gdocsAppendTextSchema,
|
|
355
|
+
handler: appendText,
|
|
356
|
+
},
|
|
357
|
+
{
|
|
358
|
+
...gdocsFormatTextSchema,
|
|
359
|
+
handler: formatText,
|
|
360
|
+
},
|
|
361
|
+
{
|
|
362
|
+
...gdocsCreateHeadingSchema,
|
|
363
|
+
handler: createHeading,
|
|
364
|
+
},
|
|
365
|
+
{
|
|
366
|
+
...gdocsCreateListSchema,
|
|
367
|
+
handler: createList,
|
|
368
|
+
},
|
|
369
|
+
{
|
|
370
|
+
...gdocsSetAlignmentSchema,
|
|
371
|
+
handler: setAlignment,
|
|
372
|
+
},
|
|
373
|
+
{
|
|
374
|
+
...gdocsApplyStyleSchema,
|
|
375
|
+
handler: applyStyle,
|
|
376
|
+
},
|
|
377
|
+
{
|
|
378
|
+
...gdocsInsertImageSchema,
|
|
379
|
+
handler: insertImage,
|
|
380
|
+
},
|
|
381
|
+
{
|
|
382
|
+
...gdocsCreateTableSchema,
|
|
383
|
+
handler: createTable,
|
|
384
|
+
},
|
|
385
|
+
{
|
|
386
|
+
...gdocsInsertPageBreakSchema,
|
|
387
|
+
handler: insertPageBreak,
|
|
388
|
+
},
|
|
389
|
+
{
|
|
390
|
+
...gdocsInsertLinkSchema,
|
|
391
|
+
handler: insertLink,
|
|
392
|
+
},
|
|
393
|
+
{
|
|
394
|
+
...gdocsInsertTocSchema,
|
|
395
|
+
handler: insertToc,
|
|
396
|
+
},
|
|
397
|
+
{
|
|
398
|
+
...gdocsBatchUpdateSchema,
|
|
399
|
+
handler: gdocsBatchUpdate,
|
|
400
|
+
},
|
|
401
|
+
{
|
|
402
|
+
...gdocsMergeDocumentsSchema,
|
|
403
|
+
handler: mergeDocuments,
|
|
404
|
+
},
|
|
405
|
+
{
|
|
406
|
+
...gdocsExportSchema,
|
|
407
|
+
handler: exportDocument,
|
|
408
|
+
},
|
|
409
|
+
{
|
|
410
|
+
...gdocsSuggestModeSchema,
|
|
411
|
+
handler: suggestMode,
|
|
293
412
|
}
|
|
294
413
|
];
|
package/package.json
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@alanse/mcp-server-google-workspace",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "1.0.0",
|
|
4
4
|
"description": "The most comprehensive MCP server for Google Workspace - Complete integration for Sheets (57 tools), Drive, and future Docs, Calendar, Forms support",
|
|
5
|
-
"license": "
|
|
6
|
-
"author": "Alanse inc
|
|
5
|
+
"license": "Elastic-2.0",
|
|
6
|
+
"author": "Alanse inc",
|
|
7
7
|
"homepage": "https://github.com/alanse-inc/mcp-server-google-workspace",
|
|
8
8
|
"bugs": "https://github.com/alanse-inc/mcp-server-google-workspace/issues",
|
|
9
9
|
"type": "module",
|