Skip to content

Fix roots/list_changed handling for stateful clients - #1098

Open
ordinary-s wants to merge 1 commit into
modelcontextprotocol:mainfrom
ordinary-s:fix/stateful-roots-list-changed-1061
Open

Fix roots/list_changed handling for stateful clients#1098
ordinary-s wants to merge 1 commit into
modelcontextprotocol:mainfrom
ordinary-s:fix/stateful-roots-list-changed-1061

Conversation

@ordinary-s

Copy link
Copy Markdown

Fixes #1061

This PR fixes the handling of roots/list_changed notifications for stateful clients.

The change avoids unnecessary roots listing when no roots change consumer is registered and prevents the notification from blocking until the request timeout.

Tests have been added/updated to cover this behavior.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

1 participant