feat: add GOOGLE_MCP_PROFILE for multi-account token storage#64
Merged
a-bonus merged 2 commits intoa-bonus:mainfrom Feb 23, 2026
Merged
feat: add GOOGLE_MCP_PROFILE for multi-account token storage#64a-bonus merged 2 commits intoa-bonus:mainfrom
a-bonus merged 2 commits intoa-bonus:mainfrom
Conversation
added 2 commits
February 22, 2026 13:24
When the GOOGLE_MCP_PROFILE env var is set, tokens are stored in a profile-specific subdirectory (e.g. ~/.config/google-docs-mcp/hoffman/). This allows using different Google accounts per project. Without the env var, behavior is unchanged (backward-compatible).
Document the multiple Google accounts feature with usage example, config snippet, and token storage layout.
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.
Closes #63
Summary
Adds support for a
GOOGLE_MCP_PROFILEenvironment variable that stores OAuth tokens in profile-specific subdirectories, enabling multiple Google accounts across different projects.Change
A two-line addition to
getConfigDir()insrc/auth.ts:Token storage with profiles
Usage
{ "mcpServers": { "google-docs": { "env": { "GOOGLE_CLIENT_ID": "...", "GOOGLE_CLIENT_SECRET": "...", "GOOGLE_MCP_PROFILE": "work" } } } }Backward compatible
Without
GOOGLE_MCP_PROFILEset, behavior is unchanged — tokens are stored in the default location.Test plan