Skip to content

Commit 005806f

Browse files
Gkrumbach07Ambient Code Botclaude
authored
feat: add Gmail scopes and bump workspace-mcp to 1.17.1 (#1202)
## Summary - Add missing Gmail OAuth scopes (`readonly`, `labels`, `modify`, `compose`) required by workspace-mcp's cumulative `gmail:send` permission level - Bump `workspace-mcp` from `1.14.2` to `1.17.1` **Root cause**: The Google OAuth flow only requested `gmail.send`, but workspace-mcp with `--permissions gmail:send` requires the full cumulative scope chain. This caused Google MCP connections to fail silently in sessions. **Note**: Existing users will need to disconnect and reconnect Google from the Integrations page to pick up the new scopes. ## Test plan - [ ] Disconnect Google from Integrations page - [ ] Reconnect — verify OAuth consent screen shows Gmail permissions - [ ] Create session and confirm Google Workspace MCP connects (both Drive and Gmail tools available) 🤖 Generated with [Claude Code](https://claude.com/claude-code) <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **New Features** * Expanded Gmail integration with additional authorization scopes for label management, read-only access, message composition, and modification capabilities. * **Chores** * Updated Google Workspace integration to the latest version for improved compatibility and performance. <!-- end of auto-generated comment: release notes by coderabbit.ai --> Co-authored-by: Ambient Code Bot <bot@ambient-code.local> Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 7270194 commit 005806f

2 files changed

Lines changed: 7 additions & 1 deletion

File tree

components/backend/handlers/oauth.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,12 @@ func getOAuthProvider(provider string) (*OAuthProvider, error) {
7171
"https://www.googleapis.com/auth/drive",
7272
"https://www.googleapis.com/auth/drive.readonly",
7373
"https://www.googleapis.com/auth/drive.file",
74+
// Gmail scopes for gmail:send permission level (cumulative in workspace-mcp)
75+
// Includes: readonly, organize (labels+modify), drafts (compose), and send
76+
"https://www.googleapis.com/auth/gmail.readonly",
77+
"https://www.googleapis.com/auth/gmail.labels",
78+
"https://www.googleapis.com/auth/gmail.modify",
79+
"https://www.googleapis.com/auth/gmail.compose",
7480
"https://www.googleapis.com/auth/gmail.send",
7581
},
7682
}, nil

components/runners/ambient-runner/.mcp.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
"google-workspace": {
2727
"command": "uvx",
2828
"args": [
29-
"workspace-mcp@1.14.2",
29+
"workspace-mcp@1.17.1",
3030
"--permissions",
3131
"gmail:send",
3232
"drive:full"

0 commit comments

Comments
 (0)