Skip to content

Account persistence issue: set_active_account succeeds but other MCP tools report "No currently active accountId" #226

@sh0umik

Description

@sh0umik

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

  1. Connect to Cloudflare MCP servers
  2. Call set_active_account with valid account ID
  3. Immediately call any non-Workers tool (e.g., r2_buckets_list, kv_namespaces_list, hyperdrive_configs_list)
  4. 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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions