codex icon indicating copy to clipboard operation
codex copied to clipboard

Google Drive connector connected but no mcp__codex_apps__google_drive tools are exposed in Codex Desktop

Open zinman opened this issue 6 months ago • 8 comments

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

  1. In Codex Desktop, connect Google Drive / Google Workspace from the ChatGPT app connections UI.
  2. Start a Codex Desktop thread in a local workspace.
  3. Ask: [@google-drive] list 3 last modified files I can access.
  4. The Google Drive plugin is recognized at the UI/prompt level.
  5. Tool discovery is attempted for Drive operations, including queries such as:
    • Google Drive list files modifiedTime orderBy
    • google drive search files list recent modified modifiedTime orderBy
    • mcp__codex_apps__google_drive list files
  6. 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-token could 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

  • #24373 reports Google Drive/Sheets tools exposed but missing write scopes / quota failures.
  • #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.

zinman avatar Jun 02 '26 13:06 zinman

Adding a related but slightly different reproduction from Codex Desktop on macOS.

Environment

  • Product: Codex Desktop on macOS
  • Bundled CLI: codex-cli 0.140.0-alpha.2
  • Google Drive was reauthenticated in the Codex macOS app before retrying.
  • A restart/new thread did not resolve the issue in this session.

Difference 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_profile under the Google Drive app namespace, then returned:

Unknown tool: google drive_get_profile

Earlier Drive metadata/search attempts showed the same pattern, for example:

Unknown tool: google drive_search

Local cache evidence

In the local Codex app tools cache, Google Drive entries appear to mix the normalized namespace with a spaced function prefix:

tool_namespace: codex_apps__google_drive
tool.name: google drive_get_profile
tool.name: google drive_get_file_metadata
tool.name: google drive_search

That makes this look like a name-normalization or dispatch mismatch: discovery surfaces Google Drive under the normalized google_drive app namespace, but the invocation path tries to route a spaced name such as google 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.

bornfp avatar Jun 16 '26 02:06 bornfp

Adding a confirmed clean-reinstall reproduction from Codex Desktop on macOS.

Environment

  • Date reproduced: 2026-09-01
  • Platform: macOS / darwin-arm64
  • Codex Desktop bundled CLI: codex-cli 0.151.0-alpha.7.2
  • Google Drive plugin: 0.1.16
  • Declared app connector: connector_5f3c8c41a1e54ad7a76272c89e2554fa
  • Retest task ID: 01a05d63-38aa-72b0-92d6-6c2b909924ba

Clean reproduction

  1. Uninstalled Google Drive from Codex.
  2. Reinstalled the Google Drive plugin through the supported plugin-install flow.
  3. Verified plugin/dependency metadata reports:
    • plugin installed: true
    • plugin enabled/user-enabled: true
    • canonical Google Drive dependency installed/enabled: true
    • unresolved apps: none
  4. Started a fresh projectless Codex task after reinstall.
  5. Explicitly instructed that task to use Google Drive—not browser automation or pasted content—to fetch a valid Google Doc that the same Google Workspace account can open in Chrome.
  6. Inspected the fresh task’s complete live tool registry.

Result

The fresh task exposed 243 tools, including 36 Google-service tools:

  • Google Calendar: 15
  • Gmail: 21
  • Google Drive: 0
  • Google Docs: 0

Expected Drive fetch/search and Docs get_document functions were undefined. Lazy tool_search was 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 tool comment: in this reproduction, the mcp__codex_apps__google_drive and 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.

michaellady avatar Sep 01 '26 14:09 michaellady

For my specific case, this was disabled for some reason despite reinstalling the whole plugin and reconnecting my account.

config.toml

[apps.connector_5f3c8c41a1e54ad7a76272c89e2554fa]
enabled = false

Changed it to true and restarted the app resolved it for me.

evilmtv avatar Oct 15 '26 07:10 evilmtv

Adding a related reproduction on Windows. The missing-tool symptom matches this issue, although the underlying cause has not been confirmed.

Environment

  • Codex Desktop app: 26.1021.31345, build 21828, production channel
  • Windows application package: 26.1021.3705.0
  • Bundled runtime: codex-cli 0.164.0-alpha.11.1
  • Google Drive plugin: 0.1.22
  • Windows build: 26300.9711, registry DisplayVersion 26H2
  • Date reproduced: October 26, 2026
  • Built-in update check: up_to_date

Missing Drive tools

Google Drive works in ChatGPT in the browser, but no Google Drive connector tools are exposed in Codex Desktop.

  • The plugin's skill instructions are available.
  • Explicitly mentioning the Google Drive plugin does not expose its tools.
  • A fresh Codex chat reproduces the problem.
  • A complete PC restart followed by another fresh-chat test does not resolve it.

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 avatar Oct 26 '26 16:10 jkernnl

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.

jkernnl avatar Oct 26 '26 16:10 jkernnl

Adding another confirmed Windows reproduction matching the missing-tool-exposure path.

Environment

  • Product: Codex Desktop on Windows
  • Workspace: ChatGPT Business (2 members)
  • Model: GPT-6.1 Sol, Medium reasoning
  • Google Drive plugin: 0.1.22
  • Diagnostic feedback ID: no-active-thread-01a18807-c8c0-7762-b32b-445c65981cc8

Checks completed

  • Google Drive by OpenAI is installed and enabled.
  • A primary Google account is connected through OAuth; the settings page reports OAuth as both supported and used.
  • All five bundled skills are enabled: Google Docs, Google Drive, Google Drive Comments, Google Sheets, and Google Slides.
  • A genuinely fresh Codex chat explicitly selected Google Drive and requested only three filenames and modified dates.
  • Codex responded that Google Drive search and recent-file tools were unavailable.
  • The same Drive/Docs/Sheets/Slides tools are absent from an OpenClaw Telegram session, even though the plugin skills are loaded there.
  • Current Codex usage was available during the reproduction (five-hour allowance 100% remaining; weekly allowance 69% remaining), so this was not an active usage-limit failure.
  • No files were opened or changed.

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.

ellischristiandr-byte avatar Oct 29 '26 14:10 ellischristiandr-byte

Confirmed workaround on my Windows system: add https://chatgpt.com to Norton’s Safe Web exclusions while keeping HTTPS scanning enabled.

Before the change:

  • codex_apps failed with “error decoding response body”.
  • Google Drive tools were unavailable in Work.
  • A public MCP endpoint returned malformed chunked HTTP data.
  • Its TLS certificate was issued by Norton Web/Mail Shield.

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.com to 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.

jkernnl avatar Nov 02 '26 23:11 jkernnl

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.

TsangKwunHei avatar Nov 20 '26 21:11 TsangKwunHei