Skip to content

[Capability] Suppress list-changed events during the initial registry load - #480

Merged
chr-hertel merged 3 commits into
modelcontextprotocol:mainfrom
chr-hertel:fix/issue-26-registry-listchanged
Aug 24, 2026
Merged

[Capability] Suppress list-changed events during the initial registry load#480
chr-hertel merged 3 commits into
modelcontextprotocol:mainfrom
chr-hertel:fix/issue-26-registry-listchanged

Conversation

@chr-hertel

Copy link
Copy Markdown
Member

Registry dispatched a list-changed event per element while the deferred loader ran, publishing spurious frames onto a configured notification bus before any client had observed a list. Registrations now route through a helper that skips dispatch while loading is set — the load establishes the initial state before the first read returns, so no change is observable and no end-of-load event is needed.

Fork issue: chr-hertel#26

@chr-hertel chr-hertel added the Server Issues & PRs related to the Server component label Aug 24, 2026
@chr-hertel
chr-hertel merged commit 312c621 into modelcontextprotocol:main Aug 24, 2026
27 checks passed
@chr-hertel
chr-hertel deleted the fix/issue-26-registry-listchanged branch August 24, 2026 22:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Server Issues & PRs related to the Server component

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant