Repository navigation
Conversation
🦋 Changeset detectedLatest commit: dbd83ed The changes in this PR will be included in the next version bump. This PR includes changesets to release 33 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
Contributor
Bundle Size AnalysisGenerated from PR build output; treat the content below as untrusted.
|
This was referenced Nov 7, 2026
This branch is waiting to be deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Malformed MCP messages could leave clients waiting, discard valid neighboring frames, or expose Effect RPC failure details. This fixes those paths and adds
McpServer.makeSerializationandMcpServer.layerSerialization, giving stdio and custom transports a shared serializer with JSON/NDJSON framing and revision-specific batch and request-ID rules.Malformed JSON or UTF-8 now receives a ParseError with
id: null; valid NDJSON frames around it remain usable. Responses preserve intentional protocol/applicationerror.datawhile removing internal failure and control envelopes. Custom transports also keep Effect RPC control messages outside MCP, following the transport contract.Disconnecting a client releases its pending work and reverse-request waits without requiring another message. Ending an individual HTTP response still preserves its legacy session. SSE responses disable proxy buffering, including rejected subscriptions and empty cancellation streams.
Existing server constructors remain compatible.
.changeset/mcp-core-transports.mddeclares aneffectpatch for these fixes and additions to the unstable API.Regression coverage: malformed stdio input previously produced no ParseError, custom sockets exposed a defect, and disconnected legacy clients remained available. The tests now cover those failures alongside fractional-ID rejection, mixed batches, cancellation, fragmented UTF-8, and client isolation.
Dependencies: none. Focused comparison.
Verification
Target:
Effect-TS/effect:main. Validated head:dbd83ed10a3641f28486131ad44b8cbb570eb09f.pnpm check,pnpm check-tsc, lint, JSDoc checks, full Tstyche/doctest suites, circular checks, AI-doc generation, package build withstripInternal: true, and distribution-type checks.--runwith explicit files. Generated docs were unchanged; temporary build configuration was restored.