Skip to content

Add MCP event discovery and subscriptions - #37494

Merged
copyberry[bot] merged 1 commit into
mainfrom
copyberry/codex-internal-to-codex-oss/98c6fffa8f004eb2638c1b0705f659222cbbdfdb
Aug 7, 2026
Merged

copyberry[bot] merged 1 commit into
mainfrom
copyberry/codex-internal-to-codex-oss/98c6fffa8f004eb2638c1b0705f659222cbbdfdb

Conversation

@copyberry

@copyberry copyberry Bot commented Aug 7, 2026 •

Copy link
Copy Markdown

Add MCP event discovery and subscriptions

What changed

  • Expose hosted Plugin Runtime event definitions through McpResourceClient::list_events.
  • Add cancellable events/stream subscriptions that route lifecycle notifications to the matching request and cancel when the stream is dropped.
  • Bound event notification and queue sizes, time out stalled response headers, and close streamable HTTP responses locally on cancellation.

Testing

  • Add streamable HTTP integration coverage for isolated concurrent subscriptions, local cancellation, and stalled response-header timeouts.

## What changed

- Expose hosted Plugin Runtime event definitions through `McpResourceClient::list_events`.
- Add cancellable `events/stream` subscriptions that route lifecycle notifications to the matching request and cancel when the stream is dropped.
- Bound event notification and queue sizes, time out stalled response headers, and close streamable HTTP responses locally on cancellation.

## Testing

- Add streamable HTTP integration coverage for isolated concurrent subscriptions, local cancellation, and stalled response-header timeouts.

GitOrigin-RevId: 98c6fffa8f004eb2638c1b0705f659222cbbdfdb
@github-actions

github-actions Bot commented Aug 7, 2026

Copy link
Copy Markdown
Contributor


Thank you for your submission, we really appreciate it. Like many open-source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution. You can sign the CLA by just posting a Pull Request Comment same as the below format.


I have read the CLA Document and I hereby sign the CLA


You can retrigger this bot by commenting recheck in this Pull Request. Posted by the CLA Assistant Lite bot.

@copyberry
copyberry Bot force-pushed the copyberry/codex-internal-to-codex-oss/98c6fffa8f004eb2638c1b0705f659222cbbdfdb branch from 1834554 to 41014b1 Compare August 7, 2026 19:38
@copyberry
copyberry Bot merged commit 41014b1 into main Aug 7, 2026
29 of 32 checks passed
@copyberry
copyberry Bot deleted the copyberry/codex-internal-to-codex-oss/98c6fffa8f004eb2638c1b0705f659222cbbdfdb branch August 7, 2026 19:39
@github-actions github-actions Bot locked and limited conversation to collaborators Aug 7, 2026

This branch was previously deployed

1 inactive deployment
issue-triage — 41014b11 Deployed Aug 7, 2026 by aiodoggmd via Identify potential duplicates (all issues) #36640
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants