[BUG] Cloud MCPs not loaded in `claude -p` (print/non-interactive) mode
Preflight Checklist
- [x] I have searched existing issues and this hasn't been reported yet
- [x] This is a single bug report (please file separate reports for different bugs)
- [x] I am using the latest version of Claude Code
What's Wrong?
Description
Cloud MCPs (Slack, Gmail, Google Calendar, Atlassian) that are authenticated and working correctly in
interactive mode are completely absent when using claude -p (non-interactive/print) mode. This is a
regression — the same commands were working until approximately March 18, 2026.
## Environment
- Claude Code version: 2.1.80
- Platform: Linux (Ubuntu)
- Cloud MCPs configured: Slack, Gmail, Google Calendar, Atlassian
- All MCPs show "✓ Connected" via
claude mcp list - OAuth credentials are valid (not expired), with
user:mcp_serversscope
## Actual Behavior
Cloud MCPs are completely absent in -p mode. Only built-in deferred tools are present.
## Regression Evidence
This crontab entry was running successfully for 6 consecutive days before it began failing:
```cron
30 8 * ~/.local/bin/claude -p "/morning-brew" >> ~/.claude/morning-brew.log 2>&1
The log shows 6 successful runs followed by consistent failures starting around March 18–19, 2026, with no
changes to local configuration or credentials during that period.
What Should Happen?
Cloud MCPs that are authenticated and connected should be available in -p mode, identical to interactive mode.
Error Messages/Logs
Steps to Reproduce
- Authenticate and connect cloud MCPs. Confirm they are connected:
claude mcp list
All four show "✓ Connected".
- In interactive mode, verify cloud MCP tools are available:
claude
▎ list your available MCP tools
Cloud MCP tools (mcp__claude_ai_Slack__*, mcp__claude_ai_Gmail__*, etc.) appear as deferred tools and
work correctly.
- In non-interactive mode, run the same query:
claude -p "list your available MCP tools"
Result: Zero MCP tools appear. Only built-in deferred tools are listed.
- Alternatively, invoke a skill that depends on cloud MCPs:
claude -p "/morning-brew"
Result: Fails because all mcp__claude_ai_* tools are missing.
Claude Model
Not sure / Multiple models
Is this a regression?
Yes, this worked in a previous version
Last Working Version
_No response_
Claude Code Version
2.1.80 (Claude Code)
Platform
Anthropic API
Operating System
Ubuntu/Debian Linux
Terminal/Shell
Xterm
Additional Information
_No response_
This issue has 4 comments on GitHub. Read the full discussion on GitHub ↗