mcp-google-multi 5.1.1-beta.1 → 5.1.2-alpha.1

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.
@@ -135,7 +135,9 @@ function writeTokenAtomic(alias, data) {
135
135
  const tmp = path.join(dir, `.${path.basename(p)}.${process.pid}.${randomBytes(6).toString('hex')}.tmp`);
136
136
  try {
137
137
  fs.writeFileSync(tmp, encryptToken(data, masterKey()), { mode: 0o600, flag: 'wx' });
138
- const fd = fs.openSync(tmp, 'r');
138
+ // Open read-write, not read-only: on Windows fsync maps to FlushFileBuffers,
139
+ // which returns EPERM on a read-only handle.
140
+ const fd = fs.openSync(tmp, 'r+');
139
141
  try {
140
142
  fs.fsyncSync(fd);
141
143
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mcp-google-multi",
3
- "version": "5.1.1-beta.1",
3
+ "version": "5.1.2-alpha.1",
4
4
  "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.",
5
5
  "type": "module",
6
6
  "license": "MIT",