-
Notifications
You must be signed in to change notification settings - Fork 11.5k
Upgrade MCP SDK to v1.25.2 #27314
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
base: production
Are you sure you want to change the base?
Upgrade MCP SDK to v1.25.2 #27314
Conversation
|
This pull request requires reviews from CODEOWNERS as it changes files that match the following patterns:
|
Documentation UpdatesAdded comprehensive documentation for the stateless MCP server approach introduced in cloudflare/agents#752: New Documentation
Updated Documentation
The new stateless approach is documented as "THE simplest way to get started with MCP on Cloudflare" and is ideal for servers that don't need to maintain state between requests. |
|
|
||
| :::note[Looking for a simpler stateless option?] | ||
| If you do not need state management and want the simplest possible MCP server, see the [Build a stateless MCP server](/agents/guides/stateless-mcp-server/) guide. That approach uses the MCP SDK directly without the `McpAgent` wrapper. | ||
| ::: |
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.
Should we make this default?
691de25 to
6f3f783
Compare
6f3f783 to
1d12c7a
Compare
This commit syncs documentation for cloudflare/agents PR #752 which upgrades the MCP SDK to v1.25.2 and adds new transport features. Changes: - Add new example using MCP SDK directly in transport.mdx - Document new WorkerTransport options (onsessionclosed, eventStore, retryInterval) - Document new closeSSEStream method for polling patterns - Add changelog entry for MCP SDK v1.25.2 upgrade - Update API reference with enhanced error handling details The upgrade brings improved error handling for transport detection and new options for building stateful and stateless MCP servers. Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
1d12c7a to
74519b5
Compare
|
Updated documentation sync to include:
All documentation follows the Cloudflare style guide and includes practical code examples demonstrating the new features. |
Documentation sync for cloudflare/agents PR #752
This PR synchronizes documentation for the MCP SDK upgrade from v1.23.0 to v1.25.2 implemented in cloudflare/agents#752
Changes
New Features Documented
WorkerTransport Options
onsessionclosed- Callback for session closure via DELETE requesteventStore- Event store interface for message resumability supportretryInterval- SSE reconnection timing configurationsessionIdGeneratordocumentation to clarify stateless modeWorkerTransport Methods
closeSSEStream()- Method to trigger client reconnection for polling behaviorNew Example Approach
WebStandardStreamableHTTPServerTransportdirectly from the MCP SDKDocumentation Structure Improvements
transport.mdx: Now presents two clear approaches:
createMcpHandler(recommended)mcp-handler-api.mdx: Enhanced WorkerTransport documentation with:
Related Links
Testing