Crash: 'useMcpToggleEnabled must be used within MCPConnectionManager' when pressing arrow key in /plugins during active prompt

Resolved 💬 2 comments Opened Apr 6, 2026 by Devansh-bit Closed May 17, 2026

Description

Claude Code crashes with the error useMcpToggleEnabled must be used within MCPConnectionManager when entering the /plugins slash command while a prompt is actively running, then pressing the left arrow key.

Steps to reproduce

  1. Start Claude Code (claude)
  2. Enter a prompt and let it start processing
  3. While the prompt is running, type /plugins
  4. Press the left arrow key
  5. Claude Code crashes with the error

Error output

ERROR  useMcpToggleEnabled must be used within MCPConnectionManager

/$bunfs/root/src/entrypoints/cli.js:5818:13528

Stack trace

- f4H (/$bunfs/root/src/entrypoints/cli.js:5818:13528)
- BX7 (/$bunfs/root/src/entrypoints/cli.js:5820:36121)
- S5 (/$bunfs/root/src/entrypoints/cli.js:478:20987)
- C5 (/$bunfs/root/src/entrypoints/cli.js:478:39525)
- wL (/$bunfs/root/src/entrypoints/cli.js:478:50218)
- XbH (/$bunfs/root/src/entrypoints/cli.js:478:86889)
- PbH (/$bunfs/root/src/entrypoints/cli.js:478:85851)
- G9H (/$bunfs/root/src/entrypoints/cli.js:478:85672)
- K4$ (/$bunfs/root/src/entrypoints/cli.js:478:82420)
- EH (/$bunfs/root/src/entrypoints/cli.js:478:6482)

Environment

  • Claude Code version: 2.1.92
  • OS: Ubuntu Linux (6.17.0-19-generic)
  • Shell: bash

View original on GitHub ↗

This issue has 2 comments on GitHub. Read the full discussion on GitHub ↗