Migrate to MCP SDK 2.0 with official Protocol and isolated role peers (#720)
App and AppBridge extend the public Protocol from @modelcontextprotocol/client; the iframe wire protocol (ui/initialize only) is unchanged. Peers move to the split SDK 2.0 packages with client and server as optional role peers. Fixups (lockfile, peer ranges, restored handler guards, docs, wire-compat tests) follow in a separate PR. Co-authored-by: Andrew Khadder <andrew@manufact.com> Co-authored-by: Felix Weinberger <fweinberger@anthropic.com> Closes #702
This commit is contained in:
commit
1a713173cc
1 changed files with 2415 additions and 1867 deletions
19
package.json
19
package.json
|
|
@ -54,6 +54,7 @@
|
|||
"prepack": "npm run build",
|
||||
"build:all": "npm run examples:build",
|
||||
"test": "bun test src examples",
|
||||
"test:dependency-isolation": "npm run build && node scripts/check-dependency-isolation.mjs",
|
||||
"test:e2e": "playwright test",
|
||||
"test:e2e:update": "playwright test --update-snapshots",
|
||||
"test:e2e:ui": "playwright test --ui",
|
||||
|
|
@ -77,7 +78,9 @@
|
|||
"author": "Olivier Chafik",
|
||||
"devDependencies": {
|
||||
"@boneskull/typedoc-plugin-mermaid": "^0.2.0",
|
||||
"@modelcontextprotocol/sdk": "^1.29.0",
|
||||
"@modelcontextprotocol/client": "2.0.0",
|
||||
"@modelcontextprotocol/core": "2.0.0",
|
||||
"@modelcontextprotocol/server": "2.0.0",
|
||||
"@playwright/test": "1.57.0",
|
||||
"@types/bun": "^1.3.2",
|
||||
"@types/node": "20.19.27",
|
||||
|
|
@ -105,15 +108,23 @@
|
|||
"typedoc": "^0.28.14",
|
||||
"typedoc-github-theme": "^0.4.0",
|
||||
"typescript": "^5.9.3",
|
||||
"zod": "^4.1.13"
|
||||
"zod": "^4.2.0"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"@modelcontextprotocol/sdk": "^1.29.0",
|
||||
"@modelcontextprotocol/client": "2.0.0",
|
||||
"@modelcontextprotocol/core": "2.0.0",
|
||||
"@modelcontextprotocol/server": "2.0.0",
|
||||
"react": "^17.0.0 || ^18.0.0 || ^19.0.0",
|
||||
"react-dom": "^17.0.0 || ^18.0.0 || ^19.0.0",
|
||||
"zod": "^3.25.0 || ^4.0.0"
|
||||
"zod": "^4.2.0"
|
||||
},
|
||||
"peerDependenciesMeta": {
|
||||
"@modelcontextprotocol/client": {
|
||||
"optional": true
|
||||
},
|
||||
"@modelcontextprotocol/server": {
|
||||
"optional": true
|
||||
},
|
||||
"react": {
|
||||
"optional": true
|
||||
},
|
||||
|
|
|
|||
Loading…
Reference in a new issue