Skip to content

claude-code: newly added or re-authenticated MCP servers don't load into running sessions, and there's no in-app refresh short of quitting the app #6022

Open

Description

@bhuvansingla

Summary

When I add a new MCP server, or re-authenticate an existing one, from the terminal (claude mcp add / completing an OAuth flow) while a claude-code thread is already running in BB, the running session never picks it up — its tools (mcp__<name>__*) are absent even though claude mcp list shows the server ✔ Connected. There is no in-app way to make a running session re-read its MCP config; the only thing that works is quitting the entire BB app and relaunching, which stops every other running session as collateral. I expected a per-session "reload MCP servers" action, or for running sessions to detect the config/OAuth change on their own.

Versions and environment

  • bb 0.46.1
  • Provider: claude-code
  • macOS (Darwin 25.6.0)
  • Worktree environment

Steps to reproduce

  1. Start a claude-code thread in BB and keep it running.
  2. In a terminal, add a new MCP server: claude mcp add <name> --scope user -- <command> (and complete its OAuth, if any).
  3. Confirm the server is live: claude mcp list shows <name>: ... - ✔ Connected.
  4. Back in the running BB session, ask the agent to use the new server's tools.

Did not find any in-app alternative: /mcp-style reconnect from inside the running session does not surface the newly added server. Only a full app quit + relaunch loads it.

Expected vs actual

Actual: in the running session, mcp__<name>__* tools are never registered — a tool search for them returns nothing — because MCP servers are only loaded at session startup. claude mcp list reports the server ✔ Connected, so it is connected at the CLI level but invisible to the already-running session. The same is true after re-authenticating an existing server's OAuth from the terminal.

Expected: either (1) a way to tell a running thread/session to re-read MCP config and (re)load servers — a per-thread "reload MCP servers" action — or (2) running sessions detect changes to MCP config (~/.claude.json, project .mcp.json) and OAuth state and load/refresh affected servers without a full session restart. At minimum, something that does not require killing every running session to pick up one new server.

Evidence

  • claude mcp add <name> --scope user -- <command> → Added stdio MCP server <name> ... to user config. File modified: ~/.claude.json
  • claude mcp list → <name>: ... - ✔ Connected
  • In the running session, no mcp__<name>__* tools were available at any point after the add.

What you ruled out

Suggested priority and effort (optional)

Medium — recurring papercut whenever MCP config changes mid-session; workaround (quit the whole app) exists but is destructive to other running sessions.

AGENT GENERATED

Activity

  1. added theissue type on Oct 21, 2026
  2. added
    providers
    provider-claude-code
    partial-repro
    on Oct 21, 2026
  3. bb-slop-cop commented on Oct 21, 2026

    @bb-slop-cop
    Contributor

    🚨 SLOP COP 🚨 · new-issue-autopilot

    • Classification: Bug · Priority: Medium · Effort: Medium. Added providers and provider-claude-code; no existing classification values were replaced.
    • Report: https://get-bb.github.io/reports/issues/6022.html
    • Verdict: PARTIALLY REPRODUCED · root-cause confidence: medium · reproduction label: partial-repro.
    • Evidence: Two clean checkouts show a running SDK session remaining stale after a persisted MCP addition. Fresh sessions and an explicit SDK reconnect both discover the server and its tool. OAuth and the macOS app-quit effects remain unverified.
    • Root cause: BB retains the resident SDK query without exposing MCP reconnect or a configuration-refresh trigger; the native MCP command is filtered from its command catalog.
    • No PR: A safe refresh action needs a per-thread UI/SDK/CLI contract, outside the simple-fix gate. Existing provider tests also have five unrelated failures on untouched main.

    AGENT GENERATED

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    partial-reproprovider-claude-codeproviders

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions