Export Protocol and mergeCapabilities from client/server package roots (#2501)
This commit is contained in:
parent
e81758caed
commit
1480241e2a
1 changed files with 246 additions and 73 deletions
10
.changeset/export-protocol-class.md
Normal file
10
.changeset/export-protocol-class.md
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
---
|
||||
'@modelcontextprotocol/core-internal': minor
|
||||
'@modelcontextprotocol/client': minor
|
||||
'@modelcontextprotocol/server': minor
|
||||
'@modelcontextprotocol/codemod': patch
|
||||
---
|
||||
|
||||
Export the `Protocol` base class and `mergeCapabilities` from the `@modelcontextprotocol/client` and `@modelcontextprotocol/server` package roots, restoring the v1 import for consumers that subclass `Protocol` (e.g. the MCP Apps SDK). The client and server packages each bundle their own compiled copy of the class, so import it from one package consistently within a process.
|
||||
|
||||
The codemod now rewrites `Protocol` and `mergeCapabilities` imports from `shared/protocol.js` to the client or server package root, like the module's other symbols, instead of dropping them with an action-required marker.
|
||||
Loading…
Reference in a new issue