-
Notifications
You must be signed in to change notification settings - Fork 285
Remove client edge transports #637
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
🦋 Changeset detectedLatest commit: 9027d6b The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
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 |
Claude Code ReviewCritical Issue: Lost Edge Runtime Functionality The old
The new implementation in Lost functionality:
Impact: This will break existing MCP connections in Cloudflare Workers that rely on:
Recommendation:
The changeset mentions "deprecation warnings to update imports" but the wrappers have lost critical functionality, not just changed import paths. Minor: Deprecation warnings use |
commit: |
…ClientTransport Added migration guide for users who were using the deprecated transport classes directly. These classes have been replaced by the official MCP SDK transport classes which now work natively with Cloudflare Workers. Changes: - Add deprecation notice for SSEEdgeClientTransport and StreamableHTTPEdgeClientTransport - Provide before/after code examples showing import path migration - Explain that the official SDK classes now support Workers natively Related to cloudflare/agents#637 Generated with Claude Code Co-Authored-By: Claude <noreply@anthropic.com>
threepointone
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
oh thank god yes
Documentation UpdatedI've created a documentation PR to document the deprecation of the client edge transport classes: Docs PR: cloudflare/cloudflare-docs#26328 Changes MadeAdded a new section to the Transport documentation that:
Target AudienceThis documentation targets the small subset of advanced users who were directly importing and using these transport classes in custom MCP client implementations. Most users rely on the automatic transport handling provided by Generated with Claude Code Co-Authored-By: Claude noreply@anthropic.com |
Document the deprecation of SSEEdgeClientTransport and StreamableHTTPEdgeClientTransport in favor of standard MCP SDK transports. Since workerd now supports the duplex parameter, the custom edge transports are no longer necessary. Users should migrate to SSEClientTransport and StreamableHTTPClientTransport from @modelcontextprotocol/sdk. Related to cloudflare/agents#637
Documentation Sync CompleteDocumentation has been updated in cloudflare-docs PR #26328 to reflect the deprecation of the custom edge transport classes. Changes MadeChangelog Entry: Created comprehensive migration guide at
Transport Documentation: Updated Review the Documentation PRPlease review cloudflare-docs PR #26328 to ensure the migration guidance is accurate and complete before merging. This documentation sync was performed automatically by Claude Code |
| // Call the original fetch with fixed options | ||
| return ( | ||
| // @ts-expect-error Custom fetch function for Cloudflare Workers compatibility | ||
| (options.requestInit?.fetch?.( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this was also broken since thats the wrong level to get custom fetch from
These aren't needed since summer time when the
modeparam was supported by workerd.