bn-google-workspace-mcp-server 0.0.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.
Files changed (75) hide show
  1. package/README.md +718 -0
  2. package/dist/debug-middleware.d.ts +12 -0
  3. package/dist/debug-middleware.d.ts.map +1 -0
  4. package/dist/debug-middleware.js +36 -0
  5. package/dist/debug-middleware.js.map +1 -0
  6. package/dist/google-api-client.d.ts +46 -0
  7. package/dist/google-api-client.d.ts.map +1 -0
  8. package/dist/google-api-client.js +76 -0
  9. package/dist/google-api-client.js.map +1 -0
  10. package/dist/helpers.d.ts +40 -0
  11. package/dist/helpers.d.ts.map +1 -0
  12. package/dist/helpers.js +171 -0
  13. package/dist/helpers.js.map +1 -0
  14. package/dist/index.d.ts +9 -0
  15. package/dist/index.d.ts.map +1 -0
  16. package/dist/index.js +166 -0
  17. package/dist/index.js.map +1 -0
  18. package/dist/schemas.d.ts +303 -0
  19. package/dist/schemas.d.ts.map +1 -0
  20. package/dist/schemas.js +611 -0
  21. package/dist/schemas.js.map +1 -0
  22. package/dist/tool-loader.d.ts +35 -0
  23. package/dist/tool-loader.d.ts.map +1 -0
  24. package/dist/tool-loader.js +121 -0
  25. package/dist/tool-loader.js.map +1 -0
  26. package/dist/tool-registry.d.ts +44 -0
  27. package/dist/tool-registry.d.ts.map +1 -0
  28. package/dist/tool-registry.js +56 -0
  29. package/dist/tool-registry.js.map +1 -0
  30. package/dist/tools/calendar.d.ts +44 -0
  31. package/dist/tools/calendar.d.ts.map +1 -0
  32. package/dist/tools/calendar.js +76 -0
  33. package/dist/tools/calendar.js.map +1 -0
  34. package/dist/tools/chat.d.ts +29 -0
  35. package/dist/tools/chat.d.ts.map +1 -0
  36. package/dist/tools/chat.js +42 -0
  37. package/dist/tools/chat.js.map +1 -0
  38. package/dist/tools/docs.d.ts +29 -0
  39. package/dist/tools/docs.d.ts.map +1 -0
  40. package/dist/tools/docs.js +63 -0
  41. package/dist/tools/docs.js.map +1 -0
  42. package/dist/tools/drive.d.ts +45 -0
  43. package/dist/tools/drive.d.ts.map +1 -0
  44. package/dist/tools/drive.js +135 -0
  45. package/dist/tools/drive.js.map +1 -0
  46. package/dist/tools/forms.d.ts +30 -0
  47. package/dist/tools/forms.d.ts.map +1 -0
  48. package/dist/tools/forms.js +46 -0
  49. package/dist/tools/forms.js.map +1 -0
  50. package/dist/tools/gmail.d.ts +55 -0
  51. package/dist/tools/gmail.d.ts.map +1 -0
  52. package/dist/tools/gmail.js +112 -0
  53. package/dist/tools/gmail.js.map +1 -0
  54. package/dist/tools/index.d.ts +13 -0
  55. package/dist/tools/index.d.ts.map +1 -0
  56. package/dist/tools/index.js +22 -0
  57. package/dist/tools/index.js.map +1 -0
  58. package/dist/tools/sheets.d.ts +40 -0
  59. package/dist/tools/sheets.d.ts.map +1 -0
  60. package/dist/tools/sheets.js +64 -0
  61. package/dist/tools/sheets.js.map +1 -0
  62. package/dist/tools/slides.d.ts +32 -0
  63. package/dist/tools/slides.d.ts.map +1 -0
  64. package/dist/tools/slides.js +46 -0
  65. package/dist/tools/slides.js.map +1 -0
  66. package/dist/tools/tasks.d.ts +43 -0
  67. package/dist/tools/tasks.d.ts.map +1 -0
  68. package/dist/tools/tasks.js +69 -0
  69. package/dist/tools/tasks.js.map +1 -0
  70. package/dist/types.d.ts +110 -0
  71. package/dist/types.d.ts.map +1 -0
  72. package/dist/types.js +2 -0
  73. package/dist/types.js.map +1 -0
  74. package/package.json +54 -0
  75. package/tools.json +379 -0
@@ -0,0 +1,303 @@
1
+ /**
2
+ * Zod schemas for all Google Workspace MCP tools
3
+ * Each schema includes comprehensive .describe() annotations for LLM understanding
4
+ *
5
+ * These descriptions are designed to help LLMs understand:
6
+ * - When to use each tool
7
+ * - What parameters are available and their exact syntax
8
+ * - Examples of common use cases
9
+ * - Relationships between tools (e.g., get IDs from list tools to use in detail tools)
10
+ */
11
+ import { z } from "zod";
12
+ /**
13
+ * Schema for gmail_list_labels tool
14
+ * Lists all Gmail labels in the user's mailbox
15
+ */
16
+ export declare const GmailListLabelsSchema: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
17
+ /**
18
+ * Schema for gmail_search_messages tool
19
+ * Search Gmail messages using Gmail search operators
20
+ */
21
+ export declare const GmailSearchMessagesSchema: z.ZodObject<{
22
+ query: z.ZodOptional<z.ZodString>;
23
+ maxResults: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
24
+ }, "strip", z.ZodTypeAny, {
25
+ maxResults: number;
26
+ query?: string | undefined;
27
+ }, {
28
+ query?: string | undefined;
29
+ maxResults?: number | undefined;
30
+ }>;
31
+ /**
32
+ * Schema for gmail_get_message_content tool
33
+ * Get detailed information about a specific Gmail message
34
+ */
35
+ export declare const GmailGetMessageContentSchema: z.ZodObject<{
36
+ messageId: z.ZodString;
37
+ }, "strip", z.ZodTypeAny, {
38
+ messageId: string;
39
+ }, {
40
+ messageId: string;
41
+ }>;
42
+ /**
43
+ * Schema for gmail_send_message tool
44
+ * Send an email via Gmail
45
+ */
46
+ export declare const GmailSendMessageSchema: z.ZodObject<{
47
+ to: z.ZodString;
48
+ subject: z.ZodString;
49
+ body: z.ZodString;
50
+ }, "strip", z.ZodTypeAny, {
51
+ to: string;
52
+ subject: string;
53
+ body: string;
54
+ }, {
55
+ to: string;
56
+ subject: string;
57
+ body: string;
58
+ }>;
59
+ /**
60
+ * Schema for drive_list_files tool
61
+ * List Google Drive files
62
+ */
63
+ export declare const DriveListFilesSchema: z.ZodObject<{
64
+ query: z.ZodOptional<z.ZodString>;
65
+ maxResults: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
66
+ }, "strip", z.ZodTypeAny, {
67
+ maxResults: number;
68
+ query?: string | undefined;
69
+ }, {
70
+ query?: string | undefined;
71
+ maxResults?: number | undefined;
72
+ }>;
73
+ /**
74
+ * Schema for drive_get_file_content tool
75
+ * Get Google Drive file content
76
+ */
77
+ export declare const DriveGetFileContentSchema: z.ZodObject<{
78
+ fileId: z.ZodString;
79
+ }, "strip", z.ZodTypeAny, {
80
+ fileId: string;
81
+ }, {
82
+ fileId: string;
83
+ }>;
84
+ /**
85
+ * Schema for drive_create_file tool
86
+ * Create a new file in Google Drive
87
+ */
88
+ export declare const DriveCreateFileSchema: z.ZodObject<{
89
+ name: z.ZodString;
90
+ content: z.ZodString;
91
+ parentFolderId: z.ZodOptional<z.ZodString>;
92
+ }, "strip", z.ZodTypeAny, {
93
+ name: string;
94
+ content: string;
95
+ parentFolderId?: string | undefined;
96
+ }, {
97
+ name: string;
98
+ content: string;
99
+ parentFolderId?: string | undefined;
100
+ }>;
101
+ /**
102
+ * Schema for calendar_list_events tool
103
+ * List Google Calendar events
104
+ */
105
+ export declare const CalendarListEventsSchema: z.ZodObject<{
106
+ maxResults: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
107
+ calendarId: z.ZodDefault<z.ZodOptional<z.ZodString>>;
108
+ }, "strip", z.ZodTypeAny, {
109
+ maxResults: number;
110
+ calendarId: string;
111
+ }, {
112
+ maxResults?: number | undefined;
113
+ calendarId?: string | undefined;
114
+ }>;
115
+ /**
116
+ * Schema for calendar_list_calendars tool
117
+ * List all calendars accessible to the user
118
+ */
119
+ export declare const CalendarListCalendarsSchema: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
120
+ /**
121
+ * Schema for calendar_create_event tool
122
+ * Create a new calendar event
123
+ */
124
+ export declare const CalendarCreateEventSchema: z.ZodObject<{
125
+ summary: z.ZodString;
126
+ startTime: z.ZodString;
127
+ endTime: z.ZodString;
128
+ description: z.ZodOptional<z.ZodString>;
129
+ calendarId: z.ZodDefault<z.ZodOptional<z.ZodString>>;
130
+ }, "strip", z.ZodTypeAny, {
131
+ calendarId: string;
132
+ summary: string;
133
+ startTime: string;
134
+ endTime: string;
135
+ description?: string | undefined;
136
+ }, {
137
+ summary: string;
138
+ startTime: string;
139
+ endTime: string;
140
+ calendarId?: string | undefined;
141
+ description?: string | undefined;
142
+ }>;
143
+ /**
144
+ * Schema for docs_get_document tool
145
+ * Get Google Docs document content
146
+ */
147
+ export declare const DocsGetDocumentSchema: z.ZodObject<{
148
+ documentId: z.ZodString;
149
+ }, "strip", z.ZodTypeAny, {
150
+ documentId: string;
151
+ }, {
152
+ documentId: string;
153
+ }>;
154
+ /**
155
+ * Schema for docs_create_document tool
156
+ * Create a new Google Docs document
157
+ */
158
+ export declare const DocsCreateDocumentSchema: z.ZodObject<{
159
+ title: z.ZodString;
160
+ content: z.ZodOptional<z.ZodString>;
161
+ }, "strip", z.ZodTypeAny, {
162
+ title: string;
163
+ content?: string | undefined;
164
+ }, {
165
+ title: string;
166
+ content?: string | undefined;
167
+ }>;
168
+ /**
169
+ * Schema for sheets_get_spreadsheet tool
170
+ * Get Google Sheets spreadsheet information
171
+ */
172
+ export declare const SheetsGetSpreadsheetSchema: z.ZodObject<{
173
+ spreadsheetId: z.ZodString;
174
+ }, "strip", z.ZodTypeAny, {
175
+ spreadsheetId: string;
176
+ }, {
177
+ spreadsheetId: string;
178
+ }>;
179
+ /**
180
+ * Schema for sheets_read_values tool
181
+ * Read values from a Google Sheets range
182
+ */
183
+ export declare const SheetsReadValuesSchema: z.ZodObject<{
184
+ spreadsheetId: z.ZodString;
185
+ range: z.ZodString;
186
+ }, "strip", z.ZodTypeAny, {
187
+ spreadsheetId: string;
188
+ range: string;
189
+ }, {
190
+ spreadsheetId: string;
191
+ range: string;
192
+ }>;
193
+ /**
194
+ * Schema for sheets_create_spreadsheet tool
195
+ * Create a new Google Sheets spreadsheet
196
+ */
197
+ export declare const SheetsCreateSpreadsheetSchema: z.ZodObject<{
198
+ title: z.ZodString;
199
+ }, "strip", z.ZodTypeAny, {
200
+ title: string;
201
+ }, {
202
+ title: string;
203
+ }>;
204
+ /**
205
+ * Schema for slides_get_presentation tool
206
+ * Get Google Slides presentation information
207
+ */
208
+ export declare const SlidesGetPresentationSchema: z.ZodObject<{
209
+ presentationId: z.ZodString;
210
+ }, "strip", z.ZodTypeAny, {
211
+ presentationId: string;
212
+ }, {
213
+ presentationId: string;
214
+ }>;
215
+ /**
216
+ * Schema for slides_create_presentation tool
217
+ * Create a new Google Slides presentation
218
+ */
219
+ export declare const SlidesCreatePresentationSchema: z.ZodObject<{
220
+ title: z.ZodString;
221
+ }, "strip", z.ZodTypeAny, {
222
+ title: string;
223
+ }, {
224
+ title: string;
225
+ }>;
226
+ /**
227
+ * Schema for tasks_list_task_lists tool
228
+ * List all Google Tasks task lists
229
+ */
230
+ export declare const TasksListTaskListsSchema: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
231
+ /**
232
+ * Schema for tasks_list_tasks tool
233
+ * List tasks from a specific task list
234
+ */
235
+ export declare const TasksListTasksSchema: z.ZodObject<{
236
+ taskListId: z.ZodString;
237
+ }, "strip", z.ZodTypeAny, {
238
+ taskListId: string;
239
+ }, {
240
+ taskListId: string;
241
+ }>;
242
+ /**
243
+ * Schema for tasks_create_task tool
244
+ * Create a new task in a task list
245
+ */
246
+ export declare const TasksCreateTaskSchema: z.ZodObject<{
247
+ taskListId: z.ZodString;
248
+ title: z.ZodString;
249
+ notes: z.ZodOptional<z.ZodString>;
250
+ due: z.ZodOptional<z.ZodString>;
251
+ }, "strip", z.ZodTypeAny, {
252
+ title: string;
253
+ taskListId: string;
254
+ notes?: string | undefined;
255
+ due?: string | undefined;
256
+ }, {
257
+ title: string;
258
+ taskListId: string;
259
+ notes?: string | undefined;
260
+ due?: string | undefined;
261
+ }>;
262
+ /**
263
+ * Schema for forms_create_form tool
264
+ * Create a new Google Form
265
+ */
266
+ export declare const FormsCreateFormSchema: z.ZodObject<{
267
+ title: z.ZodString;
268
+ }, "strip", z.ZodTypeAny, {
269
+ title: string;
270
+ }, {
271
+ title: string;
272
+ }>;
273
+ /**
274
+ * Schema for forms_get_form tool
275
+ * Get Google Form information
276
+ */
277
+ export declare const FormsGetFormSchema: z.ZodObject<{
278
+ formId: z.ZodString;
279
+ }, "strip", z.ZodTypeAny, {
280
+ formId: string;
281
+ }, {
282
+ formId: string;
283
+ }>;
284
+ /**
285
+ * Schema for chat_list_spaces tool
286
+ * List Google Chat spaces
287
+ */
288
+ export declare const ChatListSpacesSchema: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
289
+ /**
290
+ * Schema for chat_send_message tool
291
+ * Send a message to a Google Chat space
292
+ */
293
+ export declare const ChatSendMessageSchema: z.ZodObject<{
294
+ spaceName: z.ZodString;
295
+ text: z.ZodString;
296
+ }, "strip", z.ZodTypeAny, {
297
+ spaceName: string;
298
+ text: string;
299
+ }, {
300
+ spaceName: string;
301
+ text: string;
302
+ }>;
303
+ //# sourceMappingURL=schemas.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"schemas.d.ts","sourceRoot":"","sources":["../src/schemas.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB;;;GAGG;AACH,eAAO,MAAM,qBAAqB,gDAEjC,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,yBAAyB;;;;;;;;;EA8FpC,CAAC;AAEH;;;GAGG;AACH,eAAO,MAAM,4BAA4B;;;;;;EAMvC,CAAC;AAEH;;;GAGG;AACH,eAAO,MAAM,sBAAsB;;;;;;;;;;;;EAgBjC,CAAC;AAMH;;;GAGG;AACH,eAAO,MAAM,oBAAoB;;;;;;;;;EAyE/B,CAAC;AAEH;;;GAGG;AACH,eAAO,MAAM,yBAAyB;;;;;;EAwBpC,CAAC;AAEH;;;GAGG;AACH,eAAO,MAAM,qBAAqB;;;;;;;;;;;;EAiBhC,CAAC;AAMH;;;GAGG;AACH,eAAO,MAAM,wBAAwB;;;;;;;;;EA8BnC,CAAC;AAEH;;;GAGG;AACH,eAAO,MAAM,2BAA2B,gDAEvC,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;;;;;;EAwDpC,CAAC;AAMH;;;GAGG;AACH,eAAO,MAAM,qBAAqB;;;;;;EAehC,CAAC;AAEH;;;GAGG;AACH,eAAO,MAAM,wBAAwB;;;;;;;;;EAYnC,CAAC;AAMH;;;GAGG;AACH,eAAO,MAAM,0BAA0B;;;;;;EAerC,CAAC;AAEH;;;GAGG;AACH,eAAO,MAAM,sBAAsB;;;;;;;;;EA0CjC,CAAC;AAEH;;;GAGG;AACH,eAAO,MAAM,6BAA6B;;;;;;EAMxC,CAAC;AAMH;;;GAGG;AACH,eAAO,MAAM,2BAA2B;;;;;;EAetC,CAAC;AAEH;;;GAGG;AACH,eAAO,MAAM,8BAA8B;;;;;;EAMzC,CAAC;AAMH;;;GAGG;AACH,eAAO,MAAM,wBAAwB,gDAEpC,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,oBAAoB;;;;;;EAW/B,CAAC;AAEH;;;GAGG;AACH,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;EA+BhC,CAAC;AAMH;;;GAGG;AACH,eAAO,MAAM,qBAAqB;;;;;;EAMhC,CAAC;AAEH;;;GAGG;AACH,eAAO,MAAM,kBAAkB;;;;;;EAgB7B,CAAC;AAMH;;;GAGG;AACH,eAAO,MAAM,oBAAoB,gDAEhC,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,qBAAqB;;;;;;;;;EAmChC,CAAC"}