claude-code - 💡(How to fix) Fix [BUG] Routines: claude.ai MCP connectors (Gmail, Slack, Notion) not injected in remote session

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…

Error Message

API Error: 400 messages.32.content.1.text: cache_control cannot be set for empty text blocks

Model response during execution: mcp__gmail__search_threads — No disponible mcp__slack__post_message — No disponible mcp__notion__create_page — No disponible

Code Example

API Error: 400 messages.32.content.1.text: 
cache_control cannot be set for empty text blocks

Model response during execution:
mcp__gmail__search_threads — No disponible
mcp__slack__post_message — No disponible
mcp__notion__create_page — No disponible
RAW_BUFFERClick to expand / collapse

Preflight Checklist

  • I have searched existing issues and this hasn't been reported yet
  • This is a single bug report (please file separate reports for different bugs)
  • I am using the latest version of Claude Code

What's Wrong?

Connectors configured in the Routine UI panel (Gmail, Slack, Notion) are not loaded as MCP tools when the routine executes in remote session. The model cannot find any of the configured connector tools and responds as if no connectors are available.

What Should Happen?

Connectors enabled in the Routine panel should inject their MCP tools into the session automatically on startup, without requiring a user message to warm the session.

Error Messages/Logs

API Error: 400 messages.32.content.1.text: 
cache_control cannot be set for empty text blocks

Model response during execution:
mcp__gmail__search_threads — No disponible
mcp__slack__post_message — No disponible
mcp__notion__create_page — No disponible

Steps to Reproduce

  1. Connect Gmail, Slack and Notion at claude.ai/settings/connectors
  2. Create a Routine at claude.ai/code/routines with those three connectors enabled in the connector panel
  3. Add a prompt that calls Gmail search_threads as first action
  4. Execute the routine (manual trigger)
  5. Observe: model reports all MCP tools as unavailable

Claude Model

Sonnet (default)

Is this a regression?

Yes, this worked in a previous version

Last Working Version

Last Working Version: Deja vacío (no sabes cuándo funcionó)

Claude Code Version

Web (claude.ai/code/routines) — no CLI version available

Platform

Anthropic API

Operating System

Windows

Terminal/Shell

Other

Additional Information

Related issues: #43397, #47383, #22726 Same connectors work correctly in normal interactive claude.ai chat sessions. Only fails in Routines remote execution context.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING

claude-code - 💡(How to fix) Fix [BUG] Routines: claude.ai MCP connectors (Gmail, Slack, Notion) not injected in remote session