Repository navigation
[Agents] MCP server SDK packages are optional peers - #34485
Draft
mattzcarey wants to merge 1 commit into
Draft
mattzcarey wants to merge 1 commit into
mattzcarey wants to merge 1 commit into
Conversation
🚀 Deploying Preview to Cloudflare 🚀Preview URL: https://docs-agents-optional-mcp-peers.previews.developers.cloudflare.com (commit 821129f)This URL reflects your latest Preview deploymentPreview Deployments by commit
|
Contributor
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.
The MCP docs now say that
@modelcontextprotocol/serverand@modelcontextprotocol/sdkare optional peers ofagents, so you install the one your server uses yourself. They also bump the pinned MCP versions to the ones the current Agents release expects (server/client2.3.1,sdk1.32.1).Docs for cloudflare/agents#2634, which stops
agentsfrom installing the SDK v1 server stack (express,cors, ...) for apps that do not serve MCP (cloudflare/agents#2209):handler-apiandmigrate-to-mcp-sdk-v2: optional-peer note and updated versions. The migration guide also warns legacy servers that import@modelcontextprotocol/sdkwithout declaring it to add it before upgrading.agent-api(McpAgent): install step for@modelcontextprotocol/sdk.transport(RPC) andclient-api: the MCP client side needs neither package.Merge after cloudflare/agents#2634 is released.