Bug Description
After successfully setting an active account using set_active_account, other MCP tools consistently report "No currently active accountId" despite the account setting appearing successful.
Environment
- OS: macOS 24.6.0
- IDE: Cursor with MCP integration
- Account ID: ed3b172a76f48c5ae3cffca0de8b9417
- MCP Servers: bindings, builds, docs (all connected)
Steps to Reproduce
- Connect to Cloudflare MCP servers
- Call
set_active_account with valid account ID
- Immediately call any non-Workers tool (e.g.,
r2_buckets_list, kv_namespaces_list, hyperdrive_configs_list)
- Observe "No currently active accountId" error
Expected Behavior
All MCP tools should work after setting the active account.
Actual Behavior
- ✅ Workers MCP works perfectly - can list workers without issues
- ❌ Other MCPs fail consistently with "No currently active accountId"
- ❌ Account persistence doesn't work across different MCP services
Affected Tools
r2_buckets_list
kv_namespaces_list
hyperdrive_configs_list
list_gateways (AI Gateway)
- Any other non-Workers Cloudflare MCP tools
Workaround
Using wrangler CLI works reliably for all operations.
Additional Context
This suggests there might be a difference in how the Workers MCP handles account persistence compared to other MCP services. The issue persists across MCP server restarts and appears to be a systemic problem with account state management.