@jezweb/mcp-integrations 0.1.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/README.md +78 -0
- package/dist/google/calendar/index.d.ts +29 -0
- package/dist/google/calendar/index.d.ts.map +1 -0
- package/dist/google/calendar/index.js +33 -0
- package/dist/google/calendar/index.js.map +1 -0
- package/dist/google/calendar/prompts.d.ts +65 -0
- package/dist/google/calendar/prompts.d.ts.map +1 -0
- package/dist/google/calendar/prompts.js +88 -0
- package/dist/google/calendar/prompts.js.map +1 -0
- package/dist/google/calendar/resources.d.ts +9 -0
- package/dist/google/calendar/resources.d.ts.map +1 -0
- package/dist/google/calendar/resources.js +56 -0
- package/dist/google/calendar/resources.js.map +1 -0
- package/dist/google/calendar/tools/calendars.d.ts +36 -0
- package/dist/google/calendar/tools/calendars.d.ts.map +1 -0
- package/dist/google/calendar/tools/calendars.js +77 -0
- package/dist/google/calendar/tools/calendars.js.map +1 -0
- package/dist/google/calendar/tools/events.d.ts +118 -0
- package/dist/google/calendar/tools/events.d.ts.map +1 -0
- package/dist/google/calendar/tools/events.js +281 -0
- package/dist/google/calendar/tools/events.js.map +1 -0
- package/dist/google/calendar/tools/index.d.ts +280 -0
- package/dist/google/calendar/tools/index.d.ts.map +1 -0
- package/dist/google/calendar/tools/index.js +24 -0
- package/dist/google/calendar/tools/index.js.map +1 -0
- package/dist/google/index.d.ts +13 -0
- package/dist/google/index.d.ts.map +1 -0
- package/dist/google/index.js +13 -0
- package/dist/google/index.js.map +1 -0
- package/dist/helpers.d.ts +84 -0
- package/dist/helpers.d.ts.map +1 -0
- package/dist/helpers.js +111 -0
- package/dist/helpers.js.map +1 -0
- package/dist/index.d.ts +21 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +21 -0
- package/dist/index.js.map +1 -0
- package/dist/types.d.ts +179 -0
- package/dist/types.d.ts.map +1 -0
- package/dist/types.js +2 -0
- package/dist/types.js.map +1 -0
- package/package.json +70 -0
|
@@ -0,0 +1,281 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Google Calendar Event Tools
|
|
3
|
+
*/
|
|
4
|
+
import { z } from 'zod';
|
|
5
|
+
import { defineTool, jsonResult, errorResult } from '../../../helpers';
|
|
6
|
+
const CALENDAR_API = 'https://www.googleapis.com/calendar/v3';
|
|
7
|
+
/**
|
|
8
|
+
* Format datetime for API (handle YYYY-MM-DD or RFC3339)
|
|
9
|
+
*/
|
|
10
|
+
function formatDateTime(input) {
|
|
11
|
+
if (input.includes('T'))
|
|
12
|
+
return input;
|
|
13
|
+
return `${input}T00:00:00Z`;
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* List events from Google Calendar
|
|
17
|
+
*/
|
|
18
|
+
export const listEvents = defineTool({
|
|
19
|
+
name: 'google_calendar_list_events',
|
|
20
|
+
description: 'List upcoming events from Google Calendar. Returns event titles, times, locations, and attendees.',
|
|
21
|
+
category: 'calendar',
|
|
22
|
+
tags: ['google', 'calendar', 'events', 'schedule', 'meetings', 'read', 'list'],
|
|
23
|
+
alwaysVisible: true,
|
|
24
|
+
parameters: z.object({
|
|
25
|
+
calendarId: z
|
|
26
|
+
.string()
|
|
27
|
+
.default('primary')
|
|
28
|
+
.describe('Calendar ID (default: primary)'),
|
|
29
|
+
maxResults: z
|
|
30
|
+
.number()
|
|
31
|
+
.min(1)
|
|
32
|
+
.max(100)
|
|
33
|
+
.default(10)
|
|
34
|
+
.describe('Maximum events to return (1-100)'),
|
|
35
|
+
timeMin: z
|
|
36
|
+
.string()
|
|
37
|
+
.optional()
|
|
38
|
+
.describe('Start time filter (YYYY-MM-DD or RFC3339)'),
|
|
39
|
+
timeMax: z
|
|
40
|
+
.string()
|
|
41
|
+
.optional()
|
|
42
|
+
.describe('End time filter (YYYY-MM-DD or RFC3339)'),
|
|
43
|
+
query: z.string().optional().describe('Free text search query'),
|
|
44
|
+
}),
|
|
45
|
+
handler: async (params, ctx) => {
|
|
46
|
+
const url = new URL(`${CALENDAR_API}/calendars/${encodeURIComponent(params.calendarId)}/events`);
|
|
47
|
+
url.searchParams.set('maxResults', String(params.maxResults));
|
|
48
|
+
url.searchParams.set('singleEvents', 'true');
|
|
49
|
+
url.searchParams.set('orderBy', 'startTime');
|
|
50
|
+
url.searchParams.set('timeMin', params.timeMin ? formatDateTime(params.timeMin) : new Date().toISOString());
|
|
51
|
+
if (params.timeMax) {
|
|
52
|
+
url.searchParams.set('timeMax', formatDateTime(params.timeMax));
|
|
53
|
+
}
|
|
54
|
+
if (params.query) {
|
|
55
|
+
url.searchParams.set('q', params.query);
|
|
56
|
+
}
|
|
57
|
+
const response = await ctx.authorizedFetch(url.toString());
|
|
58
|
+
if (!response.ok) {
|
|
59
|
+
const error = await response.text();
|
|
60
|
+
return errorResult(`Calendar API error: ${response.status} - ${error}`);
|
|
61
|
+
}
|
|
62
|
+
const data = (await response.json());
|
|
63
|
+
const events = data.items || [];
|
|
64
|
+
if (events.length === 0) {
|
|
65
|
+
return { content: [{ type: 'text', text: 'No events found.' }] };
|
|
66
|
+
}
|
|
67
|
+
const formatted = events.map((e, i) => ({
|
|
68
|
+
index: i + 1,
|
|
69
|
+
title: e.summary || '(No title)',
|
|
70
|
+
start: e.start?.dateTime || e.start?.date,
|
|
71
|
+
end: e.end?.dateTime || e.end?.date,
|
|
72
|
+
location: e.location,
|
|
73
|
+
attendees: e.attendees?.map((a) => a.email),
|
|
74
|
+
link: e.htmlLink,
|
|
75
|
+
}));
|
|
76
|
+
return jsonResult(formatted);
|
|
77
|
+
},
|
|
78
|
+
});
|
|
79
|
+
/**
|
|
80
|
+
* Create a new calendar event
|
|
81
|
+
*/
|
|
82
|
+
export const createEvent = defineTool({
|
|
83
|
+
name: 'google_calendar_create_event',
|
|
84
|
+
description: 'Create a new event on Google Calendar with title, time, and optional location/attendees.',
|
|
85
|
+
category: 'calendar',
|
|
86
|
+
tags: ['google', 'calendar', 'events', 'create', 'schedule', 'meetings', 'write'],
|
|
87
|
+
alwaysVisible: false,
|
|
88
|
+
parameters: z.object({
|
|
89
|
+
calendarId: z
|
|
90
|
+
.string()
|
|
91
|
+
.default('primary')
|
|
92
|
+
.describe('Calendar ID (default: primary)'),
|
|
93
|
+
summary: z.string().describe('Event title'),
|
|
94
|
+
description: z.string().optional().describe('Event description'),
|
|
95
|
+
location: z.string().optional().describe('Event location'),
|
|
96
|
+
start: z.string().describe('Start time (YYYY-MM-DD for all-day, or RFC3339 for timed)'),
|
|
97
|
+
end: z.string().describe('End time (YYYY-MM-DD for all-day, or RFC3339 for timed)'),
|
|
98
|
+
attendees: z
|
|
99
|
+
.array(z.string().email())
|
|
100
|
+
.optional()
|
|
101
|
+
.describe('Email addresses of attendees'),
|
|
102
|
+
timeZone: z
|
|
103
|
+
.string()
|
|
104
|
+
.default('Australia/Sydney')
|
|
105
|
+
.describe('Timezone for the event'),
|
|
106
|
+
}),
|
|
107
|
+
handler: async (params, ctx) => {
|
|
108
|
+
const isAllDay = !params.start.includes('T');
|
|
109
|
+
const eventBody = {
|
|
110
|
+
summary: params.summary,
|
|
111
|
+
description: params.description,
|
|
112
|
+
location: params.location,
|
|
113
|
+
};
|
|
114
|
+
if (isAllDay) {
|
|
115
|
+
eventBody.start = { date: params.start };
|
|
116
|
+
eventBody.end = { date: params.end };
|
|
117
|
+
}
|
|
118
|
+
else {
|
|
119
|
+
eventBody.start = { dateTime: params.start, timeZone: params.timeZone };
|
|
120
|
+
eventBody.end = { dateTime: params.end, timeZone: params.timeZone };
|
|
121
|
+
}
|
|
122
|
+
if (params.attendees?.length) {
|
|
123
|
+
eventBody.attendees = params.attendees.map((email) => ({ email }));
|
|
124
|
+
}
|
|
125
|
+
const response = await ctx.authorizedFetch(`${CALENDAR_API}/calendars/${encodeURIComponent(params.calendarId)}/events`, {
|
|
126
|
+
method: 'POST',
|
|
127
|
+
headers: { 'Content-Type': 'application/json' },
|
|
128
|
+
body: JSON.stringify(eventBody),
|
|
129
|
+
});
|
|
130
|
+
if (!response.ok) {
|
|
131
|
+
const error = await response.text();
|
|
132
|
+
return errorResult(`Failed to create event: ${response.status} - ${error}`);
|
|
133
|
+
}
|
|
134
|
+
const event = (await response.json());
|
|
135
|
+
return {
|
|
136
|
+
content: [
|
|
137
|
+
{
|
|
138
|
+
type: 'text',
|
|
139
|
+
text: `Created event: ${event.summary}\nLink: ${event.htmlLink}`,
|
|
140
|
+
},
|
|
141
|
+
],
|
|
142
|
+
};
|
|
143
|
+
},
|
|
144
|
+
});
|
|
145
|
+
/**
|
|
146
|
+
* Update an existing calendar event
|
|
147
|
+
*/
|
|
148
|
+
export const updateEvent = defineTool({
|
|
149
|
+
name: 'google_calendar_update_event',
|
|
150
|
+
description: 'Update an existing Google Calendar event (title, time, location, etc.)',
|
|
151
|
+
category: 'calendar',
|
|
152
|
+
tags: ['google', 'calendar', 'events', 'update', 'modify', 'edit', 'write'],
|
|
153
|
+
alwaysVisible: false,
|
|
154
|
+
parameters: z.object({
|
|
155
|
+
calendarId: z.string().default('primary').describe('Calendar ID'),
|
|
156
|
+
eventId: z.string().describe('Event ID to update'),
|
|
157
|
+
summary: z.string().optional().describe('New event title'),
|
|
158
|
+
description: z.string().optional().describe('New description'),
|
|
159
|
+
location: z.string().optional().describe('New location'),
|
|
160
|
+
start: z.string().optional().describe('New start time'),
|
|
161
|
+
end: z.string().optional().describe('New end time'),
|
|
162
|
+
timeZone: z.string().default('Australia/Sydney').describe('Timezone'),
|
|
163
|
+
}),
|
|
164
|
+
handler: async (params, ctx) => {
|
|
165
|
+
// First get the existing event
|
|
166
|
+
const getResponse = await ctx.authorizedFetch(`${CALENDAR_API}/calendars/${encodeURIComponent(params.calendarId)}/events/${encodeURIComponent(params.eventId)}`);
|
|
167
|
+
if (!getResponse.ok) {
|
|
168
|
+
const error = await getResponse.text();
|
|
169
|
+
return errorResult(`Event not found: ${error}`);
|
|
170
|
+
}
|
|
171
|
+
const existingEvent = (await getResponse.json());
|
|
172
|
+
// Build update payload (merge with existing)
|
|
173
|
+
const updateBody = {
|
|
174
|
+
summary: params.summary ?? existingEvent.summary,
|
|
175
|
+
description: params.description ?? existingEvent.description,
|
|
176
|
+
location: params.location ?? existingEvent.location,
|
|
177
|
+
};
|
|
178
|
+
if (params.start) {
|
|
179
|
+
const isAllDay = !params.start.includes('T');
|
|
180
|
+
updateBody.start = isAllDay
|
|
181
|
+
? { date: params.start }
|
|
182
|
+
: { dateTime: params.start, timeZone: params.timeZone };
|
|
183
|
+
}
|
|
184
|
+
else {
|
|
185
|
+
updateBody.start = existingEvent.start;
|
|
186
|
+
}
|
|
187
|
+
if (params.end) {
|
|
188
|
+
const isAllDay = !params.end.includes('T');
|
|
189
|
+
updateBody.end = isAllDay
|
|
190
|
+
? { date: params.end }
|
|
191
|
+
: { dateTime: params.end, timeZone: params.timeZone };
|
|
192
|
+
}
|
|
193
|
+
else {
|
|
194
|
+
updateBody.end = existingEvent.end;
|
|
195
|
+
}
|
|
196
|
+
const response = await ctx.authorizedFetch(`${CALENDAR_API}/calendars/${encodeURIComponent(params.calendarId)}/events/${encodeURIComponent(params.eventId)}`, {
|
|
197
|
+
method: 'PUT',
|
|
198
|
+
headers: { 'Content-Type': 'application/json' },
|
|
199
|
+
body: JSON.stringify(updateBody),
|
|
200
|
+
});
|
|
201
|
+
if (!response.ok) {
|
|
202
|
+
const error = await response.text();
|
|
203
|
+
return errorResult(`Failed to update event: ${error}`);
|
|
204
|
+
}
|
|
205
|
+
const updated = (await response.json());
|
|
206
|
+
return {
|
|
207
|
+
content: [
|
|
208
|
+
{ type: 'text', text: `Updated event: ${updated.summary}\nLink: ${updated.htmlLink}` },
|
|
209
|
+
],
|
|
210
|
+
};
|
|
211
|
+
},
|
|
212
|
+
});
|
|
213
|
+
/**
|
|
214
|
+
* Delete a calendar event
|
|
215
|
+
*/
|
|
216
|
+
export const deleteEvent = defineTool({
|
|
217
|
+
name: 'google_calendar_delete_event',
|
|
218
|
+
description: 'Delete an event from Google Calendar',
|
|
219
|
+
category: 'calendar',
|
|
220
|
+
tags: ['google', 'calendar', 'events', 'delete', 'remove', 'cancel', 'write'],
|
|
221
|
+
alwaysVisible: false,
|
|
222
|
+
parameters: z.object({
|
|
223
|
+
calendarId: z.string().default('primary').describe('Calendar ID'),
|
|
224
|
+
eventId: z.string().describe('Event ID to delete'),
|
|
225
|
+
sendUpdates: z
|
|
226
|
+
.enum(['all', 'externalOnly', 'none'])
|
|
227
|
+
.default('all')
|
|
228
|
+
.describe('Who to notify about the cancellation'),
|
|
229
|
+
}),
|
|
230
|
+
handler: async (params, ctx) => {
|
|
231
|
+
const url = new URL(`${CALENDAR_API}/calendars/${encodeURIComponent(params.calendarId)}/events/${encodeURIComponent(params.eventId)}`);
|
|
232
|
+
url.searchParams.set('sendUpdates', params.sendUpdates);
|
|
233
|
+
const response = await ctx.authorizedFetch(url.toString(), {
|
|
234
|
+
method: 'DELETE',
|
|
235
|
+
});
|
|
236
|
+
if (!response.ok) {
|
|
237
|
+
const error = await response.text();
|
|
238
|
+
return errorResult(`Failed to delete event: ${error}`);
|
|
239
|
+
}
|
|
240
|
+
return {
|
|
241
|
+
content: [{ type: 'text', text: `Event deleted successfully.` }],
|
|
242
|
+
};
|
|
243
|
+
},
|
|
244
|
+
});
|
|
245
|
+
/**
|
|
246
|
+
* Quick add an event using natural language
|
|
247
|
+
*/
|
|
248
|
+
export const quickAddEvent = defineTool({
|
|
249
|
+
name: 'google_calendar_quick_add',
|
|
250
|
+
description: 'Quickly create an event using natural language (e.g., "Lunch with Bob tomorrow at noon")',
|
|
251
|
+
category: 'calendar',
|
|
252
|
+
tags: ['google', 'calendar', 'events', 'create', 'quick', 'natural', 'write'],
|
|
253
|
+
alwaysVisible: false,
|
|
254
|
+
parameters: z.object({
|
|
255
|
+
calendarId: z.string().default('primary').describe('Calendar ID'),
|
|
256
|
+
text: z
|
|
257
|
+
.string()
|
|
258
|
+
.describe('Natural language event description (e.g., "Meeting with Alice next Tuesday 3pm")'),
|
|
259
|
+
}),
|
|
260
|
+
handler: async (params, ctx) => {
|
|
261
|
+
const url = new URL(`${CALENDAR_API}/calendars/${encodeURIComponent(params.calendarId)}/events/quickAdd`);
|
|
262
|
+
url.searchParams.set('text', params.text);
|
|
263
|
+
const response = await ctx.authorizedFetch(url.toString(), {
|
|
264
|
+
method: 'POST',
|
|
265
|
+
});
|
|
266
|
+
if (!response.ok) {
|
|
267
|
+
const error = await response.text();
|
|
268
|
+
return errorResult(`Failed to create event: ${error}`);
|
|
269
|
+
}
|
|
270
|
+
const event = (await response.json());
|
|
271
|
+
return {
|
|
272
|
+
content: [
|
|
273
|
+
{
|
|
274
|
+
type: 'text',
|
|
275
|
+
text: `Created: ${event.summary}\nStart: ${event.start?.dateTime || event.start?.date}\nLink: ${event.htmlLink}`,
|
|
276
|
+
},
|
|
277
|
+
],
|
|
278
|
+
};
|
|
279
|
+
},
|
|
280
|
+
});
|
|
281
|
+
//# sourceMappingURL=events.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"events.js","sourceRoot":"","sources":["../../../../src/google/calendar/tools/events.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,UAAU,EAAE,UAAU,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAGvE,MAAM,YAAY,GAAG,wCAAwC,CAAC;AAmB9D;;GAEG;AACH,SAAS,cAAc,CAAC,KAAa;IACnC,IAAI,KAAK,CAAC,QAAQ,CAAC,GAAG,CAAC;QAAE,OAAO,KAAK,CAAC;IACtC,OAAO,GAAG,KAAK,YAAY,CAAC;AAC9B,CAAC;AAED;;GAEG;AACH,MAAM,CAAC,MAAM,UAAU,GAAG,UAAU,CAAC;IACnC,IAAI,EAAE,6BAA6B;IACnC,WAAW,EACT,mGAAmG;IACrG,QAAQ,EAAE,UAAU;IACpB,IAAI,EAAE,CAAC,QAAQ,EAAE,UAAU,EAAE,QAAQ,EAAE,UAAU,EAAE,UAAU,EAAE,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YAAY,cAAc,kBAAkB,CAAC,MAAM,CAAC,UAAU,CAAC,kBAAkB,CACrF,CAAC;QACF,GAAG,CAAC,YAAY,CAAC,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,IAAI,CAAC,CAAC;QAE1C,MAAM,QAAQ,GAAG,MAAM,GAAG,CAAC,eAAe,CAAC,GAAG,CAAC,QAAQ,EAAE,EAAE;YACzD,MAAM,EAAE,MAAM;SACf,CAAC,CAAC;QAEH,IAAI,CAAC,QAAQ,CAAC,EAAE,EAAE,CAAC;YACjB,MAAM,KAAK,GAAG,MAAM,QAAQ,CAAC,IAAI,EAAE,CAAC;YACpC,OAAO,WAAW,CAAC,2BAA2B,KAAK,EAAE,CAAC,CAAC;QACzD,CAAC;QAED,MAAM,KAAK,GAAG,CAAC,MAAM,QAAQ,CAAC,IAAI,EAAE,CAAkB,CAAC;QACvD,OAAO;YACL,OAAO,EAAE;gBACP;oBACE,IAAI,EAAE,MAAM;oBACZ,IAAI,EAAE,YAAY,KAAK,CAAC,OAAO,YAAY,KAAK,CAAC,KAAK,EAAE,QAAQ,IAAI,KAAK,CAAC,KAAK,EAAE,IAAI,WAAW,KAAK,CAAC,QAAQ,EAAE;iBACjH;aACF;SACF,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"}
|
|
@@ -0,0 +1,280 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Google Calendar Tools
|
|
3
|
+
*/
|
|
4
|
+
export { listEvents, createEvent, updateEvent, deleteEvent, quickAddEvent, } from './events';
|
|
5
|
+
export { listCalendars } from './calendars';
|
|
6
|
+
/**
|
|
7
|
+
* All calendar tools
|
|
8
|
+
*/
|
|
9
|
+
export declare const all: (import("../../..").ToolDefinition<import("zod").ZodObject<{
|
|
10
|
+
calendarId: import("zod").ZodDefault<import("zod").ZodString>;
|
|
11
|
+
maxResults: import("zod").ZodDefault<import("zod").ZodNumber>;
|
|
12
|
+
timeMin: import("zod").ZodOptional<import("zod").ZodString>;
|
|
13
|
+
timeMax: import("zod").ZodOptional<import("zod").ZodString>;
|
|
14
|
+
query: import("zod").ZodOptional<import("zod").ZodString>;
|
|
15
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
16
|
+
calendarId: string;
|
|
17
|
+
maxResults: number;
|
|
18
|
+
timeMin?: string | undefined;
|
|
19
|
+
timeMax?: string | undefined;
|
|
20
|
+
query?: string | undefined;
|
|
21
|
+
}, {
|
|
22
|
+
calendarId?: string | undefined;
|
|
23
|
+
maxResults?: number | undefined;
|
|
24
|
+
timeMin?: string | undefined;
|
|
25
|
+
timeMax?: string | undefined;
|
|
26
|
+
query?: string | undefined;
|
|
27
|
+
}>> | import("../../..").ToolDefinition<import("zod").ZodObject<{
|
|
28
|
+
calendarId: import("zod").ZodDefault<import("zod").ZodString>;
|
|
29
|
+
summary: import("zod").ZodString;
|
|
30
|
+
description: import("zod").ZodOptional<import("zod").ZodString>;
|
|
31
|
+
location: import("zod").ZodOptional<import("zod").ZodString>;
|
|
32
|
+
start: import("zod").ZodString;
|
|
33
|
+
end: import("zod").ZodString;
|
|
34
|
+
attendees: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString, "many">>;
|
|
35
|
+
timeZone: import("zod").ZodDefault<import("zod").ZodString>;
|
|
36
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
37
|
+
calendarId: string;
|
|
38
|
+
summary: string;
|
|
39
|
+
start: string;
|
|
40
|
+
end: string;
|
|
41
|
+
timeZone: string;
|
|
42
|
+
description?: string | undefined;
|
|
43
|
+
location?: string | undefined;
|
|
44
|
+
attendees?: string[] | undefined;
|
|
45
|
+
}, {
|
|
46
|
+
summary: string;
|
|
47
|
+
start: string;
|
|
48
|
+
end: string;
|
|
49
|
+
calendarId?: string | undefined;
|
|
50
|
+
description?: string | undefined;
|
|
51
|
+
location?: string | undefined;
|
|
52
|
+
attendees?: string[] | undefined;
|
|
53
|
+
timeZone?: string | undefined;
|
|
54
|
+
}>> | import("../../..").ToolDefinition<import("zod").ZodObject<{
|
|
55
|
+
calendarId: import("zod").ZodDefault<import("zod").ZodString>;
|
|
56
|
+
eventId: import("zod").ZodString;
|
|
57
|
+
summary: import("zod").ZodOptional<import("zod").ZodString>;
|
|
58
|
+
description: import("zod").ZodOptional<import("zod").ZodString>;
|
|
59
|
+
location: import("zod").ZodOptional<import("zod").ZodString>;
|
|
60
|
+
start: import("zod").ZodOptional<import("zod").ZodString>;
|
|
61
|
+
end: import("zod").ZodOptional<import("zod").ZodString>;
|
|
62
|
+
timeZone: import("zod").ZodDefault<import("zod").ZodString>;
|
|
63
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
64
|
+
calendarId: string;
|
|
65
|
+
timeZone: string;
|
|
66
|
+
eventId: string;
|
|
67
|
+
summary?: string | undefined;
|
|
68
|
+
description?: string | undefined;
|
|
69
|
+
location?: string | undefined;
|
|
70
|
+
start?: string | undefined;
|
|
71
|
+
end?: string | undefined;
|
|
72
|
+
}, {
|
|
73
|
+
eventId: string;
|
|
74
|
+
calendarId?: string | undefined;
|
|
75
|
+
summary?: string | undefined;
|
|
76
|
+
description?: string | undefined;
|
|
77
|
+
location?: string | undefined;
|
|
78
|
+
start?: string | undefined;
|
|
79
|
+
end?: string | undefined;
|
|
80
|
+
timeZone?: string | undefined;
|
|
81
|
+
}>> | import("../../..").ToolDefinition<import("zod").ZodObject<{
|
|
82
|
+
calendarId: import("zod").ZodDefault<import("zod").ZodString>;
|
|
83
|
+
eventId: import("zod").ZodString;
|
|
84
|
+
sendUpdates: import("zod").ZodDefault<import("zod").ZodEnum<["all", "externalOnly", "none"]>>;
|
|
85
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
86
|
+
calendarId: string;
|
|
87
|
+
eventId: string;
|
|
88
|
+
sendUpdates: "all" | "externalOnly" | "none";
|
|
89
|
+
}, {
|
|
90
|
+
eventId: string;
|
|
91
|
+
calendarId?: string | undefined;
|
|
92
|
+
sendUpdates?: "all" | "externalOnly" | "none" | undefined;
|
|
93
|
+
}>> | import("../../..").ToolDefinition<import("zod").ZodObject<{
|
|
94
|
+
calendarId: import("zod").ZodDefault<import("zod").ZodString>;
|
|
95
|
+
text: import("zod").ZodString;
|
|
96
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
97
|
+
text: string;
|
|
98
|
+
calendarId: string;
|
|
99
|
+
}, {
|
|
100
|
+
text: string;
|
|
101
|
+
calendarId?: string | undefined;
|
|
102
|
+
}>> | import("../../..").ToolDefinition<import("zod").ZodObject<{
|
|
103
|
+
showHidden: import("zod").ZodDefault<import("zod").ZodBoolean>;
|
|
104
|
+
showDeleted: import("zod").ZodDefault<import("zod").ZodBoolean>;
|
|
105
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
106
|
+
showHidden: boolean;
|
|
107
|
+
showDeleted: boolean;
|
|
108
|
+
}, {
|
|
109
|
+
showHidden?: boolean | undefined;
|
|
110
|
+
showDeleted?: boolean | undefined;
|
|
111
|
+
}>>)[];
|
|
112
|
+
/**
|
|
113
|
+
* Tools that should always be visible (most common operations)
|
|
114
|
+
*/
|
|
115
|
+
export declare const alwaysVisible: (import("../../..").ToolDefinition<import("zod").ZodObject<{
|
|
116
|
+
calendarId: import("zod").ZodDefault<import("zod").ZodString>;
|
|
117
|
+
maxResults: import("zod").ZodDefault<import("zod").ZodNumber>;
|
|
118
|
+
timeMin: import("zod").ZodOptional<import("zod").ZodString>;
|
|
119
|
+
timeMax: import("zod").ZodOptional<import("zod").ZodString>;
|
|
120
|
+
query: import("zod").ZodOptional<import("zod").ZodString>;
|
|
121
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
122
|
+
calendarId: string;
|
|
123
|
+
maxResults: number;
|
|
124
|
+
timeMin?: string | undefined;
|
|
125
|
+
timeMax?: string | undefined;
|
|
126
|
+
query?: string | undefined;
|
|
127
|
+
}, {
|
|
128
|
+
calendarId?: string | undefined;
|
|
129
|
+
maxResults?: number | undefined;
|
|
130
|
+
timeMin?: string | undefined;
|
|
131
|
+
timeMax?: string | undefined;
|
|
132
|
+
query?: string | undefined;
|
|
133
|
+
}>> | import("../../..").ToolDefinition<import("zod").ZodObject<{
|
|
134
|
+
showHidden: import("zod").ZodDefault<import("zod").ZodBoolean>;
|
|
135
|
+
showDeleted: import("zod").ZodDefault<import("zod").ZodBoolean>;
|
|
136
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
137
|
+
showHidden: boolean;
|
|
138
|
+
showDeleted: boolean;
|
|
139
|
+
}, {
|
|
140
|
+
showHidden?: boolean | undefined;
|
|
141
|
+
showDeleted?: boolean | undefined;
|
|
142
|
+
}>>)[];
|
|
143
|
+
/**
|
|
144
|
+
* Read-only tools (no calendar modifications)
|
|
145
|
+
*/
|
|
146
|
+
export declare const readOnly: (import("../../..").ToolDefinition<import("zod").ZodObject<{
|
|
147
|
+
calendarId: import("zod").ZodDefault<import("zod").ZodString>;
|
|
148
|
+
maxResults: import("zod").ZodDefault<import("zod").ZodNumber>;
|
|
149
|
+
timeMin: import("zod").ZodOptional<import("zod").ZodString>;
|
|
150
|
+
timeMax: import("zod").ZodOptional<import("zod").ZodString>;
|
|
151
|
+
query: import("zod").ZodOptional<import("zod").ZodString>;
|
|
152
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
153
|
+
calendarId: string;
|
|
154
|
+
maxResults: number;
|
|
155
|
+
timeMin?: string | undefined;
|
|
156
|
+
timeMax?: string | undefined;
|
|
157
|
+
query?: string | undefined;
|
|
158
|
+
}, {
|
|
159
|
+
calendarId?: string | undefined;
|
|
160
|
+
maxResults?: number | undefined;
|
|
161
|
+
timeMin?: string | undefined;
|
|
162
|
+
timeMax?: string | undefined;
|
|
163
|
+
query?: string | undefined;
|
|
164
|
+
}>> | import("../../..").ToolDefinition<import("zod").ZodObject<{
|
|
165
|
+
showHidden: import("zod").ZodDefault<import("zod").ZodBoolean>;
|
|
166
|
+
showDeleted: import("zod").ZodDefault<import("zod").ZodBoolean>;
|
|
167
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
168
|
+
showHidden: boolean;
|
|
169
|
+
showDeleted: boolean;
|
|
170
|
+
}, {
|
|
171
|
+
showHidden?: boolean | undefined;
|
|
172
|
+
showDeleted?: boolean | undefined;
|
|
173
|
+
}>>)[];
|
|
174
|
+
/**
|
|
175
|
+
* Full access tools (read + write)
|
|
176
|
+
*/
|
|
177
|
+
export declare const fullAccess: (import("../../..").ToolDefinition<import("zod").ZodObject<{
|
|
178
|
+
calendarId: import("zod").ZodDefault<import("zod").ZodString>;
|
|
179
|
+
maxResults: import("zod").ZodDefault<import("zod").ZodNumber>;
|
|
180
|
+
timeMin: import("zod").ZodOptional<import("zod").ZodString>;
|
|
181
|
+
timeMax: import("zod").ZodOptional<import("zod").ZodString>;
|
|
182
|
+
query: import("zod").ZodOptional<import("zod").ZodString>;
|
|
183
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
184
|
+
calendarId: string;
|
|
185
|
+
maxResults: number;
|
|
186
|
+
timeMin?: string | undefined;
|
|
187
|
+
timeMax?: string | undefined;
|
|
188
|
+
query?: string | undefined;
|
|
189
|
+
}, {
|
|
190
|
+
calendarId?: string | undefined;
|
|
191
|
+
maxResults?: number | undefined;
|
|
192
|
+
timeMin?: string | undefined;
|
|
193
|
+
timeMax?: string | undefined;
|
|
194
|
+
query?: string | undefined;
|
|
195
|
+
}>> | import("../../..").ToolDefinition<import("zod").ZodObject<{
|
|
196
|
+
calendarId: import("zod").ZodDefault<import("zod").ZodString>;
|
|
197
|
+
summary: import("zod").ZodString;
|
|
198
|
+
description: import("zod").ZodOptional<import("zod").ZodString>;
|
|
199
|
+
location: import("zod").ZodOptional<import("zod").ZodString>;
|
|
200
|
+
start: import("zod").ZodString;
|
|
201
|
+
end: import("zod").ZodString;
|
|
202
|
+
attendees: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString, "many">>;
|
|
203
|
+
timeZone: import("zod").ZodDefault<import("zod").ZodString>;
|
|
204
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
205
|
+
calendarId: string;
|
|
206
|
+
summary: string;
|
|
207
|
+
start: string;
|
|
208
|
+
end: string;
|
|
209
|
+
timeZone: string;
|
|
210
|
+
description?: string | undefined;
|
|
211
|
+
location?: string | undefined;
|
|
212
|
+
attendees?: string[] | undefined;
|
|
213
|
+
}, {
|
|
214
|
+
summary: string;
|
|
215
|
+
start: string;
|
|
216
|
+
end: string;
|
|
217
|
+
calendarId?: string | undefined;
|
|
218
|
+
description?: string | undefined;
|
|
219
|
+
location?: string | undefined;
|
|
220
|
+
attendees?: string[] | undefined;
|
|
221
|
+
timeZone?: string | undefined;
|
|
222
|
+
}>> | import("../../..").ToolDefinition<import("zod").ZodObject<{
|
|
223
|
+
calendarId: import("zod").ZodDefault<import("zod").ZodString>;
|
|
224
|
+
eventId: import("zod").ZodString;
|
|
225
|
+
summary: import("zod").ZodOptional<import("zod").ZodString>;
|
|
226
|
+
description: import("zod").ZodOptional<import("zod").ZodString>;
|
|
227
|
+
location: import("zod").ZodOptional<import("zod").ZodString>;
|
|
228
|
+
start: import("zod").ZodOptional<import("zod").ZodString>;
|
|
229
|
+
end: import("zod").ZodOptional<import("zod").ZodString>;
|
|
230
|
+
timeZone: import("zod").ZodDefault<import("zod").ZodString>;
|
|
231
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
232
|
+
calendarId: string;
|
|
233
|
+
timeZone: string;
|
|
234
|
+
eventId: string;
|
|
235
|
+
summary?: string | undefined;
|
|
236
|
+
description?: string | undefined;
|
|
237
|
+
location?: string | undefined;
|
|
238
|
+
start?: string | undefined;
|
|
239
|
+
end?: string | undefined;
|
|
240
|
+
}, {
|
|
241
|
+
eventId: string;
|
|
242
|
+
calendarId?: string | undefined;
|
|
243
|
+
summary?: string | undefined;
|
|
244
|
+
description?: string | undefined;
|
|
245
|
+
location?: string | undefined;
|
|
246
|
+
start?: string | undefined;
|
|
247
|
+
end?: string | undefined;
|
|
248
|
+
timeZone?: string | undefined;
|
|
249
|
+
}>> | import("../../..").ToolDefinition<import("zod").ZodObject<{
|
|
250
|
+
calendarId: import("zod").ZodDefault<import("zod").ZodString>;
|
|
251
|
+
eventId: import("zod").ZodString;
|
|
252
|
+
sendUpdates: import("zod").ZodDefault<import("zod").ZodEnum<["all", "externalOnly", "none"]>>;
|
|
253
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
254
|
+
calendarId: string;
|
|
255
|
+
eventId: string;
|
|
256
|
+
sendUpdates: "all" | "externalOnly" | "none";
|
|
257
|
+
}, {
|
|
258
|
+
eventId: string;
|
|
259
|
+
calendarId?: string | undefined;
|
|
260
|
+
sendUpdates?: "all" | "externalOnly" | "none" | undefined;
|
|
261
|
+
}>> | import("../../..").ToolDefinition<import("zod").ZodObject<{
|
|
262
|
+
calendarId: import("zod").ZodDefault<import("zod").ZodString>;
|
|
263
|
+
text: import("zod").ZodString;
|
|
264
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
265
|
+
text: string;
|
|
266
|
+
calendarId: string;
|
|
267
|
+
}, {
|
|
268
|
+
text: string;
|
|
269
|
+
calendarId?: string | undefined;
|
|
270
|
+
}>> | import("../../..").ToolDefinition<import("zod").ZodObject<{
|
|
271
|
+
showHidden: import("zod").ZodDefault<import("zod").ZodBoolean>;
|
|
272
|
+
showDeleted: import("zod").ZodDefault<import("zod").ZodBoolean>;
|
|
273
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
274
|
+
showHidden: boolean;
|
|
275
|
+
showDeleted: boolean;
|
|
276
|
+
}, {
|
|
277
|
+
showHidden?: boolean | undefined;
|
|
278
|
+
showDeleted?: boolean | undefined;
|
|
279
|
+
}>>)[];
|
|
280
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/google/calendar/tools/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EACL,UAAU,EACV,WAAW,EACX,WAAW,EACX,WAAW,EACX,aAAa,GACd,MAAM,UAAU,CAAC;AAElB,OAAO,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAY5C;;GAEG;AACH,eAAO,MAAM,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAAoF,CAAC;AAErG;;GAEG;AACH,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;MAA8B,CAAC;AAEzD;;GAEG;AACH,eAAO,MAAM,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;MAA8B,CAAC;AAEpD;;GAEG;AACH,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAAoF,CAAC"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Google Calendar Tools
|
|
3
|
+
*/
|
|
4
|
+
export { listEvents, createEvent, updateEvent, deleteEvent, quickAddEvent, } from './events';
|
|
5
|
+
export { listCalendars } from './calendars';
|
|
6
|
+
import { listEvents, createEvent, updateEvent, deleteEvent, quickAddEvent, } from './events';
|
|
7
|
+
import { listCalendars } from './calendars';
|
|
8
|
+
/**
|
|
9
|
+
* All calendar tools
|
|
10
|
+
*/
|
|
11
|
+
export const all = [listCalendars, listEvents, createEvent, updateEvent, deleteEvent, quickAddEvent];
|
|
12
|
+
/**
|
|
13
|
+
* Tools that should always be visible (most common operations)
|
|
14
|
+
*/
|
|
15
|
+
export const alwaysVisible = [listCalendars, listEvents];
|
|
16
|
+
/**
|
|
17
|
+
* Read-only tools (no calendar modifications)
|
|
18
|
+
*/
|
|
19
|
+
export const readOnly = [listCalendars, listEvents];
|
|
20
|
+
/**
|
|
21
|
+
* Full access tools (read + write)
|
|
22
|
+
*/
|
|
23
|
+
export const fullAccess = [listCalendars, listEvents, createEvent, updateEvent, deleteEvent, quickAddEvent];
|
|
24
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/google/calendar/tools/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EACL,UAAU,EACV,WAAW,EACX,WAAW,EACX,WAAW,EACX,aAAa,GACd,MAAM,UAAU,CAAC;AAElB,OAAO,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAE5C,OAAO,EACL,UAAU,EACV,WAAW,EACX,WAAW,EACX,WAAW,EACX,aAAa,GACd,MAAM,UAAU,CAAC;AAElB,OAAO,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAE5C;;GAEG;AACH,MAAM,CAAC,MAAM,GAAG,GAAG,CAAC,aAAa,EAAE,UAAU,EAAE,WAAW,EAAE,WAAW,EAAE,WAAW,EAAE,aAAa,CAAC,CAAC;AAErG;;GAEG;AACH,MAAM,CAAC,MAAM,aAAa,GAAG,CAAC,aAAa,EAAE,UAAU,CAAC,CAAC;AAEzD;;GAEG;AACH,MAAM,CAAC,MAAM,QAAQ,GAAG,CAAC,aAAa,EAAE,UAAU,CAAC,CAAC;AAEpD;;GAEG;AACH,MAAM,CAAC,MAAM,UAAU,GAAG,CAAC,aAAa,EAAE,UAAU,EAAE,WAAW,EAAE,WAAW,EAAE,WAAW,EAAE,aAAa,CAAC,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Google Integrations
|
|
3
|
+
*
|
|
4
|
+
* @example
|
|
5
|
+
* ```typescript
|
|
6
|
+
* import { calendar } from '@jezweb/mcp-integrations/google';
|
|
7
|
+
*
|
|
8
|
+
* // Access calendar tools
|
|
9
|
+
* calendar.tools.all.forEach(tool => { ... });
|
|
10
|
+
* ```
|
|
11
|
+
*/
|
|
12
|
+
export * as calendar from './calendar';
|
|
13
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/google/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH,OAAO,KAAK,QAAQ,MAAM,YAAY,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Google Integrations
|
|
3
|
+
*
|
|
4
|
+
* @example
|
|
5
|
+
* ```typescript
|
|
6
|
+
* import { calendar } from '@jezweb/mcp-integrations/google';
|
|
7
|
+
*
|
|
8
|
+
* // Access calendar tools
|
|
9
|
+
* calendar.tools.all.forEach(tool => { ... });
|
|
10
|
+
* ```
|
|
11
|
+
*/
|
|
12
|
+
export * as calendar from './calendar';
|
|
13
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/google/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH,OAAO,KAAK,QAAQ,MAAM,YAAY,CAAC"}
|