8000 Gdrive MCP can access shared drives but cannot read files (error 404) · Issue #441 · modelcontextprotocol/servers · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
New issue

Have a question about this project? 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

Gdrive MCP can access shared drives but cannot read files (error 404) #441

Open
ladentraveler opened this issue Dec 29, 2024 · 0 comments
Open
Labels
bug Something isn't working

Comments

@ladentraveler
Copy link

Describe the bug
The Google Drive MCP server has limitations in accessing files from Shared Drives using the Google Drive API, which may prevent reliable file retrieval for users with files stored in Shared Drive environments.

To Reproduce
Steps to reproduce the behavior:

  1. Set up a Google Drive service account
  2. Configure the MCP server with service account credentials
  3. Attempt to list or read files from a Shared Drive
  4. Observe potential access or permission issues

Expected behavior
The MCP server should seamlessly retrieve files from both personal and Shared Drive environments without additional configuration.

Logs

# Example potential error log
HttpError: 404 File not found
Cannot access file in Shared Drive

Additional context

  • This issue affects organizations and teams using Google Workspace Shared Drives
  • Current implementation may require explicit supportsAllDrives configuration
  • Some file types or specific Shared Drive configurations might still cause access problems

Proposed Solution

  • Ensure comprehensive support for Shared Drive file access
  • Add robust error handling for different Shared Drive scenarios
  • Implement more detailed logging for Shared Drive file retrieval attempts

Technical Details

  • Google Drive API version: v3
  • Affected methods: files.list(), files.get(), files.export()
  • Requires testing with various Shared Drive and file type configurations
@ladentraveler ladentraveler added the bug Something isn't working label Dec 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant
0