MCP connectors not loaded in CCR scheduled trigger sessions
Resolved 💬 3 comments Opened Apr 7, 2026 by tgevorgyan-provectus Closed Apr 10, 2026
Bug
MCP connectors attached to a scheduled trigger via mcp_connections are not available as tools in the CCR agent session. The agent reports "No MCP tools available" despite connectors being properly configured.
Environment
- Claude Code version: 2.1.42
- CCR environment type:
cloud_default - Container:
sandbox-ccr-default
Steps to reproduce
- Connect Google Calendar and Slack connectors on
claude.ai/settings/connectors - Create a scheduled trigger with
mcp_connectionsreferencing the connector UUIDs:
"mcp_connections": [
{"connector_uuid": "...", "name": "Slack", "url": "https://mcp.slack.com/mcp"},
{"connector_uuid": "...", "name": "Google-Calendar", "url": "https://gcal.mcp.claude.com/mcp"}
]
- Run the trigger (manually or on schedule)
- Agent reports: "No MCP tools available"
Root cause (from diagnostics)
We ran extensive diagnostics inside the CCR container and found:
- The platform generates an MCP config file at
/tmp/mcp-config-<session-id>.jsonwith correct proxy URLs routed throughapi.anthropic.com/v2/ccr-sessions/<session>/mcp:
{
"mcpServers": {
"Google-Calendar": {
"url": "https://api.anthropic.com/v2/ccr-sessions/<session-id>/mcp?...",
"type": "http"
},
"Slack": {
"url": "https://api.anthropic.com/v2/ccr-sessions/<session-id>/mcp?...",
"type": "http"
}
}
}
- However,
~/.claude/settings.jsonin the container has NO MCP entries. Claude Code loads MCP servers fromsettings.jsonat startup only.
- The MCP config in
/tmp/is never copied tosettings.jsonbefore Claude Code starts.
- Injecting the config mid-session doesn't work — we tested writing the MCP config into
settings.jsonvia bash during the session. The agent confirmed: "MCP tools configured mid-session are only available when Claude Code starts a new session — they can't be loaded dynamically."
- The proxy endpoint requires authentication —
curlto the MCP proxy URL from inside the container returns "authentication required", so the agent can't call the APIs directly via bash either.
Expected behavior
MCP connectors attached via the trigger API (mcp_connections) should be available as tools in the CCR session. The platform should either:
- Copy
/tmp/mcp-config-*.jsoninto~/.claude/settings.jsonbefore starting Claude Code - Or have Claude Code read the
/tmp/mcp-config-*.jsonfile at startup
Workaround
None found. The MCP config exists in the container but Claude Code never reads it.
This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗