Pin gws to 0.7.0 and switch to per-account isolated config dirs#2
Open
mquinnv wants to merge 1 commit into
Open
Pin gws to 0.7.0 and switch to per-account isolated config dirs#2mquinnv wants to merge 1 commit into
mquinnv wants to merge 1 commit into
Conversation
`gws mcp` was removed in v0.8.0, and the previous mint-token-once-at-startup wrapper died after 1hr — fatal for Claude Desktop. Replace with isolated per-account config dirs at ~/.config/gws/accounts/<name>/ using KEYRING_BACKEND=file, so `gws mcp` refreshes access tokens internally with no expiry. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Two related fixes:
Pin
@googleworkspace/clito0.7.0. Thegws mcpsubcommand was removed in v0.8.0 / PR #275 ("BREAKING CHANGE: Remove MCP server mode" — no detailed rationale in the changelog). Anyone runningnpm install -g @googleworkspace/clitoday gets0.22.xand the wrapper fails withUnknown service 'mcp'.0.7.0is the last version wheregws mcpexists.Replace the mint-token-at-startup wrapper with per-account isolated config dirs. The previous approach (Python-mint an access token from the exported refresh token, pass via
GOOGLE_WORKSPACE_CLI_TOKEN) worked for Claude Code where sessions are short, but in Claude Desktop the access token expires after ~1hr andgws mcpcan't refresh it (it doesn't have access to the refresh token). The fix is to give each account its ownGOOGLE_WORKSPACE_CLI_CONFIG_DIRwithGOOGLE_WORKSPACE_CLI_KEYRING_BACKEND=file, sogws mcphas its own encrypted credential store per account and can refresh tokens internally. Tested running for >1hr in Claude Desktop without re-auth issues.The new wrapper is a 5-line shim that sets the two env vars and execs
gws mcp— no Python token-minting needed.Other improvements
claude.aiGmail/Drive/Calendar connectors are read-only and may intercept tool calls from our write-capable MCPs (disable them in Settings → Connectors).gwscollision).Test plan
gws drive about getreturns the matching email)🤖 Generated with Claude Code