claude-code - 💡(How to fix) Fix [BUG] MCP stdio server notifications/tools/list_changed does not refresh the tool catalog mid-session

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…

Error Message

Error Messages/Logs

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?

Environment: Claude Code VS Code extension · model claude-opus-4-8 · stdio MCP server (custom Node bridge)

Summary: When a connected stdio MCP server emits notifications/tools/list_changed during a session, the newly advertised tools do not become available for invocation. The same tools are picked up if they're present in tools/list at (re)connection time.

Impact: Breaks dynamic MCP tool catalogs — e.g. a bridge that exposes context-scoped tools after an attach/handshake step. The server correctly merges the tools into tools/list and emits the spec'd notification, but they remain unreachable.

Verified server-side: the bridge emits notifications/tools/list_changed and includes the new tools in subsequent tools/list responses; the standard MCP listChanged capability flow.

What Should Happen?

Client re-issues tools/list, and the B tools become callable within the session.

Error Messages/Logs

Steps to Reproduce

  • Connect a stdio MCP server that initially returns catalog A from tools/list.
  • Mid-session, the server adds tools (catalog A+B) and emits notifications/tools/list_changed on stdout.
  • Ask the model to use a tool from B.

The B tools never become callable (not surfaced as available, not findable). Only a full reconnect (fresh initialize → tools/list) exposes them — which is unusable when the new tools depend on session state established after connect (so they can't be in the initial list).

Claude Model

Opus

Is this a regression?

I don't know

Last Working Version

No response

Claude Code Version

2.1.165

Platform

Anthropic API

Operating System

Windows

Terminal/Shell

Windows Terminal

Additional Information

No response

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