Skip to content

[Server] Handle notifications/cancelled on the handshake era - #744

Open
ajendras wants to merge 1 commit into
modelcontextprotocol:mainfrom
ajendras:fix/issue-732-server-handle-notifications-canc
Open

ajendras wants to merge 1 commit into
modelcontextprotocol:mainfrom
ajendras:fix/issue-732-server-handle-notifications-canc

Conversation

@ajendras

Copy link
Copy Markdown

Register CancelledNotification handler in Protocol (via anonymous impl) that abandons+terminates matching suspended fiber (by awaited ID) and clears pending. Update classifier to route it via new cancelled() (204 status, legacy) to ensure no response. Extend StdioSuspendedFibersTest (and tweak for coverage) and update CancellationTest doc.

Follows cancellation utility; drops fiber, no response sent.

Fixes #732


This change was drafted with an AI assistant and reviewed by me before opening.

This branch has not been deployed

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Server] Handle notifications/cancelled on the handshake era

1 participant