@dguido/google-workspace-mcp 3.0.1 → 3.0.2
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 +33 -14
- package/dist/index.js +152 -107
- package/dist/index.js.map +3 -3
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -14,7 +14,19 @@ MCP server providing Claude access to Google Drive, Docs, Sheets, Slides, Calend
|
|
|
14
14
|
|
|
15
15
|
See [Google Cloud Setup](#google-cloud-setup) below for detailed instructions.
|
|
16
16
|
|
|
17
|
-
### 2.
|
|
17
|
+
### 2. Save Credentials
|
|
18
|
+
|
|
19
|
+
Download your OAuth credentials from Google Cloud Console and save to the default location:
|
|
20
|
+
|
|
21
|
+
```bash
|
|
22
|
+
# Create config directory
|
|
23
|
+
mkdir -p ~/.config/google-workspace-mcp
|
|
24
|
+
|
|
25
|
+
# Save your downloaded credentials file as:
|
|
26
|
+
# ~/.config/google-workspace-mcp/credentials.json
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
### 3. Authenticate
|
|
18
30
|
|
|
19
31
|
```bash
|
|
20
32
|
npx @dguido/google-workspace-mcp auth
|
|
@@ -22,7 +34,7 @@ npx @dguido/google-workspace-mcp auth
|
|
|
22
34
|
|
|
23
35
|
This opens your browser for Google OAuth consent. Tokens are saved to `~/.config/google-workspace-mcp/tokens.json`.
|
|
24
36
|
|
|
25
|
-
###
|
|
37
|
+
### 4. Configure Claude Desktop
|
|
26
38
|
|
|
27
39
|
**macOS**: `~/Library/Application Support/Claude/claude_desktop_config.json`
|
|
28
40
|
**Windows**: `%APPDATA%\Claude\claude_desktop_config.json`
|
|
@@ -34,7 +46,6 @@ This opens your browser for Google OAuth consent. Tokens are saved to `~/.config
|
|
|
34
46
|
"command": "npx",
|
|
35
47
|
"args": ["@dguido/google-workspace-mcp"],
|
|
36
48
|
"env": {
|
|
37
|
-
"GOOGLE_DRIVE_OAUTH_CREDENTIALS": "/path/to/your/gcp-oauth.keys.json",
|
|
38
49
|
"GOOGLE_WORKSPACE_SERVICES": "drive,gmail,calendar"
|
|
39
50
|
}
|
|
40
51
|
}
|
|
@@ -42,6 +53,8 @@ This opens your browser for Google OAuth consent. Tokens are saved to `~/.config
|
|
|
42
53
|
}
|
|
43
54
|
```
|
|
44
55
|
|
|
56
|
+
No credential path needed when using the default location (`~/.config/google-workspace-mcp/credentials.json`).
|
|
57
|
+
|
|
45
58
|
## What You Can Do
|
|
46
59
|
|
|
47
60
|
```
|
|
@@ -86,14 +99,22 @@ Create a presentation called "Product Roadmap" with slides for Q1 milestones.
|
|
|
86
99
|
|
|
87
100
|
## Configuration
|
|
88
101
|
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
|
94
|
-
|
|
|
102
|
+
### File Locations
|
|
103
|
+
|
|
104
|
+
Both credentials and tokens are stored in `~/.config/google-workspace-mcp/` by default:
|
|
105
|
+
|
|
106
|
+
| File | Default Path |
|
|
107
|
+
| ----------------- | ------------------------------------------------- |
|
|
108
|
+
| OAuth credentials | `~/.config/google-workspace-mcp/credentials.json` |
|
|
109
|
+
| Auth tokens | `~/.config/google-workspace-mcp/tokens.json` |
|
|
110
|
+
|
|
111
|
+
### Environment Variables
|
|
95
112
|
|
|
96
|
-
|
|
113
|
+
| Variable | Description |
|
|
114
|
+
| --------------------------------- | --------------------------------------------------- |
|
|
115
|
+
| `GOOGLE_DRIVE_OAUTH_CREDENTIALS` | Custom path to credentials file (overrides default) |
|
|
116
|
+
| `GOOGLE_WORKSPACE_MCP_TOKEN_PATH` | Custom token storage location |
|
|
117
|
+
| `GOOGLE_WORKSPACE_SERVICES` | Comma-separated list of services to enable |
|
|
97
118
|
|
|
98
119
|
### Token-Efficient Output (TOON)
|
|
99
120
|
|
|
@@ -106,7 +127,6 @@ For LLM-optimized responses that reduce token usage by 20-50%, enable TOON forma
|
|
|
106
127
|
"command": "npx",
|
|
107
128
|
"args": ["@dguido/google-workspace-mcp"],
|
|
108
129
|
"env": {
|
|
109
|
-
"GOOGLE_DRIVE_OAUTH_CREDENTIALS": "/path/to/gcp-oauth.keys.json",
|
|
110
130
|
"GOOGLE_WORKSPACE_SERVICES": "drive,gmail,calendar",
|
|
111
131
|
"GOOGLE_WORKSPACE_TOON_FORMAT": "true"
|
|
112
132
|
}
|
|
@@ -130,7 +150,6 @@ To enable additional services, add them to `GOOGLE_WORKSPACE_SERVICES`:
|
|
|
130
150
|
"command": "npx",
|
|
131
151
|
"args": ["@dguido/google-workspace-mcp"],
|
|
132
152
|
"env": {
|
|
133
|
-
"GOOGLE_DRIVE_OAUTH_CREDENTIALS": "/path/to/gcp-oauth.keys.json",
|
|
134
153
|
"GOOGLE_WORKSPACE_SERVICES": "drive,gmail,calendar,docs,sheets,slides"
|
|
135
154
|
}
|
|
136
155
|
}
|
|
@@ -185,7 +204,7 @@ See [Advanced Configuration](docs/ADVANCED.md) for multi-account setup and envir
|
|
|
185
204
|
|
|
186
205
|
### "OAuth credentials not found"
|
|
187
206
|
|
|
188
|
-
|
|
207
|
+
Save your credentials file to `~/.config/google-workspace-mcp/credentials.json`, or set `GOOGLE_DRIVE_OAUTH_CREDENTIALS` environment variable to a custom path.
|
|
189
208
|
|
|
190
209
|
### "Authentication failed" or browser doesn't open
|
|
191
210
|
|
|
@@ -220,7 +239,7 @@ Revoke app access at [Google Account Permissions](https://myaccount.google.com/p
|
|
|
220
239
|
- Automatic token refresh
|
|
221
240
|
- Tokens stored with 0600 permissions
|
|
222
241
|
- All processing happens locally
|
|
223
|
-
- Never commit
|
|
242
|
+
- Never commit credentials or tokens to version control
|
|
224
243
|
|
|
225
244
|
## Avoiding Token Expiry
|
|
226
245
|
|