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 }}
This repository was archived by the owner on Feb 6, 2026. It is now read-only.
Auto-refetch tools/resources/prompts and update useMcp outputs when notifications/*/list_changed arrive. Make this configurable and callback-enabled. Default behavior: enabled.
Auto-refetch on tools/resources/prompts list_changed and update outputs
autoRefresh defaults to true, with per-type overrides
onNotifications supports global function or per-type handlers
New refreshAll/refreshTools/refreshResources/refreshPrompts methods exposed
Additional Context
This might solve #30, but if you are not partial to changing the hook function signature, perhaps you would consider just making auto refresh be the default ? I cannot think why you would not want auto refresh to be one, since the tool calls and resource requests you make after they have changed might be invalid.
Description
Auto-refetch tools/resources/prompts and update
useMcpoutputs whennotifications/*/list_changedarrive. Make this configurable and callback-enabled. Default behavior: enabled.API
Hook return additions:
Acceptance Criteria
list_changedand update outputsautoRefreshdefaults totrue, with per-type overridesonNotificationssupports global function or per-type handlersrefreshAll/refreshTools/refreshResources/refreshPromptsmethods exposedAdditional Context
This might solve #30, but if you are not partial to changing the hook function signature, perhaps you would consider just making auto refresh be the default ? I cannot think why you would not want auto refresh to be one, since the tool calls and resource requests you make after they have changed might be invalid.