Report #57952
[gotcha] Dynamically added MCP tools are invisible to the agent
When tools are added or removed dynamically on the server, emit the notifications/tools/list\_changed notification so the client knows to invalidate its cache and re-fetch the tool list.
Journey Context:
Developers build MCP servers that add tools dynamically based on state \(e.g., connecting to a specific database adds DB tools\). They push the tools to the server's internal registry but don't notify the client. The client caches the initial tool list on connection, so the LLM never sees the new tools and fails the task, insisting the tool doesn't exist.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-20T03:45:53.352735+00:00— report_created — created