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
20
README.md
20
README.md
|
|
@ -122,10 +122,28 @@ resources:
|
|||
|
||||
## Getting Started
|
||||
|
||||
For a View or host:
|
||||
|
||||
```bash
|
||||
npm install -S @modelcontextprotocol/ext-apps
|
||||
npm install -S @modelcontextprotocol/ext-apps \
|
||||
@modelcontextprotocol/client@2.0.0-beta.5 \
|
||||
@modelcontextprotocol/core@2.0.0-beta.5 \
|
||||
zod@^4.2.0
|
||||
```
|
||||
|
||||
For an MCP server:
|
||||
|
||||
```bash
|
||||
npm install -S @modelcontextprotocol/ext-apps \
|
||||
@modelcontextprotocol/server@2.0.0-beta.5 \
|
||||
@modelcontextprotocol/core@2.0.0-beta.5 \
|
||||
zod@^4.2.0
|
||||
```
|
||||
|
||||
Applications that implement both roles should install both `client` and
|
||||
`server`. Keep all installed base MCP SDK packages on the exact same published
|
||||
beta so they share one compatible protocol implementation.
|
||||
|
||||
**New here?** Start with the
|
||||
[Quickstart Guide](https://apps.extensions.modelcontextprotocol.io/api/documents/Quickstart.html)
|
||||
to build your first MCP App.
|
||||
|
|
|
|||
Loading…
Reference in a new issue