You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
feat: Subscribe to notifications/tools/list_changed for automatic tool re-indexing #209
PR #208 added manual tool discovery via the Web UI button and differential update logic. However, if users don't manually trigger discovery, the tool index can become stale.
Scenario:
MCP server v1 has tools [tool_a, tool_b] - indexed correctly
Server updates to v2 with tools [tool_c, tool_d]
User never opens Web UI
retrieve_tools MCP call returns outdated results (old tools still in index, new tools missing)
The current 5-minute background refresh helps but isn't ideal - tools can be stale for up to 5 minutes, and it's wasteful when nothing changed.
Solution
The MCP spec supports notifications/tools/list_changed - servers can notify clients when their tool list changes. We should subscribe to this notification from upstream servers and trigger re-indexing automatically.
What needs to be done:
Subscribe to upstream notifications - When connecting to upstream MCP servers, register a handler for notifications/tools/list_changed
Activity
feat: Subscribe to notifications/tools/list_changed for automatic too…
feat: Subscribe to notifications/tools/list_changed for automatic too…
feat: Subscribe to notifications/tools/list_changed for automatic too…
feat(oauth): implement token refresh reliability with exponential bac…