Skip to content

Commit 4a37dfb

Browse files
Gkrumbach07claude
andcommitted
Reduce Google Workspace MCP OAuth scopes using granular permissions
Changes the Google Workspace MCP configuration from `--tools` to `--permissions` for more granular OAuth scope control. **Before:** - Requested ALL Gmail permissions (send, modify, delete, settings) - Requested ALL Drive permissions **After:** - Gmail: send level only (includes send, readonly, labels, compose) - Drive: full access (unchanged) **Removed scopes:** - gmail.modify (delete/trash emails) - gmail.settings.basic (change settings) This follows OAuth best practice of requesting minimum necessary scopes and reduces the attack surface by removing unnecessary Gmail permissions. **References:** - workspace-mcp granular permissions: https://github.com/taylorwilsdon/google_workspace_mcp#granular-permissions - Gmail permission levels are cumulative (readonly < organize < drafts < send < full) Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
1 parent cc9ad31 commit 4a37dfb

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,9 @@
2727
"command": "uvx",
2828
"args": [
2929
"workspace-mcp@1.14.2",
30-
"--tools",
31-
"drive",
32-
"gmail"
30+
"--permissions",
31+
"gmail:send",
32+
"drive:full"
3333
],
3434
"env": {
3535
"GOOGLE_MCP_CREDENTIALS_DIR": "${GOOGLE_MCP_CREDENTIALS_DIR}",

0 commit comments

Comments
 (0)