-
Notifications
You must be signed in to change notification settings - Fork 24
feat: replace google drive tool bundle with Google Drive MCP server #708
New issue
Have a question about this project? 8000 Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
d8099cf
4b76a09
2c7e563
26b0d40
ba83665
8251d42
cf792f6
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
3.13 |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
# Obot Google Drive MCP Server | ||
- Obot Google Drive mcp server, converted from the google-drive tool bundle. | ||
- supports streamable HTTP | ||
- tools of this mcp server expect `cred_token`(access_token of google oauth) as part of the tool input. | ||
|
||
## Installation & Running | ||
|
||
### Option 1: Using uvx (Recommended) | ||
install from local directory: | ||
```bash | ||
uvx --from . obot-google-drive-mcp | ||
``` | ||
or stdio server: | ||
```bash | ||
uvx --from . obot-google-drive-mcp-stdio | ||
``` | ||
|
||
8000 | ### Option 2: Using uv (Development) | |
Install dependencies: | ||
```bash | ||
uv pip install | ||
``` | ||
|
||
Run the server: | ||
```bash | ||
uv run server.py | ||
``` | ||
|
||
## Testing | ||
|
||
### Unit-test with pytest | ||
``` | ||
uv run python -m pytest | ||
``` | ||
|
||
### Integration Testing | ||
|
||
#### Get Your Access Token | ||
This MCP server assumes Obot will take care of the Oauth2.0 flow and supply an access token. To test locally or without Obot, you need to get an access token by yourself. I use [postman workspace](https://blog.postman.com/how-to-access-google-apis-using-oauth-in-postman/) to create and manage my tokens. | ||
|
||
#### Local Example Client | ||
``` | ||
export GOOGLE_OAUTH_TOKEN=xxx | ||
``` | ||
and then | ||
``` | ||
uv run example_client.py | ||
``` |
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove if not needed.