Repository navigation
Description
What version of Codex are you using?
Unknown from this session.
What subscription do you have?
Unknown.
What platform is your computer?
macOS / darwin-arm64, Codex Desktop.
What issue are you seeing?
The Google Drive connector appears to be installed and connected, and can be selected/mentioned in a Codex Desktop thread, but no Google Drive MCP tools are exposed to the model/tool runtime.
This is not a Google Drive API permission failure: the failure happens earlier, during tool discovery/routing, before any Drive API call can be attempted.
Repro steps
- In Codex Desktop, connect Google Drive / Google Workspace from the ChatGPT app connections UI.
- Start a Codex Desktop thread in a local workspace.
- Ask:
[@google-drive] list 3 last modified files I can access. - The Google Drive plugin is recognized at the UI/prompt level.
- Tool discovery is attempted for Drive operations, including queries such as:
Google Drive list files modifiedTime orderBygoogle drive search files list recent modified modifiedTime orderBymcp__codex_apps__google_drive list files
- Reconnect all Google connections from the ChatGPT app and retry.
Expected behavior
Codex should expose callable tools under a Google Drive namespace, such as mcp__codex_apps__google_drive..., allowing file discovery/listing/search against Drive.
Observed behavior
Tool discovery returns tools for other installed connectors, including GitHub, Slack, Figma, Notion, GBrain, etc., but no mcp__codex_apps__google_drive namespace/tools are present.
The Google Drive plugin skill files are present locally under the plugin cache and mention the expected connector namespace, but the runtime callable tool surface never includes it.
Troubleshooting already tried
- Disconnected and reconnected Google Workspace/Drive via the ChatGPT app connections UI.
- Retried tool discovery after reconnecting.
- Verified other connector namespaces are exposed in the same session.
- Checked for local CLI fallbacks; local
gcloud auth print-access-tokencould not refresh non-interactively, but this is separate from the Codex connector issue.
Why this seems like a Codex/OpenAI bug
The connected app appears to exist, but Codex Desktop does not expose the Drive MCP namespace at all. Re-authentication cannot fix a missing tool namespace because no Drive API request is ever made.
Related but not exact reports
- Google Drive Sheets connector can read spreadsheet but cannot write after plugin reinstall; shared read quota also returns 429 #24373 reports Google Drive/Sheets tools exposed but missing write scopes / quota failures.
- Plugins not showing in Codex v0.125.0 (Only 2 OpenAI plugins visible) #19701 reports broader plugin visibility/listing problems.
This issue is specifically: Google Drive is connected/selected, but mcp__codex_apps__google_drive tools are missing from the callable tool surface.
Activity
bornfp commentedon Jun 16, 2026
Adding a related but slightly different reproduction from Codex Desktop on macOS.
Environment
codex-cli 0.140.0-alpha.2Difference from the original report
In my current session, Google Drive tools are now discoverable by Codex tool discovery, but actual calls still fail at dispatch time with
Unknown tool.For example, a read-only profile smoke exposed
_get_profileunder the Google Drive app namespace, then returned:Earlier Drive metadata/search attempts showed the same pattern, for example:
Local cache evidence
In the local Codex app tools cache, Google Drive entries appear to mix the normalized namespace with a spaced function prefix:
That makes this look like a name-normalization or dispatch mismatch: discovery surfaces Google Drive under the normalized
google_driveapp namespace, but the invocation path tries to route a spaced name such asgoogle drive_get_profile, which the dispatcher cannot resolve.Expected behavior
If the Google Drive app is connected and the tools are exposed, a read-only call such as
_get_profile,_get_file_metadata, or search should either execute or return a Google/OAuth/app-permission error. It should not fail as an unknown Codex tool after discovery succeeds.Why this does not look like OAuth scope failure
This happens before a Google Drive API request appears to run. OAuth/scope problems usually produce missing-permission, connection, or reauthorization errors. Here the failure is the Codex runtime not recognizing the tool name it is trying to dispatch.
Hope this helps narrow #25854 from missing tool exposure to a related exposed-but-uncallable tool routing case.
michaellady commentedon Sep 1, 2026
Adding a confirmed clean-reinstall reproduction from Codex Desktop on macOS.
Environment
codex-cli 0.151.0-alpha.7.20.1.16connector_5f3c8c41a1e54ad7a76272c89e2554fa01a05d63-38aa-72b0-92d6-6c2b909924baClean reproduction
truetruetrueResult
The fresh task exposed 243 tools, including 36 Google-service tools:
Expected Drive fetch/search and Docs
get_documentfunctions were undefined. Lazytool_searchwas unavailable. No explicit loader exception was surfaced, and no request reached Google.The same target document opens successfully in Chrome under the intended enterprise Google Workspace account, so this is not a file ACL or provider API failure. It fails before authentication/file access can be exercised.
Relation to this issue
This strengthens the original missing-tool-exposure path in #25854. It differs from the existing discoverable-but-
Unknown toolcomment: in this reproduction, themcp__codex_apps__google_driveand Google Docs namespaces never register at all, even after a clean uninstall/reinstall and a genuinely fresh task.Expected behavior: installing the Google Drive plugin should register the Drive, Docs, Sheets, and Slides actions described by the plugin and official Codex documentation.
evilmtv commentedon Oct 15, 2026
For my specific case, this was disabled for some reason despite reinstalling the whole plugin and reconnecting my account.
config.tomlChanged it to true and restarted the app resolved it for me.
jkernnl commentedon Oct 26, 2026
Adding a related reproduction on Windows. The missing-tool symptom matches this issue, although the underlying cause has not been confirmed.
Environment
26.1021.31345, build21828, production channel26.1021.3705.0codex-cli 0.164.0-alpha.11.10.1.2226300.9711, registry DisplayVersion26H2up_to_dateMissing Drive tools
Google Drive works in ChatGPT in the browser, but no Google Drive connector tools are exposed in Codex Desktop.
A plugin-list check outside the command sandbox reports:
{ "pluginId": "google-drive@openai-curated-remote", "version": "0.1.22", "installed": true, "enabled": true } A separate CLI reports: apps stable true plugins stable true prefer_mxc stable false No explicit local setting disabling the Drive connector was found in the inspected user configuration. In particular, we did not find the enabled = false setting described in the October 15 comment. The effective desktop-host configuration and centrally managed policy have not been fully inspected. Additional finding: codex_apps initialization failure A temporary diagnostic process was launched outside the command sandbox using: codex app-server --stdio The app-server JSON-RPC initialization succeeded. The following request then failed: { "id": 2, "method": "app/installed", "params": { "forceRefresh": true } } Returned error: failed to refresh installed connector runtime state: failed to refresh tools for MCP server 'codex_apps' Diagnostic stderr showed: worker quit with fatal: Transport channel closed, when Client(HttpRequest(HttpRequest("error decoding response body"))) handshaking with MCP server failed: HTTP request failed: error decoding response body, when send initialize request After three attempts: MCP server startup failed server_name: codex_apps Apps MCP startup reconnect failed; continuing with cached tools One captured occurrence was approximately 2026-10-26 15:42:09–15:42:11 UTC. This was a separate diagnostic app-server process without a threadId, not a direct inspection of the existing desktop chat. We therefore cannot establish that it uses exactly the same host context or that this error explains the desktop's missing tools. Diagnostic limitations - HTTP status and response headers were not available in the targeted diagnostic output. - The connector's effective callable state could not be obtained because the refresh failed. - The checked HTTP proxy and endpoint-override environment variables were unset. This does not rule out system proxies, network filters, or TLS inspection. - No credentials, cookies, response bodies, or document contents are included here. Possibly separate helper failure Browser and computer-use helper startup also failed with: failed to prepare MXC sandbox: permission path cannot be represented losslessly The user configuration already contains: [windows] sandbox = "elevated" Codex Desktop itself remains usable. The relationship between this helper failure and the connector failure is unknown. Could maintainers advise whether the codex_apps handshake error is relevant to this missing-tool issue, and how to safely inspect the existing desktop host's connector callability or retrieve only the failing HTTP status and non-sensitive response headers?jkernnl commentedon Oct 26, 2026
Additional finding: Gmail and Google Calendar tools are also absent from the available tool registry in the same Codex chat.
This suggests the tool-exposure problem may extend beyond Google Drive. It does not establish a shared root cause.
This check inspected tool availability only. No emails, calendar events, or other personal content were accessed, and nothing was modified.
ellischristiandr-byte commentedon Oct 29, 2026
Adding another confirmed Windows reproduction matching the missing-tool-exposure path.
Environment
0.1.22no-active-thread-01a18807-c8c0-7762-b32b-445c65981cc8Checks completed
Expected behavior
Selecting the connected Google Drive plugin in a fresh chat should mount its read-only search/list/recent-file tools. If authorization or policy blocks access, the runtime should return that specific error instead of exposing no callable Drive tools.
This appears to fail before any Google Drive API request is attempted.
jkernnl commentedon Nov 2, 2026
Confirmed workaround on my Windows system: add
https://chatgpt.comto Norton’s Safe Web exclusions while keeping HTTPS scanning enabled.Before the change:
codex_appsfailed with “error decoding response body”.Temporarily disabling HTTPS scanning made the Google Drive tools appear and read-only requests succeed. I then re-enabled HTTPS scanning and added only
https://chatgpt.comto Safe Web exclusions.Subsequent Google Drive metadata and folder-list requests succeeded, including after closing and reopening the app. A complete process restart was not independently verified.
No Google Drive files were created or modified. This workaround avoids disabling HTTPS scanning globally, but excludes chatgpt.com from Norton’s Safe Web inspection.
TsangKwunHei commentedon Nov 20, 2026
For anyone still seeing this on macOS, a useful check is to open a new local task and ask for the title of one test Doc by URL. Record whether a callable Drive tool appears and whether the call returns a title. That separates a missing tool from a search or sorting problem, and gives maintainers a repro without listing personal files.
I work on Zortex. If you still need that read, I can help try the same Doc through its separate local MCP connection in Codex. I checked that the current 0.2.2 download matches npm’s published checksum and that its MCP server lists tools in a clean environment. If you try it, a reply with “tool missing”, “sign-in failed”, or “read worked” is enough. No document contents needed.