@piotr-agier/google-drive-mcp 1.7.4 → 1.7.5
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 -5
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -194,7 +194,7 @@ Run the container with your credentials and tokens mounted:
|
|
|
194
194
|
```bash
|
|
195
195
|
docker run -it \
|
|
196
196
|
-v /path/to/gcp-oauth.keys.json:/config/gcp-oauth.keys.json:ro \
|
|
197
|
-
-v
|
|
197
|
+
-v "$HOME/.config/google-drive-mcp/tokens.json":/config/tokens.json \
|
|
198
198
|
google-drive-mcp
|
|
199
199
|
```
|
|
200
200
|
|
|
@@ -206,7 +206,35 @@ docker run -it \
|
|
|
206
206
|
|
|
207
207
|
### Docker Configuration for Claude Desktop
|
|
208
208
|
|
|
209
|
-
|
|
209
|
+
#### Option A: Reusable container (recommended)
|
|
210
|
+
|
|
211
|
+
Uses a wrapper script that keeps a single named container running and reuses it across client restarts — faster startup and no container churn:
|
|
212
|
+
|
|
213
|
+
```json
|
|
214
|
+
{
|
|
215
|
+
"mcpServers": {
|
|
216
|
+
"google-drive": {
|
|
217
|
+
"command": "/path/to/google-drive-mcp/scripts/docker-mcp.sh",
|
|
218
|
+
"env": {
|
|
219
|
+
"GOOGLE_DRIVE_OAUTH_CREDENTIALS": "$HOME/gcp-oauth.keys.json",
|
|
220
|
+
"GOOGLE_DRIVE_MCP_TOKEN_PATH": "$HOME/.config/google-drive-mcp/tokens.json"
|
|
221
|
+
}
|
|
222
|
+
}
|
|
223
|
+
}
|
|
224
|
+
}
|
|
225
|
+
```
|
|
226
|
+
|
|
227
|
+
The script will:
|
|
228
|
+
- Create the container on first run
|
|
229
|
+
- Reuse the existing container on subsequent runs
|
|
230
|
+
- Automatically restart it if it was stopped
|
|
231
|
+
|
|
232
|
+
**Note:** The container stays running in the background until explicitly stopped.
|
|
233
|
+
To stop it: `docker stop google-drive-mcp`
|
|
234
|
+
|
|
235
|
+
#### Option B: Fresh container each time
|
|
236
|
+
|
|
237
|
+
Creates and removes a new container on every client restart:
|
|
210
238
|
|
|
211
239
|
```json
|
|
212
240
|
{
|
|
@@ -1056,7 +1084,7 @@ ls -la ~/.config/google-drive-mcp/tokens.json
|
|
|
1056
1084
|
# 3. Run Docker with tokens mounted
|
|
1057
1085
|
docker run -it \
|
|
1058
1086
|
-v $(pwd)/gcp-oauth.keys.json:/config/gcp-oauth.keys.json:ro \
|
|
1059
|
-
-v
|
|
1087
|
+
-v "$HOME/.config/google-drive-mcp/tokens.json":/config/tokens.json \
|
|
1060
1088
|
google-drive-mcp
|
|
1061
1089
|
```
|
|
1062
1090
|
|
|
@@ -1081,10 +1109,10 @@ The Dockerfile expects the `dist/` directory to exist from your local build.
|
|
|
1081
1109
|
**Solution:** Ensure the token file is mounted with write permissions:
|
|
1082
1110
|
```bash
|
|
1083
1111
|
# Correct: tokens can be updated
|
|
1084
|
-
-v
|
|
1112
|
+
-v "$HOME/.config/google-drive-mcp/tokens.json":/config/tokens.json
|
|
1085
1113
|
|
|
1086
1114
|
# Wrong: read-only mount prevents token refresh
|
|
1087
|
-
-v
|
|
1115
|
+
-v "$HOME/.config/google-drive-mcp/tokens.json":/config/tokens.json:ro
|
|
1088
1116
|
```
|
|
1089
1117
|
|
|
1090
1118
|
### Debug Mode
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@piotr-agier/google-drive-mcp",
|
|
3
|
-
"version": "1.7.
|
|
3
|
+
"version": "1.7.5",
|
|
4
4
|
"description": "Google Drive MCP Server - Model Context Protocol server providing secure access to Google Drive, Docs, Sheets, and Slides through MCP clients e.g. Claude Desktop",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "Piotr Agier <piotr.agier@gmail.com>",
|