google-tools-mcp 1.0.6 → 1.0.7

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.
@@ -73,14 +73,19 @@ export function register(server) {
73
73
  queryParts.push(`modifiedTime > '${cutoffDate}'`);
74
74
  }
75
75
 
76
- const response = await drive.files.list({
76
+ // Drive API does not allow orderBy when using fullText contains
77
+ const useFullText = !!args.query;
78
+ const listParams = {
77
79
  q: queryParts.join(' and '),
78
80
  pageSize: args.maxResults,
79
- orderBy: args.orderBy === 'name' ? 'name' : args.orderBy,
80
81
  fields: 'files(id,name,mimeType,modifiedTime,createdTime,size,webViewLink,owners(displayName,emailAddress))',
81
82
  supportsAllDrives: true,
82
83
  includeItemsFromAllDrives: true,
83
- });
84
+ };
85
+ if (!useFullText) {
86
+ listParams.orderBy = args.orderBy === 'name' ? 'name' : args.orderBy;
87
+ }
88
+ const response = await drive.files.list(listParams);
84
89
 
85
90
  const files = (response.data.files || []).map((file) => ({
86
91
  id: file.id,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "google-tools-mcp",
3
- "version": "1.0.6",
3
+ "version": "1.0.7",
4
4
  "description": "Combined Google Workspace MCP server (Drive, Docs, Sheets, Gmail) with lazy-loaded tool categories",
5
5
  "type": "module",
6
6
  "bin": {