Skip to content

Commit 6e06af0

Browse files
plossonclaude
andcommitted
fix(gmail): add gmail.modify scope for label and modify operations
Without gmail.modify, archive/mark and the new label CRUD + apply/remove commands fail with "insufficient authentication scopes". Existing profiles must be re-added (agentio gmail profile add --profile <name>) to consent to the broader scope. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent bbcb0c7 commit 6e06af0

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

src/auth/oauth.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ const GMAIL_SCOPES = [
77
'https://www.googleapis.com/auth/gmail.readonly', // search & read emails
88
'https://www.googleapis.com/auth/gmail.send', // send emails
99
'https://www.googleapis.com/auth/gmail.compose', // create/update drafts
10+
'https://www.googleapis.com/auth/gmail.modify', // archive, mark read/unread, label CRUD, modify labels on messages/threads
1011
'https://www.googleapis.com/auth/userinfo.email', // get email for profile naming
1112
];
1213

0 commit comments

Comments
 (0)