google-tools-mcp 1.0.10 → 1.0.11
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 +16 -3
- package/dist/index.js +1 -1
- package/dist/tools/calendar/manageEvent.js +8 -0
- package/dist/tools/calendar/moveEvent.js +6 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -85,15 +85,28 @@ Add the credentials directly to your MCP configuration:
|
|
|
85
85
|
|
|
86
86
|
#### Claude Code (recommended)
|
|
87
87
|
|
|
88
|
-
|
|
88
|
+
**User-scope** (available in all projects):
|
|
89
|
+
|
|
90
|
+
```bash
|
|
91
|
+
claude mcp add -s user google -- npx -y google-tools-mcp
|
|
92
|
+
```
|
|
93
|
+
|
|
94
|
+
**Project-scope** (available only in the current project):
|
|
89
95
|
|
|
90
96
|
```bash
|
|
91
97
|
claude mcp add google -- npx -y google-tools-mcp
|
|
92
98
|
```
|
|
93
99
|
|
|
94
|
-
|
|
100
|
+
With env vars (Option C):
|
|
95
101
|
|
|
96
102
|
```bash
|
|
103
|
+
# User-scope
|
|
104
|
+
claude mcp add -s user google \
|
|
105
|
+
-e GOOGLE_CLIENT_ID=your-client-id \
|
|
106
|
+
-e GOOGLE_CLIENT_SECRET=your-client-secret \
|
|
107
|
+
-- npx -y google-tools-mcp
|
|
108
|
+
|
|
109
|
+
# Project-scope
|
|
97
110
|
claude mcp add google \
|
|
98
111
|
-e GOOGLE_CLIENT_ID=your-client-id \
|
|
99
112
|
-e GOOGLE_CLIENT_SECRET=your-client-secret \
|
|
@@ -105,7 +118,7 @@ claude mcp add google \
|
|
|
105
118
|
Via the `claude` CLI:
|
|
106
119
|
|
|
107
120
|
```bash
|
|
108
|
-
claude mcp add google \
|
|
121
|
+
claude mcp add -s user google \
|
|
109
122
|
-e GOOGLE_MCP_PROFILE=myprofile \
|
|
110
123
|
-- npx -y google-tools-mcp
|
|
111
124
|
```
|
package/dist/index.js
CHANGED
|
@@ -69,6 +69,11 @@ export function register(server) {
|
|
|
69
69
|
.array(z.string())
|
|
70
70
|
.optional()
|
|
71
71
|
.describe('RRULE recurrence rules (e.g. ["RRULE:FREQ=WEEKLY;BYDAY=MO,WE,FR"]). Only for create.'),
|
|
72
|
+
send_updates: z
|
|
73
|
+
.enum(['all', 'externalOnly', 'none'])
|
|
74
|
+
.optional()
|
|
75
|
+
.default('all')
|
|
76
|
+
.describe('Who to send email notifications to: "all" = all attendees (default), "externalOnly" = non-Google Calendar attendees only, "none" = no emails.'),
|
|
72
77
|
}),
|
|
73
78
|
execute: async (args, { log }) => {
|
|
74
79
|
const calendar = await getCalendarClient();
|
|
@@ -80,6 +85,7 @@ export function register(server) {
|
|
|
80
85
|
await calendar.events.delete({
|
|
81
86
|
calendarId: args.calendar_id,
|
|
82
87
|
eventId: args.event_id,
|
|
88
|
+
sendUpdates: args.send_updates,
|
|
83
89
|
});
|
|
84
90
|
return JSON.stringify({ success: true, message: `Event ${args.event_id} deleted.` });
|
|
85
91
|
}
|
|
@@ -96,6 +102,7 @@ export function register(server) {
|
|
|
96
102
|
calendarId: args.calendar_id,
|
|
97
103
|
requestBody: eventBody,
|
|
98
104
|
conferenceDataVersion: args.add_google_meet ? 1 : 0,
|
|
105
|
+
sendUpdates: args.send_updates,
|
|
99
106
|
};
|
|
100
107
|
|
|
101
108
|
const response = await calendar.events.insert(params);
|
|
@@ -119,6 +126,7 @@ export function register(server) {
|
|
|
119
126
|
eventId: args.event_id,
|
|
120
127
|
requestBody: eventBody,
|
|
121
128
|
conferenceDataVersion: args.add_google_meet !== undefined ? 1 : 0,
|
|
129
|
+
sendUpdates: args.send_updates,
|
|
122
130
|
};
|
|
123
131
|
|
|
124
132
|
const response = await calendar.events.update(params);
|
|
@@ -17,6 +17,11 @@ export function register(server) {
|
|
|
17
17
|
destination_calendar_id: z
|
|
18
18
|
.string()
|
|
19
19
|
.describe('Calendar ID to move the event to.'),
|
|
20
|
+
send_updates: z
|
|
21
|
+
.enum(['all', 'externalOnly', 'none'])
|
|
22
|
+
.optional()
|
|
23
|
+
.default('all')
|
|
24
|
+
.describe('Who to send email notifications to: "all" = all attendees (default), "externalOnly" = non-Google Calendar attendees only, "none" = no emails.'),
|
|
20
25
|
}),
|
|
21
26
|
execute: async (args, { log }) => {
|
|
22
27
|
const calendar = await getCalendarClient();
|
|
@@ -29,6 +34,7 @@ export function register(server) {
|
|
|
29
34
|
calendarId: args.source_calendar_id,
|
|
30
35
|
eventId: args.event_id,
|
|
31
36
|
destination: args.destination_calendar_id,
|
|
37
|
+
sendUpdates: args.send_updates,
|
|
32
38
|
});
|
|
33
39
|
|
|
34
40
|
const event = response.data;
|