@mindstone/mcp-server-google-workspace 0.1.5 → 0.3.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/README.md +28 -9
- package/dist/modules/accounts/manager.js +20 -2
- package/dist/modules/accounts/token.d.ts +13 -0
- package/dist/modules/accounts/token.js +73 -58
- package/dist/modules/accounts/types.d.ts +1 -0
- package/dist/modules/calendar/service.js +9 -0
- package/dist/modules/chat/index.d.ts +12 -0
- package/dist/modules/chat/index.js +18 -0
- package/dist/modules/chat/scopes.d.ts +14 -0
- package/dist/modules/chat/scopes.js +32 -0
- package/dist/modules/chat/types.d.ts +88 -0
- package/dist/modules/chat/types.js +14 -0
- package/dist/modules/comments/service.js +26 -5
- package/dist/modules/contacts/scopes.d.ts +1 -0
- package/dist/modules/contacts/scopes.js +2 -2
- package/dist/modules/contacts/types.d.ts +34 -0
- package/dist/modules/docs/index.js +2 -1
- package/dist/modules/docs/service.js +36 -7
- package/dist/modules/drive/activity-service.d.ts +45 -0
- package/dist/modules/drive/activity-service.js +114 -0
- package/dist/modules/drive/index.d.ts +4 -0
- package/dist/modules/drive/index.js +12 -0
- package/dist/modules/drive/scopes.d.ts +1 -0
- package/dist/modules/drive/scopes.js +3 -0
- package/dist/modules/drive/service.d.ts +2 -1
- package/dist/modules/drive/service.js +29 -0
- package/dist/modules/drive/types.d.ts +8 -0
- package/dist/modules/forms/service.js +16 -3
- package/dist/modules/gmail/services/attachment.js +2 -1
- package/dist/modules/gmail/services/base.d.ts +5 -1
- package/dist/modules/gmail/services/base.js +10 -1
- package/dist/modules/gmail/services/draft.js +13 -7
- package/dist/modules/gmail/services/email.js +4 -3
- package/dist/modules/gmail/services/label.js +10 -9
- package/dist/modules/gmail/services/settings.d.ts +14 -1
- package/dist/modules/gmail/services/settings.js +96 -1
- package/dist/modules/gmail/types.d.ts +36 -0
- package/dist/modules/meet/index.d.ts +12 -0
- package/dist/modules/meet/index.js +18 -0
- package/dist/modules/meet/scopes.d.ts +9 -0
- package/dist/modules/meet/scopes.js +25 -0
- package/dist/modules/meet/types.d.ts +97 -0
- package/dist/modules/meet/types.js +14 -0
- package/dist/modules/sheets/service.js +49 -0
- package/dist/modules/slides/service.js +31 -6
- package/dist/modules/tasks/service.js +31 -6
- package/dist/resources/compose-email-template.d.ts +1 -1
- package/dist/resources/compose-email-template.js +388 -19
- package/dist/services/base/BaseGoogleService.d.ts +9 -1
- package/dist/services/base/BaseGoogleService.js +33 -1
- package/dist/services/chat/index.d.ts +34 -0
- package/dist/services/chat/index.js +120 -0
- package/dist/services/contacts/index.d.ts +19 -1
- package/dist/services/contacts/index.js +124 -0
- package/dist/services/meet/index.d.ts +35 -0
- package/dist/services/meet/index.js +116 -0
- package/dist/tools/calendar-handlers.js +28 -23
- package/dist/tools/chat-handlers.d.ts +14 -0
- package/dist/tools/chat-handlers.js +126 -0
- package/dist/tools/contacts-handlers.d.ts +31 -0
- package/dist/tools/contacts-handlers.js +96 -23
- package/dist/tools/definitions/account.js +8 -1
- package/dist/tools/definitions/chat.d.ts +3 -0
- package/dist/tools/definitions/chat.js +137 -0
- package/dist/tools/definitions/contacts.js +82 -0
- package/dist/tools/definitions/destructive-overrides.json +12 -0
- package/dist/tools/definitions/drive.js +132 -6
- package/dist/tools/definitions/gmail.js +94 -0
- package/dist/tools/definitions/index.d.ts +2 -0
- package/dist/tools/definitions/index.js +6 -0
- package/dist/tools/definitions/meet.d.ts +3 -0
- package/dist/tools/definitions/meet.js +149 -0
- package/dist/tools/definitions/open-world-overrides.json +12 -0
- package/dist/tools/drive-handlers.d.ts +27 -0
- package/dist/tools/drive-handlers.js +93 -2
- package/dist/tools/forms-handlers.js +5 -12
- package/dist/tools/gmail-handlers.d.ts +31 -1
- package/dist/tools/gmail-handlers.js +167 -35
- package/dist/tools/meet-handlers.d.ts +42 -0
- package/dist/tools/meet-handlers.js +144 -0
- package/dist/tools/server.js +67 -5
- package/dist/tools/tasks-handlers.js +7 -18
- package/dist/tools/type-guards.d.ts +3 -1
- package/dist/tools/type-guards.js +22 -2
- package/dist/tools/types.d.ts +13 -0
- package/dist/utils/apiError.d.ts +49 -0
- package/dist/utils/apiError.js +96 -0
- package/dist/utils/scope-hierarchy.js +10 -0
- package/dist/utils/service-initializer.js +9 -0
- package/dist/utils/untrusted-content.d.ts +37 -1
- package/dist/utils/untrusted-content.js +61 -6
- package/package.json +5 -1
- package/dist/services/calendar/index.d.ts +0 -27
- package/dist/services/calendar/index.js +0 -146
- package/dist/services/gmail/index.d.ts +0 -39
- package/dist/services/gmail/index.js +0 -337
|
@@ -18,14 +18,19 @@ export const driveTools = [
|
|
|
18
18
|
3. Filter by query:
|
|
19
19
|
{ "email": "user@example.com", "options": { "query": "mimeType='application/pdf'", "pageSize": 20 } }
|
|
20
20
|
|
|
21
|
-
4.
|
|
21
|
+
4. List files in one shared drive (get the ID from list_shared_drives):
|
|
22
|
+
{ "email": "user@example.com", "options": { "driveId": "0ABCdef123" } }
|
|
23
|
+
|
|
24
|
+
5. Get JSON output:
|
|
22
25
|
{ "email": "user@example.com", "return_json": true }
|
|
23
|
-
|
|
26
|
+
|
|
24
27
|
Parameters (all inside "options"):
|
|
25
28
|
- folderId: List contents of specific folder
|
|
26
29
|
- query: Drive API query string
|
|
27
30
|
- pageSize: Number of files to return
|
|
28
|
-
- orderBy: Sort order fields
|
|
31
|
+
- orderBy: Sort order fields
|
|
32
|
+
- driveId: Limit results to one shared drive (corpora is forced to 'drive')
|
|
33
|
+
- corpora: 'user' (default), 'drive', or 'allDrives' (My Drive + every shared drive)`,
|
|
29
34
|
aliases: ['list_files', 'get_files', 'show_files'],
|
|
30
35
|
annotations: { readOnlyHint: true },
|
|
31
36
|
inputSchema: {
|
|
@@ -59,6 +64,15 @@ export const driveTools = [
|
|
|
59
64
|
type: 'array',
|
|
60
65
|
items: { type: 'string' },
|
|
61
66
|
description: 'Fields to include in response'
|
|
67
|
+
},
|
|
68
|
+
driveId: {
|
|
69
|
+
type: 'string',
|
|
70
|
+
description: 'Shared drive ID to list from (see list_shared_drives); corpora is forced to "drive"'
|
|
71
|
+
},
|
|
72
|
+
corpora: {
|
|
73
|
+
type: 'string',
|
|
74
|
+
enum: ['user', 'drive', 'allDrives'],
|
|
75
|
+
description: 'Scope of the listing: "user" (default), "drive" (one shared drive), or "allDrives"'
|
|
62
76
|
}
|
|
63
77
|
}
|
|
64
78
|
},
|
|
@@ -91,14 +105,22 @@ export const driveTools = [
|
|
|
91
105
|
4. Combined search:
|
|
92
106
|
{ "email": "user@example.com", "options": { "fullText": "meeting notes", "mimeType": "application/vnd.google-apps.document" } }
|
|
93
107
|
|
|
94
|
-
5.
|
|
108
|
+
5. Search everywhere, including every shared drive:
|
|
109
|
+
{ "email": "user@example.com", "options": { "fullText": "budget", "corpora": "allDrives" } }
|
|
110
|
+
|
|
111
|
+
6. Search one shared drive (get the ID from list_shared_drives):
|
|
112
|
+
{ "email": "user@example.com", "options": { "fullText": "budget", "driveId": "0ABCdef123" } }
|
|
113
|
+
|
|
114
|
+
7. Get JSON output:
|
|
95
115
|
{ "email": "user@example.com", "options": { "fullText": "report" }, "return_json": true }
|
|
96
|
-
|
|
116
|
+
|
|
97
117
|
Parameters (all inside "options"):
|
|
98
118
|
- fullText: Text to search in file content
|
|
99
119
|
- mimeType: Filter by file type
|
|
100
120
|
- folderId: Search within folder
|
|
101
|
-
- trashed: Include trashed files (default: false)
|
|
121
|
+
- trashed: Include trashed files (default: false)
|
|
122
|
+
- driveId: Limit results to one shared drive (corpora is forced to 'drive')
|
|
123
|
+
- corpora: 'user' (default), 'drive', or 'allDrives' (My Drive + every shared drive)`,
|
|
102
124
|
aliases: ['search_files', 'find_files', 'query_files'],
|
|
103
125
|
annotations: { readOnlyHint: true },
|
|
104
126
|
inputSchema: {
|
|
@@ -134,6 +156,15 @@ export const driveTools = [
|
|
|
134
156
|
pageSize: {
|
|
135
157
|
type: 'number',
|
|
136
158
|
description: 'Maximum number of files to return'
|
|
159
|
+
},
|
|
160
|
+
driveId: {
|
|
161
|
+
type: 'string',
|
|
162
|
+
description: 'Shared drive ID to search in (see list_shared_drives); corpora is forced to "drive"'
|
|
163
|
+
},
|
|
164
|
+
corpora: {
|
|
165
|
+
type: 'string',
|
|
166
|
+
enum: ['user', 'drive', 'allDrives'],
|
|
167
|
+
description: 'Scope of the search: "user" (default), "drive" (one shared drive), or "allDrives"'
|
|
137
168
|
}
|
|
138
169
|
}
|
|
139
170
|
},
|
|
@@ -145,6 +176,53 @@ export const driveTools = [
|
|
|
145
176
|
required: ['options']
|
|
146
177
|
}
|
|
147
178
|
},
|
|
179
|
+
{
|
|
180
|
+
name: 'list_shared_drives',
|
|
181
|
+
category: 'Drive/Files',
|
|
182
|
+
description: `List the shared drives (Team Drives) the account can access.
|
|
183
|
+
|
|
184
|
+
Returns human-readable text by default. Use return_json: true for structured output.
|
|
185
|
+
|
|
186
|
+
Usage examples:
|
|
187
|
+
|
|
188
|
+
1. List shared drives:
|
|
189
|
+
{ "email": "user@example.com" }
|
|
190
|
+
|
|
191
|
+
2. Page through results:
|
|
192
|
+
{ "email": "user@example.com", "page_size": 50, "page_token": "..." }
|
|
193
|
+
|
|
194
|
+
WORKFLOW: Use a returned drive ID as "options.driveId" in list_drive_files or
|
|
195
|
+
search_drive_files to target that shared drive, or set "options.corpora" to
|
|
196
|
+
"allDrives" there to search My Drive and every shared drive at once.
|
|
197
|
+
|
|
198
|
+
NOTE: Files that live in a shared drive have no per-file owner (the drive owns
|
|
199
|
+
them; use lastModifyingUser/createdTime as proxies), and the revision tools do
|
|
200
|
+
not return revisions for shared-drive files. These are Google API limitations.`,
|
|
201
|
+
aliases: ['list_team_drives', 'get_shared_drives', 'show_shared_drives'],
|
|
202
|
+
annotations: { readOnlyHint: true },
|
|
203
|
+
inputSchema: {
|
|
204
|
+
type: 'object',
|
|
205
|
+
properties: {
|
|
206
|
+
email: {
|
|
207
|
+
type: 'string',
|
|
208
|
+
description: 'Email address of the Drive account'
|
|
209
|
+
},
|
|
210
|
+
page_size: {
|
|
211
|
+
type: 'number',
|
|
212
|
+
description: 'Maximum number of shared drives to return (Google caps at 100)'
|
|
213
|
+
},
|
|
214
|
+
page_token: {
|
|
215
|
+
type: 'string',
|
|
216
|
+
description: 'Page token from a previous list_shared_drives response'
|
|
217
|
+
},
|
|
218
|
+
return_json: {
|
|
219
|
+
type: 'boolean',
|
|
220
|
+
description: 'Return structured JSON instead of formatted text (default: false)'
|
|
221
|
+
}
|
|
222
|
+
},
|
|
223
|
+
required: []
|
|
224
|
+
}
|
|
225
|
+
},
|
|
148
226
|
{
|
|
149
227
|
name: 'upload_drive_file',
|
|
150
228
|
category: 'Drive/Files',
|
|
@@ -582,6 +660,54 @@ If you want to "restore" a revision, download it and re-upload as a new version.
|
|
|
582
660
|
},
|
|
583
661
|
required: ['file_id', 'revision_id']
|
|
584
662
|
}
|
|
663
|
+
},
|
|
664
|
+
{
|
|
665
|
+
name: 'query_drive_activity',
|
|
666
|
+
category: 'Drive',
|
|
667
|
+
description: `See what changed on a Drive file, or inside a folder or shared drive — who edited, moved, renamed, created, deleted, or commented, and when (Drive Activity API).
|
|
668
|
+
|
|
669
|
+
Exactly one of item_id or ancestor_id is required:
|
|
670
|
+
- item_id: a single file or folder ID (from list_drive_files / search_drive_files)
|
|
671
|
+
- ancestor_id: a folder or shared-drive ID — reports activity on everything inside it
|
|
672
|
+
|
|
673
|
+
Optional:
|
|
674
|
+
- page_size: max activities to return (default API page, max 100)
|
|
675
|
+
- page_token: from a previous response's nextPageToken, for pagination
|
|
676
|
+
- filter: Drive Activity API filter string (e.g. time range: 'time >= "2026-07-01T00:00:00Z"', or action filtering like 'detail.action_detail_case:EDIT')
|
|
677
|
+
|
|
678
|
+
Example: { "ancestor_id": "0AAbbbbCCCC", "filter": "time >= \"2026-07-25T00:00:00-07:00\"" }`,
|
|
679
|
+
aliases: ['drive_activity', 'list_drive_activity', 'what_changed_in_drive'],
|
|
680
|
+
annotations: { readOnlyHint: true },
|
|
681
|
+
inputSchema: {
|
|
682
|
+
type: 'object',
|
|
683
|
+
properties: {
|
|
684
|
+
email: {
|
|
685
|
+
type: 'string',
|
|
686
|
+
description: 'Email address of the Drive account'
|
|
687
|
+
},
|
|
688
|
+
item_id: {
|
|
689
|
+
type: 'string',
|
|
690
|
+
description: 'ID of a single file or folder to inspect (mutually exclusive with ancestor_id)'
|
|
691
|
+
},
|
|
692
|
+
ancestor_id: {
|
|
693
|
+
type: 'string',
|
|
694
|
+
description: 'ID of a folder or shared drive; reports activity on everything inside it (mutually exclusive with item_id)'
|
|
695
|
+
},
|
|
696
|
+
page_size: {
|
|
697
|
+
type: 'number',
|
|
698
|
+
description: 'Maximum activities to return (capped at 100)'
|
|
699
|
+
},
|
|
700
|
+
page_token: {
|
|
701
|
+
type: 'string',
|
|
702
|
+
description: 'Page token from a previous response (for pagination)'
|
|
703
|
+
},
|
|
704
|
+
filter: {
|
|
705
|
+
type: 'string',
|
|
706
|
+
description: 'Drive Activity API filter string, e.g. time >= "2026-07-01T00:00:00Z" or detail.action_detail_case:EDIT'
|
|
707
|
+
}
|
|
708
|
+
},
|
|
709
|
+
required: []
|
|
710
|
+
}
|
|
585
711
|
}
|
|
586
712
|
];
|
|
587
713
|
//# sourceMappingURL=drive.js.map
|
|
@@ -708,6 +708,100 @@ Attachments are NOT automatically carried over — you must explicitly download
|
|
|
708
708
|
required: []
|
|
709
709
|
}
|
|
710
710
|
},
|
|
711
|
+
{
|
|
712
|
+
name: 'update_workspace_vacation_responder',
|
|
713
|
+
category: 'Gmail/Settings',
|
|
714
|
+
description: `Turn the Gmail out-of-office (vacation) auto-reply on or off, and set its message.
|
|
715
|
+
|
|
716
|
+
Only the fields you provide are changed; the existing subject/body are kept
|
|
717
|
+
when omitted (the Gmail API otherwise replaces the whole resource).
|
|
718
|
+
|
|
719
|
+
Parameters:
|
|
720
|
+
- email: The Gmail account
|
|
721
|
+
- enabled: Required. true to turn the auto-reply on, false to turn it off
|
|
722
|
+
- response_subject: Subject of the auto-reply (e.g. "Out of office")
|
|
723
|
+
- response_body: Plain-text body of the auto-reply. Required when enabling
|
|
724
|
+
and the account has no existing auto-reply message.
|
|
725
|
+
- start_time: When to start replying — epoch milliseconds (number, e.g.
|
|
726
|
+
1786032000000) or a parseable date string (e.g. "2026-08-07"). Defaults to
|
|
727
|
+
now when enabling.
|
|
728
|
+
- end_time: When to stop replying (same formats). Omit to keep the currently
|
|
729
|
+
scheduled end (if any).
|
|
730
|
+
- clear_end_time: Set true to remove the scheduled end (open-ended auto-reply).
|
|
731
|
+
Cannot be combined with end_time.
|
|
732
|
+
- contacts_only: Only auto-reply to people in the user's contacts
|
|
733
|
+
- domain_only: Only auto-reply to people in the user's organization
|
|
734
|
+
|
|
735
|
+
Example: { "enabled": true, "response_subject": "Out of office", "response_body": "I'm away until Monday.", "end_time": "2026-08-10" }`,
|
|
736
|
+
aliases: ['set_vacation_responder', 'update_vacation_responder', 'set_out_of_office'],
|
|
737
|
+
annotations: { readOnlyHint: false },
|
|
738
|
+
inputSchema: {
|
|
739
|
+
type: 'object',
|
|
740
|
+
properties: {
|
|
741
|
+
email: {
|
|
742
|
+
type: 'string',
|
|
743
|
+
description: 'Email address of the Gmail account'
|
|
744
|
+
},
|
|
745
|
+
enabled: {
|
|
746
|
+
type: 'boolean',
|
|
747
|
+
description: 'true to turn the out-of-office auto-reply on, false to turn it off'
|
|
748
|
+
},
|
|
749
|
+
response_subject: {
|
|
750
|
+
type: 'string',
|
|
751
|
+
description: 'Subject of the auto-reply message'
|
|
752
|
+
},
|
|
753
|
+
response_body: {
|
|
754
|
+
type: 'string',
|
|
755
|
+
description: 'Plain-text body of the auto-reply message'
|
|
756
|
+
},
|
|
757
|
+
start_time: {
|
|
758
|
+
type: ['number', 'string'],
|
|
759
|
+
description: 'When to start replying: Unix timestamp in milliseconds (number, e.g. 1786032000000) or a parseable date string (e.g. "2026-08-07"). Defaults to now when enabling.'
|
|
760
|
+
},
|
|
761
|
+
end_time: {
|
|
762
|
+
type: ['number', 'string'],
|
|
763
|
+
description: 'When to stop replying: Unix timestamp in milliseconds (number, e.g. 1786464000000) or a parseable date string (e.g. "2026-08-10"). Omit to keep the currently scheduled end (if any).'
|
|
764
|
+
},
|
|
765
|
+
clear_end_time: {
|
|
766
|
+
type: 'boolean',
|
|
767
|
+
description: 'Set true to remove the scheduled end time (open-ended auto-reply). Cannot be combined with end_time.'
|
|
768
|
+
},
|
|
769
|
+
contacts_only: {
|
|
770
|
+
type: 'boolean',
|
|
771
|
+
description: 'Only auto-reply to people in the user\'s contacts'
|
|
772
|
+
},
|
|
773
|
+
domain_only: {
|
|
774
|
+
type: 'boolean',
|
|
775
|
+
description: 'Only auto-reply to people in the user\'s organization'
|
|
776
|
+
}
|
|
777
|
+
},
|
|
778
|
+
required: ['enabled']
|
|
779
|
+
}
|
|
780
|
+
},
|
|
781
|
+
{
|
|
782
|
+
name: 'list_workspace_send_as',
|
|
783
|
+
category: 'Gmail/Settings',
|
|
784
|
+
description: `List the Gmail account's send-as aliases, including each alias's
|
|
785
|
+
signature, display name, reply-to address, and verification status.
|
|
786
|
+
|
|
787
|
+
Useful for checking which identities an account can send from and what
|
|
788
|
+
signature each uses.
|
|
789
|
+
|
|
790
|
+
Parameters:
|
|
791
|
+
- email: The Gmail account`,
|
|
792
|
+
aliases: ['list_send_as', 'get_signatures', 'list_email_aliases'],
|
|
793
|
+
annotations: { readOnlyHint: true },
|
|
794
|
+
inputSchema: {
|
|
795
|
+
type: 'object',
|
|
796
|
+
properties: {
|
|
797
|
+
email: {
|
|
798
|
+
type: 'string',
|
|
799
|
+
description: 'Email address of the Gmail account'
|
|
800
|
+
}
|
|
801
|
+
},
|
|
802
|
+
required: []
|
|
803
|
+
}
|
|
804
|
+
},
|
|
711
805
|
// --- Individual draft tools (replaced legacy manage_workspace_draft) ---
|
|
712
806
|
{
|
|
713
807
|
name: 'list_workspace_drafts',
|
|
@@ -27,6 +27,8 @@ export { sheetsTools } from "./sheets.js";
|
|
|
27
27
|
export { commentsTools } from "./comments.js";
|
|
28
28
|
export { tasksTools } from "./tasks.js";
|
|
29
29
|
export { formsTools } from "./forms.js";
|
|
30
|
+
export { chatTools } from "./chat.js";
|
|
31
|
+
export { meetTools } from "./meet.js";
|
|
30
32
|
export declare const DESTRUCTIVE_OVERRIDES: Record<string, boolean>;
|
|
31
33
|
export declare const OPEN_WORLD_OVERRIDES: Record<string, boolean>;
|
|
32
34
|
export declare const allTools: ToolMetadata[];
|
|
@@ -29,6 +29,8 @@ export { sheetsTools } from "./sheets.js";
|
|
|
29
29
|
export { commentsTools } from "./comments.js";
|
|
30
30
|
export { tasksTools } from "./tasks.js";
|
|
31
31
|
export { formsTools } from "./forms.js";
|
|
32
|
+
export { chatTools } from "./chat.js";
|
|
33
|
+
export { meetTools } from "./meet.js";
|
|
32
34
|
// Import for combining into allTools
|
|
33
35
|
import { accountTools } from "./account.js";
|
|
34
36
|
import { gmailTools } from "./gmail.js";
|
|
@@ -42,6 +44,8 @@ import { sheetsTools } from "./sheets.js";
|
|
|
42
44
|
import { commentsTools } from "./comments.js";
|
|
43
45
|
import { tasksTools } from "./tasks.js";
|
|
44
46
|
import { formsTools } from "./forms.js";
|
|
47
|
+
import { chatTools } from "./chat.js";
|
|
48
|
+
import { meetTools } from "./meet.js";
|
|
45
49
|
const require = createRequire(import.meta.url);
|
|
46
50
|
export const DESTRUCTIVE_OVERRIDES = require('./destructive-overrides.json');
|
|
47
51
|
export const OPEN_WORLD_OVERRIDES = require('./open-world-overrides.json');
|
|
@@ -70,6 +74,8 @@ const rawTools = [
|
|
|
70
74
|
...slidesTools,
|
|
71
75
|
...sheetsTools,
|
|
72
76
|
...commentsTools,
|
|
77
|
+
...chatTools,
|
|
78
|
+
...meetTools,
|
|
73
79
|
...(TASKS_FORMS_ENABLED ? tasksTools : []),
|
|
74
80
|
...(TASKS_FORMS_ENABLED ? formsTools : []),
|
|
75
81
|
];
|
|
@@ -0,0 +1,149 @@
|
|
|
1
|
+
// Define Meet Tools
|
|
2
|
+
export const meetTools = [
|
|
3
|
+
{
|
|
4
|
+
name: "list_meet_conference_records",
|
|
5
|
+
category: "Meet",
|
|
6
|
+
description: `List past Google Meet conferences (conference records) for meeting prep and recap workflows.
|
|
7
|
+
|
|
8
|
+
IMPORTANT: Before using this tool:
|
|
9
|
+
1. Verify account access with list_workspace_accounts
|
|
10
|
+
2. Confirm account if multiple exist
|
|
11
|
+
3. Check required scopes include Meet read access
|
|
12
|
+
|
|
13
|
+
Parameters:
|
|
14
|
+
- email: The Google account email to list conferences for
|
|
15
|
+
- page_size: Optional maximum number of conference records to return (max: 100)
|
|
16
|
+
- page_token: Optional token for pagination (to get the next page)
|
|
17
|
+
- filter: Optional filter passed through to the Meet API (EBNF syntax).
|
|
18
|
+
Filterable fields: space.name, space.meeting_code, start_time, end_time.
|
|
19
|
+
Example: space.meeting_code = "abc-mnop-xyz"
|
|
20
|
+
Example: start_time>="2026-01-01T00:00:00Z" AND start_time<="2026-02-01T00:00:00Z"
|
|
21
|
+
|
|
22
|
+
Example Usage:
|
|
23
|
+
1. Call list_workspace_accounts to check for valid accounts
|
|
24
|
+
2. Call list_meet_conference_records to find the relevant conference
|
|
25
|
+
3. Use the returned conference record name with list_meet_transcripts
|
|
26
|
+
|
|
27
|
+
Note: Conference records are deleted by Google 30 days after the conference ends.`,
|
|
28
|
+
aliases: ["list_conference_records", "list_meet_conferences", "list_past_meetings"],
|
|
29
|
+
annotations: { readOnlyHint: true },
|
|
30
|
+
inputSchema: {
|
|
31
|
+
type: "object",
|
|
32
|
+
properties: {
|
|
33
|
+
email: {
|
|
34
|
+
type: "string",
|
|
35
|
+
description: "Email address of the Google account"
|
|
36
|
+
},
|
|
37
|
+
page_size: {
|
|
38
|
+
type: "number",
|
|
39
|
+
description: "Maximum number of conference records to return (default: 25, max: 100)"
|
|
40
|
+
},
|
|
41
|
+
page_token: {
|
|
42
|
+
type: "string",
|
|
43
|
+
description: "Page token from a previous response (for pagination)"
|
|
44
|
+
},
|
|
45
|
+
filter: {
|
|
46
|
+
type: "string",
|
|
47
|
+
description: 'Optional filter in EBNF syntax (e.g. space.meeting_code = "abc-mnop-xyz")'
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
name: "list_meet_transcripts",
|
|
54
|
+
category: "Meet",
|
|
55
|
+
description: `List the transcripts of a Google Meet conference record.
|
|
56
|
+
|
|
57
|
+
Use this after list_meet_conference_records to find the transcript(s) of a meeting.
|
|
58
|
+
Each transcript represents one transcription session of the conference.
|
|
59
|
+
|
|
60
|
+
Parameters:
|
|
61
|
+
- email: The Google account email
|
|
62
|
+
- conference_record: The conference record — either the full resource name
|
|
63
|
+
("conferenceRecords/abc-123") or just the ID ("abc-123")
|
|
64
|
+
- page_size: Optional maximum number of transcripts to return (max: 100)
|
|
65
|
+
- page_token: Optional token for pagination
|
|
66
|
+
|
|
67
|
+
Example usage:
|
|
68
|
+
- { "conference_record": "abc-123" }
|
|
69
|
+
- { "conference_record": "conferenceRecords/abc-123", "page_size": 10 }`,
|
|
70
|
+
aliases: ["list_transcripts", "get_meet_transcripts"],
|
|
71
|
+
annotations: { readOnlyHint: true },
|
|
72
|
+
inputSchema: {
|
|
73
|
+
type: "object",
|
|
74
|
+
properties: {
|
|
75
|
+
email: {
|
|
76
|
+
type: "string",
|
|
77
|
+
description: "Email address of the Google account"
|
|
78
|
+
},
|
|
79
|
+
conference_record: {
|
|
80
|
+
type: "string",
|
|
81
|
+
description: 'Conference record resource name ("conferenceRecords/abc-123") or bare ID ("abc-123")'
|
|
82
|
+
},
|
|
83
|
+
page_size: {
|
|
84
|
+
type: "number",
|
|
85
|
+
description: "Maximum number of transcripts to return (default: 10, max: 100)"
|
|
86
|
+
},
|
|
87
|
+
page_token: {
|
|
88
|
+
type: "string",
|
|
89
|
+
description: "Page token from a previous response (for pagination)"
|
|
90
|
+
}
|
|
91
|
+
},
|
|
92
|
+
required: ["conference_record"]
|
|
93
|
+
}
|
|
94
|
+
},
|
|
95
|
+
{
|
|
96
|
+
name: "get_meet_transcript_entries",
|
|
97
|
+
category: "Meet",
|
|
98
|
+
description: `List the entries (speaker + text) of one Google Meet transcript, paginated.
|
|
99
|
+
|
|
100
|
+
Use this after list_meet_transcripts to read what was said in a meeting —
|
|
101
|
+
for meeting recaps, action-item extraction, and prep for follow-up meetings.
|
|
102
|
+
|
|
103
|
+
Parameters:
|
|
104
|
+
- email: The Google account email
|
|
105
|
+
- conference_record: The conference record — either the full resource name
|
|
106
|
+
("conferenceRecords/abc-123") or just the ID ("abc-123")
|
|
107
|
+
- transcript: The transcript — a bare ID ("def-456"), a segment
|
|
108
|
+
("transcripts/def-456"), or a full resource name
|
|
109
|
+
("conferenceRecords/abc-123/transcripts/def-456")
|
|
110
|
+
- page_size: Optional maximum number of entries to return (max: 100)
|
|
111
|
+
- page_token: Optional token for pagination
|
|
112
|
+
|
|
113
|
+
Example usage:
|
|
114
|
+
- { "conference_record": "abc-123", "transcript": "def-456" }
|
|
115
|
+
- { "conference_record": "abc-123", "transcript": "def-456", "page_size": 100 }
|
|
116
|
+
|
|
117
|
+
Note: Transcript entries are returned in chronological order. Each entry
|
|
118
|
+
includes the speaking participant's resource name and the transcribed text.`,
|
|
119
|
+
aliases: ["get_transcript_entries", "read_meet_transcript"],
|
|
120
|
+
annotations: { readOnlyHint: true },
|
|
121
|
+
inputSchema: {
|
|
122
|
+
type: "object",
|
|
123
|
+
properties: {
|
|
124
|
+
email: {
|
|
125
|
+
type: "string",
|
|
126
|
+
description: "Email address of the Google account"
|
|
127
|
+
},
|
|
128
|
+
conference_record: {
|
|
129
|
+
type: "string",
|
|
130
|
+
description: 'Conference record resource name ("conferenceRecords/abc-123") or bare ID ("abc-123")'
|
|
131
|
+
},
|
|
132
|
+
transcript: {
|
|
133
|
+
type: "string",
|
|
134
|
+
description: 'Transcript ID ("def-456"), segment ("transcripts/def-456"), or full resource name'
|
|
135
|
+
},
|
|
136
|
+
page_size: {
|
|
137
|
+
type: "number",
|
|
138
|
+
description: "Maximum number of entries to return (default: 10, max: 100)"
|
|
139
|
+
},
|
|
140
|
+
page_token: {
|
|
141
|
+
type: "string",
|
|
142
|
+
description: "Page token from a previous response (for pagination)"
|
|
143
|
+
}
|
|
144
|
+
},
|
|
145
|
+
required: ["conference_record", "transcript"]
|
|
146
|
+
}
|
|
147
|
+
}
|
|
148
|
+
];
|
|
149
|
+
//# sourceMappingURL=meet.js.map
|
|
@@ -16,6 +16,7 @@
|
|
|
16
16
|
"create_task": true,
|
|
17
17
|
"create_workspace_calendar_event": true,
|
|
18
18
|
"create_workspace_comment": true,
|
|
19
|
+
"create_workspace_contact": true,
|
|
19
20
|
"create_workspace_document": true,
|
|
20
21
|
"create_workspace_draft": true,
|
|
21
22
|
"create_workspace_label": true,
|
|
@@ -44,6 +45,7 @@
|
|
|
44
45
|
"get_current_time": true,
|
|
45
46
|
"get_form": true,
|
|
46
47
|
"get_form_response": true,
|
|
48
|
+
"get_meet_transcript_entries": true,
|
|
47
49
|
"get_workspace_calendar_event": true,
|
|
48
50
|
"get_workspace_contacts": true,
|
|
49
51
|
"get_workspace_draft": true,
|
|
@@ -52,10 +54,15 @@
|
|
|
52
54
|
"get_workspace_label": true,
|
|
53
55
|
"get_workspace_slide": true,
|
|
54
56
|
"get_workspace_slide_thumbnail": true,
|
|
57
|
+
"list_chat_messages": true,
|
|
58
|
+
"list_chat_spaces": true,
|
|
55
59
|
"list_drive_files": true,
|
|
56
60
|
"list_file_revisions": true,
|
|
57
61
|
"list_form_responses": true,
|
|
58
62
|
"list_forms": true,
|
|
63
|
+
"list_meet_conference_records": true,
|
|
64
|
+
"list_meet_transcripts": true,
|
|
65
|
+
"list_shared_drives": true,
|
|
59
66
|
"list_task_lists": true,
|
|
60
67
|
"list_tasks": true,
|
|
61
68
|
"list_workspace_accounts": false,
|
|
@@ -67,6 +74,7 @@
|
|
|
67
74
|
"list_workspace_label_filters": true,
|
|
68
75
|
"list_workspace_labels": true,
|
|
69
76
|
"list_workspace_presentation_slides": true,
|
|
77
|
+
"list_workspace_send_as": true,
|
|
70
78
|
"list_workspace_spreadsheet_sheets": true,
|
|
71
79
|
"manage_workspace_attachment": true,
|
|
72
80
|
"manage_workspace_calendar_event": true,
|
|
@@ -77,6 +85,7 @@
|
|
|
77
85
|
"mark_workspace_email_read": true,
|
|
78
86
|
"mark_workspace_email_unread": true,
|
|
79
87
|
"move_drive_file": true,
|
|
88
|
+
"query_drive_activity": true,
|
|
80
89
|
"read_workspace_document": true,
|
|
81
90
|
"read_workspace_presentation": true,
|
|
82
91
|
"read_workspace_spreadsheet": true,
|
|
@@ -89,6 +98,7 @@
|
|
|
89
98
|
"search_drive_files": true,
|
|
90
99
|
"search_workspace_contacts": true,
|
|
91
100
|
"search_workspace_emails": true,
|
|
101
|
+
"send_chat_message": true,
|
|
92
102
|
"send_workspace_draft": true,
|
|
93
103
|
"send_workspace_email": true,
|
|
94
104
|
"trash_drive_file": true,
|
|
@@ -97,10 +107,12 @@
|
|
|
97
107
|
"untrash_workspace_email": true,
|
|
98
108
|
"update_drive_permissions": true,
|
|
99
109
|
"update_task": true,
|
|
110
|
+
"update_workspace_contact": true,
|
|
100
111
|
"update_workspace_draft": true,
|
|
101
112
|
"update_workspace_label": true,
|
|
102
113
|
"update_workspace_label_filter": true,
|
|
103
114
|
"update_workspace_spreadsheet_values": true,
|
|
115
|
+
"update_workspace_vacation_responder": true,
|
|
104
116
|
"upload_drive_file": true,
|
|
105
117
|
"upload_workspace_attachment": true
|
|
106
118
|
}
|
|
@@ -46,6 +46,16 @@ interface DriveDeleteArgs {
|
|
|
46
46
|
}
|
|
47
47
|
export declare function handleListDriveFiles(args: DriveFileListArgs & Record<string, unknown>): Promise<McpToolResponse | string | object>;
|
|
48
48
|
export declare function handleSearchDriveFiles(args: DriveSearchArgs & Record<string, unknown>): Promise<McpToolResponse | string | object>;
|
|
49
|
+
interface ListSharedDrivesArgs {
|
|
50
|
+
email?: string;
|
|
51
|
+
page_size?: number;
|
|
52
|
+
pageSize?: number;
|
|
53
|
+
page_token?: string;
|
|
54
|
+
pageToken?: string;
|
|
55
|
+
return_json?: boolean;
|
|
56
|
+
returnJson?: boolean;
|
|
57
|
+
}
|
|
58
|
+
export declare function handleListSharedDrives(args: ListSharedDrivesArgs & Record<string, unknown>): Promise<McpToolResponse | string | object>;
|
|
49
59
|
export declare function handleUploadDriveFile(args: DriveUploadArgs): Promise<McpToolResponse>;
|
|
50
60
|
export declare function handleDownloadDriveFile(args: DriveDownloadArgs): Promise<string>;
|
|
51
61
|
export declare function handleCreateDriveFolder(args: DriveFolderArgs): Promise<McpToolResponse>;
|
|
@@ -91,5 +101,22 @@ interface DriveDownloadRevisionArgs {
|
|
|
91
101
|
revisionId?: string;
|
|
92
102
|
}
|
|
93
103
|
export declare function handleDownloadFileRevision(args: DriveDownloadRevisionArgs): Promise<string>;
|
|
104
|
+
export interface QueryDriveActivityArgs {
|
|
105
|
+
email?: string;
|
|
106
|
+
item_id?: string;
|
|
107
|
+
itemId?: string;
|
|
108
|
+
ancestor_id?: string;
|
|
109
|
+
ancestorId?: string;
|
|
110
|
+
page_size?: number;
|
|
111
|
+
pageSize?: number;
|
|
112
|
+
page_token?: string;
|
|
113
|
+
pageToken?: string;
|
|
114
|
+
filter?: string;
|
|
115
|
+
}
|
|
116
|
+
/**
|
|
117
|
+
* Query the Drive Activity API: what changed on a file, or inside a folder /
|
|
118
|
+
* shared drive, and who did it.
|
|
119
|
+
*/
|
|
120
|
+
export declare function handleQueryDriveActivity(args: QueryDriveActivityArgs): Promise<unknown>;
|
|
94
121
|
export {};
|
|
95
122
|
//# sourceMappingURL=drive-handlers.d.ts.map
|