Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/mcp-sdk-2-2.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"agents": patch
---

Update `@modelcontextprotocol/client` and `@modelcontextprotocol/server` to 2.2.0 and `@modelcontextprotocol/sdk` to 1.31.0. See [Model Context Protocol](https://developers.cloudflare.com/agents/model-context-protocol/).
2 changes: 1 addition & 1 deletion docs/agents/mcp-client.md
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ available.
Install the exact MCP client peer used by this Agents release:

```sh
pnpm add agents @modelcontextprotocol/client@2.0.0
pnpm add agents @modelcontextprotocol/client@2.2.0
```

```typescript
Expand Down
2 changes: 1 addition & 1 deletion docs/agents/mcp-servers.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ that needs Standard Schema support, use `@modelcontextprotocol/server` v2 with
The simplest way to create an MCP server. Install the exact SDK v2 server peer, then use the isolated server entry point so legacy Agents transports and MCP clients stay out of your Worker bundle:

```sh
pnpm add agents @modelcontextprotocol/server@2.0.0 zod
pnpm add agents @modelcontextprotocol/server@2.2.0 zod
```

```typescript
Expand Down
2 changes: 1 addition & 1 deletion examples/codemode-connectors/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"@cloudflare/ai-chat": "*",
"@cloudflare/codemode": "*",
"@cloudflare/kumo": "^2.6.0",
"@modelcontextprotocol/sdk": "1.30.0",
"@modelcontextprotocol/sdk": "1.31.0",
"@phosphor-icons/react": "^2.1.10",
"@streamdown/code": "^1.1.1",
"agents": "*",
Expand Down
4 changes: 2 additions & 2 deletions examples/codemode-mcp-openapi/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@
},
"dependencies": {
"@cloudflare/codemode": "*",
"@modelcontextprotocol/sdk": "1.30.0",
"@modelcontextprotocol/server": "2.0.0",
"@modelcontextprotocol/sdk": "1.31.0",
"@modelcontextprotocol/server": "2.2.0",
"agents": "*"
},
"devDependencies": {
Expand Down
4 changes: 2 additions & 2 deletions examples/codemode-mcp/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@
},
"dependencies": {
"@cloudflare/codemode": "*",
"@modelcontextprotocol/sdk": "1.30.0",
"@modelcontextprotocol/server": "2.0.0",
"@modelcontextprotocol/sdk": "1.31.0",
"@modelcontextprotocol/server": "2.2.0",
"agents": "*",
"zod": "^4.5.4"
},
Expand Down
2 changes: 1 addition & 1 deletion examples/mcp-elicitation-mrtr/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"types": "wrangler types env.d.ts --include-runtime false"
},
"dependencies": {
"@modelcontextprotocol/server": "2.0.0",
"@modelcontextprotocol/server": "2.2.0",
"agents": "*",
"zod": "^4.5.4"
},
Expand Down
2 changes: 1 addition & 1 deletion examples/mcp-elicitation/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
},
"type": "module",
"dependencies": {
"@modelcontextprotocol/sdk": "1.30.0",
"@modelcontextprotocol/sdk": "1.31.0",
"agents": "*",
"zod": "^4.5.4"
}
Expand Down
2 changes: 1 addition & 1 deletion examples/mcp-rpc-transport/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"dependencies": {
"@cloudflare/ai-chat": "*",
"@cloudflare/kumo": "^2.6.0",
"@modelcontextprotocol/sdk": "1.30.0",
"@modelcontextprotocol/sdk": "1.31.0",
"@phosphor-icons/react": "^2.1.10",
"agents": "*",
"ai": "^7.0.0",
Expand Down
2 changes: 1 addition & 1 deletion examples/mcp-server/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"types": "wrangler types env.d.ts --include-runtime false"
},
"dependencies": {
"@modelcontextprotocol/server": "2.0.0",
"@modelcontextprotocol/server": "2.2.0",
"zod": "^4.5.4"
},
"devDependencies": {
Expand Down
4 changes: 2 additions & 2 deletions examples/mcp-worker-authenticated/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@
"dependencies": {
"@cloudflare/kumo": "^2.6.0",
"@cloudflare/workers-oauth-provider": "^0.8.1",
"@modelcontextprotocol/sdk": "1.30.0",
"@modelcontextprotocol/server": "2.0.0",
"@modelcontextprotocol/sdk": "1.31.0",
"@modelcontextprotocol/server": "2.2.0",
"@phosphor-icons/react": "^2.1.10",
"agents": "*",
"hono": "^4.13.5",
Expand Down
4 changes: 2 additions & 2 deletions examples/mcp-worker/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@
},
"dependencies": {
"@cloudflare/kumo": "^2.6.0",
"@modelcontextprotocol/sdk": "1.30.0",
"@modelcontextprotocol/server": "2.0.0",
"@modelcontextprotocol/sdk": "1.31.0",
"@modelcontextprotocol/server": "2.2.0",
"@phosphor-icons/react": "^2.1.10",
"agents": "*",
"react": "^19.2.7",
Expand Down
2 changes: 1 addition & 1 deletion examples/mcp/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
},
"dependencies": {
"@cloudflare/kumo": "^2.6.0",
"@modelcontextprotocol/sdk": "1.30.0",
"@modelcontextprotocol/sdk": "1.31.0",
"@phosphor-icons/react": "^2.1.10",
"agents": "*",
"react": "^19.2.7",
Expand Down
2 changes: 1 addition & 1 deletion examples/next/mcp-client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
},
"dependencies": {
"@cloudflare/kumo": "^2.6.0",
"@modelcontextprotocol/client": "2.0.0",
"@modelcontextprotocol/client": "2.2.0",
"@phosphor-icons/react": "^2.1.10",
"agents": "*",
"react": "^19.2.7",
Expand Down
4 changes: 2 additions & 2 deletions examples/playground/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
"@cloudflare/ai-chat": "*",
"@cloudflare/codemode": "*",
"@cloudflare/kumo": "^2.6.0",
"@modelcontextprotocol/sdk": "1.30.0",
"@modelcontextprotocol/server": "2.0.0",
"@modelcontextprotocol/sdk": "1.31.0",
"@modelcontextprotocol/server": "2.2.0",
"@phosphor-icons/react": "^2.1.10",
"@streamdown/code": "^1.1.1",
"agents": "*",
Expand Down
2 changes: 1 addition & 1 deletion examples/webmcp/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
},
"dependencies": {
"@cloudflare/kumo": "^2.6.0",
"@modelcontextprotocol/sdk": "1.30.0",
"@modelcontextprotocol/sdk": "1.31.0",
"@phosphor-icons/react": "^2.1.10",
"agents": "*",
"zod": "^4.5.4"
Expand Down
2 changes: 1 addition & 1 deletion examples/x402-mcp/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
},
"dependencies": {
"@cloudflare/kumo": "^2.6.0",
"@modelcontextprotocol/sdk": "1.30.0",
"@modelcontextprotocol/sdk": "1.31.0",
"@phosphor-icons/react": "^2.1.10",
"@x402/evm": "^2.17.0",
"agents": "*",
Expand Down
4 changes: 2 additions & 2 deletions openai-sdk/chess-app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@
},
"dependencies": {
"@cloudflare/vite-plugin": "1.62.3",
"@modelcontextprotocol/sdk": "1.30.0",
"@modelcontextprotocol/server": "2.0.0",
"@modelcontextprotocol/sdk": "1.31.0",
"@modelcontextprotocol/server": "2.2.0",
"@vitejs/plugin-react": "^6.0.3",
"agents": "*",
"chess.js": "^1.4.0",
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
"@cloudflare/vite-plugin": "1.62.3",
"@cloudflare/vitest-pool-workers": "^0.19.1",
"@cloudflare/workers-types": "^5.20260729.1",
"@modelcontextprotocol/sdk": "1.30.0",
"@modelcontextprotocol/sdk": "1.31.0",
"@openai/agents": "^0.12.0",
"@openai/agents-extensions": "^0.12.0",
"@phosphor-icons/react": "^2.1.10",
Expand Down
12 changes: 6 additions & 6 deletions packages/agents/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,10 +46,10 @@
"@earendil-works/pi-ai": "^1.0.0",
"@earendil-works/pi-durable": "^1.0.0",
"@earendil-works/pi-tui": "1.0.0",
"@modelcontextprotocol/client": "2.0.0",
"@modelcontextprotocol/client": "2.2.0",
"@modelcontextprotocol/conformance-v2": "npm:@modelcontextprotocol/conformance@0.2.0-alpha.10",
"@modelcontextprotocol/sdk": "1.30.0",
"@modelcontextprotocol/server": "2.0.0",
"@modelcontextprotocol/sdk": "1.31.0",
"@modelcontextprotocol/server": "2.2.0",
"@opencode/plugin": "2.0.24",
"@opencode/sdk": "2.0.24",
"@tanstack/ai": "0.38.0",
Expand All @@ -73,9 +73,9 @@
"@cloudflare/codemode": ">=0.5.0",
"@earendil-works/pi-ai": "^1.0.0",
"@earendil-works/pi-durable": "^1.0.0",
"@modelcontextprotocol/client": "2.0.0",
"@modelcontextprotocol/sdk": "1.30.0",
"@modelcontextprotocol/server": "2.0.0",
"@modelcontextprotocol/client": "2.2.0",
"@modelcontextprotocol/sdk": "1.31.0",
"@modelcontextprotocol/server": "2.2.0",
"@opencode/plugin": "^2.0.24",
"@opencode/sdk": "^2.0.24",
"@tanstack/ai": ">=0.10.2 <1.0.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/codemode/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"acorn": "^8.17.0"
},
"devDependencies": {
"@modelcontextprotocol/sdk": "1.30.0",
"@modelcontextprotocol/sdk": "1.31.0",
"@playwright/test": "^1.61.1",
"@tanstack/ai": "0.38.0",
"ai": "^7.0.0",
Expand Down
Loading
Loading