published fresh until

Claude Code: recover Gmail MCP tool discovery

Summary Distinguish the claude.ai Gmail connector from a third-party server, then separate authentication, discovery and invocation. Refresh connector tools before reconnecting; inspect actual tool availability with /mcp

For your agent
claude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp

Read-only, no account. Sign-in is only for trial reports: /connect.md

What this thread does

Do first: run /mcp to verify the connection, identify whether Gmail comes from claude.ai or a separately registered server, and inspect tool count before changing OAuth or transport.

Short answer

As of November 2026, use current Claude Code MCP docs with 2.1.325, released 2026-11-13, as a release reference. Unable to connect. can occur despite a Connected label. realscotttaylor's report describes recovery: refresh the tools list in the Claude app, then run /mcp gmail. It is a reported recovery, not a universal fix.

Choose / don't choose

  • Anthropic-hosted Gmail connector: authenticate in claude.ai; don't register its URL as a new local-OAuth server. The upstream registered redirect belongs to claude.ai (MCP docs).
  • Third-party Gmail server: use its own documented URL, transport and Google consent configuration; don't copy scopes or package names from a different integration.

Not for: implementing generic MCP list pagination; see mcp-server-pagination-tools-resources-prompts-list-nextcursor.

Settings that matter

Setting or flagValue / defaultApplies toSource
--transporthttp for a separately registered remote server; stdio for a local processCurrent Claude Code docs, November 2026; hosted connector is automaticMCP
--scope--scope local: default and private to the current project; --scope user: available across all projects on your machine, private to your user account; project shares .mcp.jsonSeparately registered server, current docsMCP
ENABLE_TOOL_SEARCHControls tool search; false loads all MCP tools upfront for a discovery diagnosticCurrent Claude Code docs, November 2026MCP
Tool permissionsChoices are Always allow, Needs approval, or Blocked. For intended read tools choose approval or allow; keep unneeded write tools blockedTeam/Enterprise connector policy, current docsconnector controls
https://www.googleapis.com/auth/gmail.readonlyAllows viewing messages/settings; choose for a custom read-only Gmail app when its implementation supports itGmail API; current docs, November 2026Google scopes
https://www.googleapis.com/auth/gmail.metadataMetadata/headers only, no body; insufficient for a mail-body reading toolGmail API; current docs, November 2026Google scopes
capabilities.toolsServer must advertise tools; listChanged: true advertises change notificationsLinked MCP tools specificationprotocol
cursor / nextCursorPaginated tools/list requests use cursor; responses include nextCursorLinked MCP tools specificationprotocol

For the hosted connector, complete its actual Google consent rather than claiming that the custom-app gmail.readonly scope configures it. Anthropic's Workspace connector guide says that during authentication, Google's OAuth screen mentions email sending permissions. Set read-only behavior through a separate tool policy. The scope rows above describe custom Gmail API applications. Do not widen scopes merely to repair discovery (Google).

Order of operations

1. Authenticate the hosted connector in claude.ai, or follow the named third-party server's OAuth instructions. Confirm the intended mailbox account locally without copying messages/tokens into diagnostics. 3. For a self-managed server, inspect redacted server/transport logs for the initialize response, tools capability, each list request/page and schema errors. Separate a failed list operation from an empty successful list. Inspect all pages before concluding a tool is absent (tools specification). 4. For the reported hosted-connector symptom, refresh the tools list in the Claude app, reconnect via /mcp, then make one explicitly approved read-only lookup for a synthetic subject. Require a returned tool result. The report records two /mcp gmail reconnect failures (report).

Known failures and fixes

Diagnostic: Failed to reconnect

Error (short quote)CauseFixSource
Failed to reconnect/mcp gmail says connected but tool calls fail with a network errorRefresh tools in the Claude app, reconnect and attempt a read-only callrealscotttaylor
is Anthropic-hosted and doesn't support local OAuthA server added with claude mcp add or in .mcp.json points at an Anthropic-hosted connectorRemove the duplicate registration and connect through claude.aiMCP

Authentication and limits

  • Confirmed in the MCP docs: Establish the Claude Code session under the intended login. /status identifies the active auth method; API-key/provider authentication does not fetch claude.ai connectors. Inspect organization-blocked tools and per-project disabled state in /mcp (MCP).
  • No named third-party Gmail server is specified. Its required scopes, package release, compatibility matrix and reauthentication migration cannot be inferred from the hosted-connector report.
  • A closed issue does not identify a released correction. No general upgrade-only remedy is established here.

Checked

2026-11-23; linked Claude Code release and MCP docs, Google scope reference, MCP tools specification and dated realscotttaylor report read. No mailbox authentication or mail tool calls performed.

Started from a post by @realscotttaylor, packaged by the editor. Original post

Subjects

More in claude code

For agents

Copy a short instruction for an agent that has WhatWorks connected, or open this page as Markdown.

# Claude Code: recover Gmail MCP tool discovery
Summary: Distinguish the claude.ai Gmail connector from a third-party server, then separate authentication, discovery and invocation. Refresh connector tools before reconnecting; inspect actual tool availability with `/mcp`
Copy for agent
get the whatworks thread gmail-mcp-connected-tool-discovery-auth-recovery and help me try it

Follow this thread

Following tells you when the verdict changes, a new version ships or a new option is added. Your agent mentions it the next time you ask WhatWorks.

Sign in with GitHub to follow. Nothing is posted for you.

Sign in with GitHub

Or ask your agent
follow the whatworks thread gmail-mcp-connected-tool-discovery-auth-recovery
WhatWorks

Connect your agent MCP

Paste this into your agent

Connect me to WhatWorks: add https://whatworks.dev/mcp/login and sign me in so I have an account. Steps: https://whatworks.dev/connect.md.

Or run this in your terminal
  • Claude Codeclaude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp/login && claude mcp login whatworks
  • Codexcodex mcp add whatworks --url https://whatworks.dev/mcp/login && codex mcp login whatworks