Add Google Drive functionality

This commit is contained in:
Taylor Wilsdon
2025-05-12 13:52:53 -04:00
parent bdf44c46fe
commit 7096963f2b
4 changed files with 370 additions and 2 deletions

View File

@@ -28,6 +28,12 @@ OPENID_SCOPE = 'openid'
CALENDAR_READONLY_SCOPE = 'https://www.googleapis.com/auth/calendar.readonly'
CALENDAR_EVENTS_SCOPE = 'https://www.googleapis.com/auth/calendar.events'
# Google Drive scopes
DRIVE_READONLY_SCOPE = 'https://www.googleapis.com/auth/drive.readonly'
# Add other Drive scopes here if needed in the future, e.g.:
# DRIVE_METADATA_READONLY_SCOPE = 'https://www.googleapis.com/auth/drive.metadata.readonly'
DRIVE_FILE_SCOPE = 'https://www.googleapis.com/auth/drive.file' # Per-file access
# Base OAuth scopes required for user identification
BASE_SCOPES = [
USERINFO_EMAIL_SCOPE,
@@ -40,8 +46,13 @@ CALENDAR_SCOPES = [
CALENDAR_EVENTS_SCOPE
]
# Combined scopes for calendar operations
SCOPES = BASE_SCOPES + CALENDAR_SCOPES
# Drive-specific scopes
DRIVE_SCOPES = [
DRIVE_READONLY_SCOPE
]
# Combined scopes for all supported Google Workspace operations
SCOPES = list(set(BASE_SCOPES + CALENDAR_SCOPES + DRIVE_SCOPES + [DRIVE_FILE_SCOPE])) # Add DRIVE_FILE_SCOPE
DEFAULT_PORT = 8000
# Basic MCP server instance