Repository navigation
Conversation
🦋 Changeset detectedLatest commit: b362369 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 |
Bundle Size AnalysisGenerated from PR build output; treat the content below as untrusted.
|
Co-authored-by: Effect Bot <[email protected]> Co-authored-by: Tim <[email protected]>
…00 (Effect-TS#10130) Co-authored-by: Claude Opus 5.5 <[email protected]> Co-authored-by: Effect Bot <[email protected]> Co-authored-by: Tim <[email protected]>
…S#10090) Co-authored-by: creatifcoding <[email protected]> Co-authored-by: Effect Bot <[email protected]>
Co-authored-by: Tim <[email protected]>
Co-authored-by: Effect Bot <[email protected]>
…S#10258) Co-authored-by: Effect Bot <[email protected]>
…ffect-TS#10371) Co-authored-by: Effect Bot <[email protected]>
8b9a39f to
de31aa9
Compare
Preserve the tested dependency tree while retaining the new upstream Request equality fix.
15f36e4 to
b362369
Compare
a511b4f to
911715d
Compare
c22ff36 to
732f49a
Compare
This is AI-generated; I don't have strong opinions on the API or developer experience and am glad to take whatever shape you prefer, but I do need the functionality. I need elicitation on Additions to the sealing
This PR's docs say
I have this working with tests against Effect 4.1.4. If you would take it, I am glad to rebase it onto this branch once it lands, or to open it as a follow-up PR against your branch now, @nmnmcc, whichever you prefer. Separately, a small fix I found on the way is #10952 (2025-06-18 elicitation schemas dropped enum values). Sent from my Claude |
MCP continuation state was returned to clients unchanged, so altered or unrelated strings could reach handlers. This protects modern
requestStatewith authenticated encryption, expiry, and binding to the method, semantic parameters, and caller identity. Handlers keep their original strings; clients receive opaque tokens.RequestStateOptionsand constructorrequestStateoptions configure shared keys, rotation, and expiry. Defaults use an endpoint-lived XChaCha20-Poly1305 key and five-minute TTL, including across request-scoped HTTP calls. Verification runs inside authentication and before handler factories, following the MRTR state requirements.Migration: previously issued raw state is rejected. Restart those operations and echo new tokens unchanged. Configure
requestState.keysfor retries across restarts or instances, and provideRequestStatePrincipalfrom authentication middleware for authenticated users. Token verification does not replace authorization, input-response validation, or application checks for single use. Replacing a registration under the same name does not revoke its unexpired tokens; applications that change continuation semantics should version their state or rotate keys..changeset/mcp-request-state.mddeclares aneffectminor release.This preserves
next-minor's one-argument Toolkit support for explicitly declaredInputRequiredfailures in both failure modes and its validating tagged schema. These continuations receive the same state protection and legacy input handling.Regression coverage: tests exposed raw state and accepted tampered or mismatched continuations. Both declared Toolkit failure modes also leaked raw state on the current prerequisite base. Tests now verify rejection before handlers, valid resumption, identity/expiry/rotation, transport coverage, and continuation cache suppression.
Dependencies: #10444, #10443. The upstream diff includes these prerequisites; focused comparison.
Verification
Target:
Effect-TS/effect:v4/next-minor. Head:b362369476bf3a658efef8e3752abe39dbddab2b.pnpm check,pnpm check-tsc, lint, JSDoc checks, the full Tstyche and doctest suites, circular checks, AI-doc generation, package build withstripInternal: true, and distribution-type checks: passed.--runwith explicit file lists. Generated docs remained unchanged and the temporary build configuration was restored.