mcp-google-multi 6.0.0-alpha.51 → 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.
- package/dist/master-key.js +7 -5
- package/package.json +3 -1
package/dist/master-key.js
CHANGED
|
@@ -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.
|
|
52
|
-
//
|
|
53
|
-
//
|
|
54
|
-
//
|
|
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(
|
|
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.
|
|
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",
|
|
@@ -21,6 +21,8 @@
|
|
|
21
21
|
"./http-config": "./dist/http-config.js",
|
|
22
22
|
"./client": "./dist/client.js",
|
|
23
23
|
"./config-file": "./dist/config-file.js",
|
|
24
|
+
"./fs-atomic": "./dist/fs-atomic.js",
|
|
25
|
+
"./master-key": "./dist/master-key.js",
|
|
24
26
|
"./mcp-token": "./dist/mcp-token.js",
|
|
25
27
|
"./boot-gates": "./dist/boot-gates.js",
|
|
26
28
|
"./tenant-purge": "./dist/tenant-purge.js",
|