@mcp-z/mcp-drive 2.4.0 → 2.4.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 +16 -9
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -2,6 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
MCP server for Google Drive integration with file operations, folder navigation, search capabilities, and sharing management
|
|
4
4
|
|
|
5
|
+
Requires Node.js >=20. The examples use `npx`, included with npm, to run this server and [@mcp-z/cli](https://github.com/mcp-z/cli).
|
|
6
|
+
|
|
5
7
|
## Common uses
|
|
6
8
|
|
|
7
9
|
- Search files and folders
|
|
@@ -13,6 +15,11 @@ MCP server for Google Drive integration with file operations, folder navigation,
|
|
|
13
15
|
|
|
14
16
|
MCP supports stdio and HTTP.
|
|
15
17
|
|
|
18
|
+
Both the 2025 and 2026-07-28 protocol revisions are served, over either transport, from the same
|
|
19
|
+
server. Your client negotiates whichever it speaks. A 2025 client keeps working with no change,
|
|
20
|
+
and support for it is not being dropped. The 2026-07-28 revision is stateless, so a client speaking
|
|
21
|
+
it sends no `initialize` handshake and carries no session id.
|
|
22
|
+
|
|
16
23
|
**Stdio**
|
|
17
24
|
```json
|
|
18
25
|
{
|
|
@@ -59,7 +66,7 @@ MCP supports stdio and HTTP.
|
|
|
59
66
|
|
|
60
67
|
## OAuth modes
|
|
61
68
|
|
|
62
|
-
Configure via environment variables or the `env` block in `.mcp.json`.
|
|
69
|
+
Configure via environment variables or the `env` block in `.mcp.json`. The configuration reference below lists every option.
|
|
63
70
|
|
|
64
71
|
### Loopback OAuth (default)
|
|
65
72
|
|
|
@@ -91,7 +98,7 @@ Example (http) - Create .mcp.json:
|
|
|
91
98
|
"mcpServers": {
|
|
92
99
|
"drive": {
|
|
93
100
|
"type": "http",
|
|
94
|
-
"url": "http://localhost:3000",
|
|
101
|
+
"url": "http://localhost:3000/mcp",
|
|
95
102
|
"start": {
|
|
96
103
|
"command": "npx",
|
|
97
104
|
"args": ["-y", "@mcp-z/mcp-drive", "--port=3000"],
|
|
@@ -106,7 +113,7 @@ Example (http) - Create .mcp.json:
|
|
|
106
113
|
|
|
107
114
|
Local (default): omit REDIRECT_URI → ephemeral loopback. Cloud: set REDIRECT_URI to your public /oauth/callback and expose the service publicly.
|
|
108
115
|
|
|
109
|
-
Note: start block is a helper in
|
|
116
|
+
Note: the `start` block is a helper in `npx @mcp-z/cli up` for starting an HTTP server from your `.mcp.json`. See [@mcp-z/cli](https://github.com/mcp-z/cli) for details.
|
|
110
117
|
|
|
111
118
|
### Service account
|
|
112
119
|
|
|
@@ -160,11 +167,11 @@ HTTP only. Requires a public base URL.
|
|
|
160
167
|
## How to use
|
|
161
168
|
|
|
162
169
|
```bash
|
|
163
|
-
#
|
|
164
|
-
mcp-z inspect --servers drive --tools
|
|
170
|
+
# Start the configured server and list its tools
|
|
171
|
+
npx -y @mcp-z/cli inspect --servers drive --tools
|
|
165
172
|
|
|
166
|
-
# Call a tool
|
|
167
|
-
mcp-z call drive files-search '{"query":"name contains \\\"report\\\""}'
|
|
173
|
+
# Call a tool after authorizing Google Drive
|
|
174
|
+
npx -y @mcp-z/cli call-tool drive files-search '{"query":"name contains \\\"report\\\""}'
|
|
168
175
|
```
|
|
169
176
|
|
|
170
177
|
## Tools
|
|
@@ -189,7 +196,7 @@ mcp-z call drive files-search '{"query":"name contains \\\"report\\\""}'
|
|
|
189
196
|
|
|
190
197
|
## Configuration reference
|
|
191
198
|
|
|
192
|
-
See `server.json` for all supported environment variables, CLI arguments, and defaults.
|
|
199
|
+
See [`server.json`](https://github.com/mcp-z/mcp-drive/blob/master/server.json) for all supported environment variables, CLI arguments, and defaults.
|
|
193
200
|
|
|
194
201
|
## Storage backends
|
|
195
202
|
|
|
@@ -207,6 +214,6 @@ TOKEN_STORE_URI=redis://localhost:6379 mcp-drive
|
|
|
207
214
|
|
|
208
215
|
A protocol whose adapter is missing fails at startup naming the package to install.
|
|
209
216
|
|
|
210
|
-
|
|
217
|
+
## Documentation
|
|
211
218
|
|
|
212
219
|
[API Docs](https://mcp-z.github.io/mcp-drive)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mcp-z/mcp-drive",
|
|
3
|
-
"version": "2.4.
|
|
3
|
+
"version": "2.4.1",
|
|
4
4
|
"description": "MCP server for Google Drive integration with file operations, folder navigation, search capabilities, and sharing management",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"drive",
|
|
@@ -68,7 +68,7 @@
|
|
|
68
68
|
"version": "tsds version"
|
|
69
69
|
},
|
|
70
70
|
"dependencies": {
|
|
71
|
-
"@googleapis/drive": "^
|
|
71
|
+
"@googleapis/drive": "^25.0.0",
|
|
72
72
|
"@mcp-z/oauth": "^2.0.0",
|
|
73
73
|
"@mcp-z/oauth-google": "^2.0.1",
|
|
74
74
|
"@mcp-z/server": "^2.2.0",
|