Repository navigation
fix(mcp): support browser subscriptions and server notifications - #1949
Conversation
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 250a1179d7
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
Preserve the integrated handshake-origin and interim-result fixes while retaining subscription lifecycle, session teardown, and pending tool request ID protection. Reuse the shared subscription schema and typed acknowledgment.
|
@codex review |
|
Codex Review: Didn't find any major issues. Delightful! Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
Fold notification cases into existing channel validation tests, extend the existing session lifetime matrix, and share the browser MCP server fixture. Remove duplicate filter and teardown scenarios while retaining ID, privacy, bounded-stream, and stale-response checks. Reuse JSON-RPC parsing and subscription metadata schemas. Cancel fire-and-forget Phoenix push bookkeeping so the shared timer cleanup regression also covers MCP frames.
|
@codex review |
|
Codex Review: Didn't find any major issues. Swish! Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
Extend the existing session lifetime matrix with active-subscription parse failure, tasks-channel error, and socket loss. Reuse exact terminal-frame assertions and require silent MCP teardown on connection failure.
|
@codex review |
|
Codex Review: Didn't find any major issues. Keep them coming! Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
562eb08
into
integration/mcp-2026-07-28
Description
Implement the browser MCP subscription lifecycle and separate server notifications from response envelopes in Phoenix.
Browser MCP server
subscriptions/listenwith the shared protocol schema and acknowledge it with the original typed request ID.Phoenix MCP client boundary
Distinguish notification envelopes from responses. Log valid unopened notifications without a reply. Retain explicit diagnostics for malformed messages.
Phoenix opens no subscriptions and exposes no subscription-opening API. This PR adds no automatic listeners, resource/prompt support, catalog refresh, or tool-execution cancellation.
Review comments
Both findings are fixed in
20a12d51and checked again after consolidation at0f35ba1b:Both review threads contain replies and are resolved.
Change size and test reuse
The complete PR is now 243 net-new lines, down from 731. The consolidation and coverage follow-up remove 488 lines from the previous PR head.
Mutation validation temporarily reintroduced both review bugs: the ID regression and close/disconnect cases failed. Restoring the fixes returned the suite to green. Additional mutations to connection-loss suppression and parse-error cleanup failed their restored matrix cases.
Validation
Local checks on
0f35ba1b:MIX_TEST_DB_SUFFIX=_delta_pr1949 make -C apps/frontman_server precommit: 1,077 tests passed, plus compilation, formatting, and strict Credo.make -C libs/frontman-client check: 112 tests passed, plus compilation and formatting.make -C libs/client test: 500 tests passed.make build RESCRIPT_FLAGS='--warn-error +a': passed.make reanalyze: zero issues. The pre-push hook also passed for all nine checked libraries.make check-source-commentsandgit diff --check: passed.GitHub CI runs again after the push. Local validation did not include a live browser/network subscription E2E test.
Stack
The destination remains
integration/mcp-2026-07-28, notmain.Predecessors #1940, #1939, and #1948 are already integrated. This branch includes the integration tip
48d815a3through merge commitb02c45ef. Conflict resolution preserves the integrated authentication, interim-result validation, shared subscription schemas, and regression tests.Neither the integration branch nor
mainwas updated by this branch refresh. This PR remains open.Specification
Related Issue
No separate issue was supplied.
Checklist
make dev(not run)