mcp-google-multi 4.2.0 → 4.3.0-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.
@@ -311,8 +311,14 @@ export function registerDriveTools(server) {
311
311
  newParentFolderId: z.string().optional().describe('Move to this folder'),
312
312
  localPath: z.string().optional().describe('Replace file content with this local file'),
313
313
  mimeType: z.string().optional().describe('MIME type of the replacement file (required if localPath is provided)'),
314
+ convertTo: z.enum([
315
+ 'application/vnd.google-apps.document',
316
+ 'application/vnd.google-apps.spreadsheet',
317
+ 'application/vnd.google-apps.presentation',
318
+ 'application/vnd.google-apps.drawing',
319
+ ]).optional().describe('When replacing content via localPath, convert the new content into this native Google Workspace type on import (e.g. replace a Google Doc body from a local .docx). Source must be an importable format.'),
314
320
  },
315
- }, async ({ account, fileId, newName, newParentFolderId, localPath: localPathArg, mimeType: mimeTypeArg }) => {
321
+ }, async ({ account, fileId, newName, newParentFolderId, localPath: localPathArg, mimeType: mimeTypeArg, convertTo }) => {
316
322
  try {
317
323
  const auth = await getClient(account);
318
324
  const drive = google.drive({ version: 'v3', auth });
@@ -335,6 +341,8 @@ export function registerDriveTools(server) {
335
341
  mimeType: mimeTypeArg ?? (mime.lookup(localPathArg) || 'application/octet-stream'),
336
342
  body: fs.createReadStream(localPathArg),
337
343
  };
344
+ if (convertTo)
345
+ requestBody.mimeType = convertTo;
338
346
  }
339
347
  const res = await drive.files.update(params);
340
348
  return {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mcp-google-multi",
3
- "version": "4.2.0",
3
+ "version": "4.3.0-alpha.1",
4
4
  "description": "MCP server for Gmail, Google Drive, Calendar, Sheets, Docs, and Contacts with multi-account support",
5
5
  "type": "module",
6
6
  "license": "MIT",