Skip to content

CI run for Events (fork-only) - #1

Closed
cwahn wants to merge 9 commits into
mainfrom
ci/events-final
Closed

cwahn wants to merge 9 commits into
mainfrom
ci/events-final

Conversation

@cwahn

@cwahn cwahn commented Nov 24, 2026

Copy link
Copy Markdown
Owner

Fork-only CI run for modelcontextprotocol#1489. Not for merge.

With an EventStore configured, every modern listen started a persistence
task that never ended on disconnect. The handler was not cancelled and
notifications continued to append to the store indefinitely.

Bind modern subscriptions/listen to the POST response stream: do not
persist or prime it, omit SSE IDs, and cancel the handler on disconnect.
Drop correlated server notifications before transport handoff when their
request is no longer active.

Refs: modelcontextprotocol#1488
Dropping an opening listen while the outbound queue was full left its
notification route registered without a request handle. The shared send
path could also strand a progress-timeout watcher. Reserve queue capacity
before registering either route, then enqueue without yielding.

Dropping an active listen could silently lose its cancellation notification
when the same queue was full, leaving the stdio handler running. Keep the
synchronous fast path and retry a full enqueue on the service runtime.
A closed queue needs no retry.

Refs: modelcontextprotocol#1488
Shared seams: server handler discovery and custom dispatch, the core listen filter and client acceptance, custom-message Debug, and Streamable HTTP routing headers. Existing server capabilities and custom dispatch do not change unless events() returns Some; the client opts in explicitly.

Refs: modelcontextprotocol#1488
Shared seams: the Events registry, descriptor hooks and one-shot poll dispatch from PR 2a. No extra core or transport seams change. Nothing in existing server dispatch changes unless events() returns Some.

Refs: modelcontextprotocol#1488
Add the non-default `events` feature to the crate feature table.

Refs: modelcontextprotocol#1488
Keep the synchronous send fast path and drain deferred cancellations in order from the service loop instead of spawning a task per cancellation. Log closed-service drops and identify fenced subscription frames by request ID without changing how their producers are acknowledged.

Refs: modelcontextprotocol#1488
Serve connection-bound Events streams with ordered delivery, replay, and heartbeat checkpoints. Expose one managed subscription stream for push and polling. SDK-owned Events streams bypass HTTP EventStore replay and return pre-activation errors as JSON.

Refs: modelcontextprotocol#1488
Add signed webhook grants and verify callback consent before dispatch.
Provide an inbound verifier and client methods to create, refresh,
and cancel grants.

Refs: modelcontextprotocol#1488
Use shared routing and request handling, and return the catalog in
one page. Remove payload transforms and normalization, client
deduplication, and redundant stream budgets and state.

Refs: modelcontextprotocol#1488
@cwahn

cwahn commented Nov 24, 2026

Copy link
Copy Markdown
Owner Author

Closing; fork workflows are disabled.

@cwahn cwahn closed this Nov 24, 2026
@cwahn
cwahn deleted the ci/events-final branch November 24, 2026 16:47
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.

1 participant