Squashed 'packages/mcp-typescript/' changes from dcc30be..e665be0
e665be0 Merge pull request #14 from modelcontextprotocol/justin/fix-race-condition be9c1fe Merge branch 'main' into justin/fix-race-condition 36ba802 Merge pull request #17 from modelcontextprotocol/ashwin/capabilities a1b8886 yarn build 7b718de Report errors when start() is called multiple times 83a43fd Protocol.connect() can automatically call Transport.start() 8d80cc5 Merge branch 'main' into justin/fix-race-condition bcb4b21 add server capabilities derivation e9c64fb Update tests and CLI 2b0599e Update server SSE transport c39f808 Update client transports 87ae7ff Add start() to Transport interface git-subtree-dir: packages/mcp-typescript git-subtree-split: e665be068b9d2baa65f37fd7c2f69f68f77e57b9
This commit is contained in:
parent
50b812b120
commit
23ca80ed66
1 changed files with 228 additions and 97 deletions
3
packages/mcp-typescript/dist/shared/protocol.js
generated
vendored
3
packages/mcp-typescript/dist/shared/protocol.js
generated
vendored
|
|
@ -18,7 +18,7 @@ export class Protocol {
|
|||
(_request) => ({}));
|
||||
}
|
||||
/**
|
||||
* Attaches to the given transport and starts listening for messages.
|
||||
* Attaches to the given transport, starts it, and starts listening for messages.
|
||||
*
|
||||
* The Protocol object assumes ownership of the Transport, replacing any callbacks that have already been set, and expects that it is the only user of the Transport instance going forward.
|
||||
*/
|
||||
|
|
@ -41,6 +41,7 @@ export class Protocol {
|
|||
this._onnotification(message);
|
||||
}
|
||||
};
|
||||
await this._transport.start();
|
||||
}
|
||||
_onclose() {
|
||||
var _a;
|
||||
|
|
|
|||
Loading…
Reference in a new issue