-
Notifications
You must be signed in to change notification settings - Fork 11.4k
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. |
|
Preview URL: https://6f3f7830.preview.developers.cloudflare.com Files with changes (up to 15) |
|
|
||
| :::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?
- Add documentation for new WorkerTransport options: - onsessionclosed callback for session cleanup - eventStore for resumability support - retryInterval for polling behavior - closeSSEStream() method for triggering reconnections - Add section on using MCP SDK directly with WebStandardStreamableHTTPServerTransport - Document new mcp-server example showing zero-config MCP server setup - Update WorkerTransportOptions interface documentation Syncs documentation with PR #752 (Upgrade MCP SDK to v1.25.1) Co-Authored-By: Claude Sonnet 4.5 <[email protected]>
691de25 to
6f3f783
Compare
Summary
Documents the upgrade of
@modelcontextprotocol/sdkfrom v1.23.0 to v1.25.2 in the Agents SDK.WebStandardStreamableHTTPServerTransportmcp-serverexample that provides the simplest way to create an MCP server on Cloudflare Workersonsessionclosedcallback for session cleanup notificationseventStorefor connection resumability support (allows clients to recover from interruptions)retryIntervalfor controlling SSE polling behaviorTest plan
Related PR: cloudflare/agents#752
🤖 Generated with Claude Code