Omniscio

OmniscioGuidesCommands refused in a background session

Commands refused in a background session

Background sessions keep running with no terminal open, which is the point of them. A command that opens an interactive dialog cannot do that without a terminal, so Claude Code refuses it instead of hanging.

Last checked against Anthropic's documentation on November 26, 2026. By the Omniscio team. Updated .

What is the exact message?

For the /mcp settings list, the message reads:

Can't open MCP settings while no terminal is attached to this background session. This session now shows "needs input" in agent view — open it and run /mcp to manage servers, or use `/mcp enable|disable|reconnect <server>` to steer without the panel.

All three refused commands respond with a message, and the /mcp message names the command. /install-github-app and the authentication actions in the MCP server menu are the other two.

What does it mean?

A background session runs without a terminal attached. Claude Code states that commands which open an interactive dialog cannot do so in that state, so they respond with a message instead of opening the dialog.

The session is not broken and the command is not unavailable. For /install-github-app and the /mcp settings list, the session appears under Needs input in agent view so you can find it, attach, and run the command again.

While a terminal is attached, these commands work normally. The refusal is about the missing terminal, not about the session's permissions or configuration.

Which command was refused?

  • /install-github-app. The setup wizard needs a terminal to ask its questions. Attach and run it again.
  • The /mcp settings list. The server menu is a dialog. Attach and run /mcp, or use the slash forms below without attaching.
  • An authentication action in the MCP server menu. Signing a server in needs the menu, so it needs an attached terminal.

On Claude Code v2.1.208 through v2.1.212 the refusal was a message such as Can't open MCP settings in a background session, and it appeared even while a terminal was attached. Run the command from a regular claude session, or update to a current version.

How do I fix it?

Attach to the session

Open agent view with claude agents, select the session under Needs input, and press Enter or → to attach. You can also attach from your shell by session ID:

claude attach <id>

The session becomes a full interactive session in your terminal. Run the command again there. When you are done, press ← on an empty prompt, or run /exit, to detach and return to agent view.

Or steer MCP without attaching

Anthropic states these three forms work without attaching:

/mcp enable <server>
/mcp disable <server>
/mcp reconnect <server>

Use these when you only need to turn a server on or off, or reconnect it. The full settings list still needs the attached terminal.

Then confirm the row cleared

For /install-github-app and the /mcp settings list, Anthropic states the needs-input row clears when you attach. Detaching after the command is just how you return to agent view, so the session finishes the work and goes back to working.

What does not help

  • Running the same command again while still unattached. Nothing changes until a terminal is attached, so the refusal repeats.
  • Waiting for the dialog to appear. The command responds with a message instead of opening one. For /install-github-app and the /mcp settings list, the session waits under Needs input until you attach.
  • Treating the refusal as a version bug on a current release. On v2.1.208 through v2.1.212 Claude Code refused these commands even while a terminal was attached; the current refusal is the behaviour for a session with no terminal.
  • Using /mcp to get the settings list without attaching. The list is the dialog. The enable, disable and reconnect forms are the ones that work without it.

How do I know it is fixed?

  • While attached, /mcp or /install-github-app opens its dialog instead of printing the refusal.
  • For /install-github-app and the /mcp settings list, the session leaves Needs input once you attach, and returns to working after the command finishes.
  • The MCP server you enabled, disabled or reconnected shows the new state without the panel.

Where these answers come from

Common questions

Why can't a background session open the MCP settings?

The settings list is an interactive dialog, and a background session has no terminal attached to show it. Claude Code refuses the command; for this list and for /install-github-app, the session also appears under Needs input.

Which commands are refused this way?

/install-github-app, the /mcp settings list, and the authentication actions in the MCP server menu. Commands that do not need a dialog keep working in the background.

How do I run the command anyway?

Attach to the session from agent view, or with claude attach <id>, then run the command again. While a terminal is attached, these commands work normally.

Can I change an MCP server without attaching?

Yes, for these three actions: /mcp enable <server>, /mcp disable <server> and /mcp reconnect <server>. The full settings list still needs an attached terminal.