mcp-google-multi 6.0.0-alpha.52 → 6.0.0-alpha.53

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -48,12 +48,14 @@ function anyEncFileUnder(dir) {
48
48
  }
49
49
  // Glob the token dir instead of iterating registered aliases: an orphan .enc
50
50
  // (alias removed from the registry, or a partial GOOGLE_ACCOUNTS override in
51
- // one client) must still stop a fresh key from being minted. The walk is
52
- // recursive and also covers configDir()/tenants (the tenant-namespaced token
53
- // root): a flat scan returns false the moment tokens nest, and minting a
54
- // fresh MASTER_KEY over existing .enc files bricks them irreversibly.
51
+ // one client) must still stop a fresh key from being minted. TOKEN_STORE_PATH
52
+ // may relocate the token dir outside configDir(), so scan it directly; the
53
+ // recursive configDir() walk then covers BOTH the tenant-namespaced token root
54
+ // (tenants/<id>) AND any top-level master-key-encrypted registry beside it
55
+ // (e.g. a downstream tenant map / invite store). Minting a fresh MASTER_KEY
56
+ // over any existing .enc bricks it irreversibly, so the scan must see them all.
55
57
  function anyTokenFileExists() {
56
- return anyEncFileUnder(getTokenDir()) || anyEncFileUnder(path.join(configDir(), 'tenants'));
58
+ return anyEncFileUnder(getTokenDir()) || anyEncFileUnder(configDir());
57
59
  }
58
60
  function readKeyFile(filePath) {
59
61
  try {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mcp-google-multi",
3
- "version": "6.0.0-alpha.52",
3
+ "version": "6.0.0-alpha.53",
4
4
  "mcpName": "io.github.bakissation/mcp-google-multi",
5
5
  "description": "Local MCP server for Google Workspace (Gmail, Drive, Calendar, Sheets, Docs, Contacts, Tasks, Meet, Search Console, +Forms/Chat/Admin) across multiple accounts — OAuth-only, encrypted token storage, deny-by-default writes.",
6
6
  "type": "module",