productivity
Google Drive MCP Integration for OpenAI Agents SDK
Connect Google Drive to OpenAI Agents SDK through the local KosmoKrator MCP gateway with scoped tools, credentials, and write policy.
Connect Google Drive to OpenAI Agents SDK
Attach KosmoKrator integration tools to OpenAI Agents SDK workflows through a local MCP gateway.
Start the KosmoKrator MCP gateway locally and point the OpenAI Agents SDK MCP tool at that process or wrapper. The gateway is local, scoped to this integration, and starts with
--write=deny so OpenAI Agents can inspect read-capable tools without receiving write access by default.
Google Drive MCP Config for OpenAI Agents SDK
Use headless JSON commands for CI-style execution and MCP for agent tool discovery.
{
"mcpServers": {
"kosmokrator-google-drive": {
"type": "stdio",
"command": "kosmo",
"args": [
"mcp:serve",
"--integration=google-drive",
"--write=deny"
]
}
}
} Run the Gateway Manually
kosmokrator mcp:serve --integration=google-drive --write=deny Why Use KosmoKrator Here
Expose only Google Drive instead of a broad multi-service tool list.
Reuse credentials already configured for the KosmoKrator CLI and Lua runtime.
Start read-only, then opt into ask or allow for trusted workspaces.
Google Drive Tools Visible to OpenAI Agents
OpenAI Agents sees stable MCP tool names generated from the Google Drive integration catalog.
| MCP tool | Source function | Type | Description |
|---|---|---|---|
integration__google_drive__gdrive_list_files | google-drive.gdrive_list_files | Read | List files and folders in Google Drive. Supports search queries (q), pagination, spaces (drive, appDataFolder, photos), and trashed filtering. |
integration__google_drive__gdrive_get_file | google-drive.gdrive_get_file | Read | Get metadata for a specific file or folder in Google Drive by its ID. Returns properties like name, mimeType, size, createdTime, modifiedTime, and parents. |
integration__google_drive__gdrive_create_file | google-drive.gdrive_create_file | Write | Create a new file in Google Drive. Creates the file metadata (name, mimeType, parent folder). For simple file creation without content upload, use uploadType "resumable" or "multipart" via the Google Drive API directly. |
integration__google_drive__gdrive_create_folder | google-drive.gdrive_create_folder | Write | Create a new folder in Google Drive. Optionally specify a parent folder to nest it inside. |
integration__google_drive__gdrive_list_changes | google-drive.gdrive_list_changes | Read | List changes to files and folders in Google Drive. Use pageToken from the initial startPageToken to begin tracking, then pass the returned next page token for subsequent requests. |
integration__google_drive__gdrive_get_current_user | google-drive.gdrive_get_current_user | Read | Get information about the authenticated Google Drive user, including display name, email address, and storage quota (usage, limit). |