claude-code - 💡(How to fix) Fix [BUG] [CLI] No way to reconnect/refresh MCP tools without ending the session — blocking under Remote Control [2 comments, 3 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
anthropics/claude-code#60538Fetched 2026-05-20 03:55:58
View on GitHub
Comments
2
Participants
3
Timeline
5
Reactions
1
Author
Timeline (top)
labeled ×3commented ×2

Error Message

Error Messages/Logs

Fix Action

Fix / Workaround

Happy to test any patch.

Code Example

$ /mcp
/mcp isn't available over Remote Control.

$ claude mcp list
binance: http://127.0.0.1:3000/mcp (HTTP) -Connected

# Server is healthy:
$ curl -s http://127.0.0.1:3000/
{"name":"binance-mcp-server","version":"4.0.0","protocol":"2025-11-25","transport":"streamable-http","tools":70}

# But the session sees the older tool list (frozen at boot).
# Even after `claude mcp remove binance && claude mcp add ...`, the live session
# still does not see the new tools.
RAW_BUFFERClick to expand / collapse

Preflight Checklist

  • I have searched existing issues and this hasn't been reported yet
  • This is a single bug report (please file separate reports for different bugs)
  • I am using the latest version of Claude Code

What's Wrong?

Under Remote Control, the /mcp slash command is disabled (/mcp isn't available over Remote Control.). There is no Bash-side equivalent that re-handshakes a connected MCP server and re-enumerates its tools within the running session.

As a result, if an HTTP MCP server is restarted, rebuilt, or registers a new tool while a session is active, the in-session tool catalog stays frozen at the boot-time snapshot. claude mcp list reports ✓ Connected, the server itself responds correctly to a fresh client (curl, a new claude invocation), but the deferred tool list inside the live session does not refresh.

The combination — slash command disabled + no CLI escape hatch — means any MCP change mid-session is effectively lost until the session is restarted, which under Remote Control often is not possible from the controlling device.

What Should Happen?

Either:

  1. Enable /mcp under Remote Control. The command only manipulates the MCP connection and tool list — it does not require terminal PTY features that Remote Control filters out.

  2. Add claude mcp reconnect <name> (or claude mcp refresh) as a Bash-side subcommand. Today claude mcp remove + add updates the on-disk config and claude mcp list reports ✓ Connected, but the in-session tool cache is untouched.

  3. Auto-refresh on MCP tools/list_changed notifications (already part of the MCP spec — many servers can emit it).

Any one of these would unblock Remote Control users.

Error Messages/Logs

$ /mcp
/mcp isn't available over Remote Control.

$ claude mcp list
binance: http://127.0.0.1:3000/mcp (HTTP) - ✓ Connected

# Server is healthy:
$ curl -s http://127.0.0.1:3000/
{"name":"binance-mcp-server","version":"4.0.0","protocol":"2025-11-25","transport":"streamable-http","tools":70}

# But the session sees the older tool list (frozen at boot).
# Even after `claude mcp remove binance && claude mcp add ...`, the live session
# still does not see the new tools.

Steps to Reproduce

  1. From a controlling device, start a Claude Code session via Remote Control on a Mac that hosts a local MCP HTTP server (e.g. http://127.0.0.1:3000/mcp).

  2. With the session live, on the host machine:

    • Rebuild and restart the MCP server so new tools are registered.
    • (Example: cd functions && npx tsc && pm2 restart binance-mcp)
    • Server now exposes N+K tools and responds correctly to curl / new clients.
  3. In the live session, try /mcp → response: /mcp isn't available over Remote Control.

  4. In the live session, try refreshing via Bash:

Claude Model

None

Is this a regression?

No, this never worked

Last Working Version

No response

Claude Code Version

2.1.143 (Claude Code)

Platform

Anthropic API

Operating System

macOS

Terminal/Shell

Terminal.app (macOS)

Additional Information

Setup context:

  • Host machine: macOS 26.3.1, Apple Silicon
  • Local MCP: HTTP transport on 127.0.0.1:3000 (Streamable HTTP 2025-11-25)
  • Session driven by Remote Control from a remote device (claude.ai/code web client)
  • Shell on host: zsh

This blocks an iterative MCP development workflow: edit server → rebuild → see the new tools in the same session. The cache-at-session-start behavior is fine as a default, but with /mcp disabled under Remote Control there is no escape hatch at all.

Suggested fix priority:

  1. (lowest cost) Enable /mcp under Remote Control — it doesn't seem to need any feature Remote Control restricts.
  2. Add claude mcp reconnect <name> CLI for both modes.
  3. Subscribe to MCP tools/list_changed (spec-defined).

Happy to test any patch.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING