add Gmail & drive, both working
This commit is contained in:
@@ -34,6 +34,12 @@ DRIVE_READONLY_SCOPE = 'https://www.googleapis.com/auth/drive.readonly'
|
||||
# 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
|
||||
|
||||
# Gmail API scopes
|
||||
GMAIL_READONLY_SCOPE = 'https://www.googleapis.com/auth/gmail.readonly'
|
||||
GMAIL_SEND_SCOPE = 'https://www.googleapis.com/auth/gmail.send'
|
||||
# Optional, if you later need label management:
|
||||
# GMAIL_LABELS_SCOPE = 'https://www.googleapis.com/auth/gmail.labels'
|
||||
|
||||
# Base OAuth scopes required for user identification
|
||||
BASE_SCOPES = [
|
||||
USERINFO_EMAIL_SCOPE,
|
||||
@@ -51,8 +57,14 @@ DRIVE_SCOPES = [
|
||||
DRIVE_READONLY_SCOPE
|
||||
]
|
||||
|
||||
# Gmail-specific scopes
|
||||
GMAIL_SCOPES = [
|
||||
GMAIL_READONLY_SCOPE,
|
||||
GMAIL_SEND_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
|
||||
SCOPES = list(set(BASE_SCOPES + CALENDAR_SCOPES + DRIVE_SCOPES + GMAIL_SCOPES + [DRIVE_FILE_SCOPE])) # Add DRIVE_FILE_SCOPE and GMAIL_SCOPES
|
||||
|
||||
DEFAULT_PORT = 8000
|
||||
# Basic MCP server instance
|
||||
|
||||
Reference in New Issue
Block a user