-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Pr/protocol overwriting transport hooks #477
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Pr/protocol overwriting transport hooks #477
Conversation
2117e7b
to
8e8e447
Compare
Just wanted to gently bring this back up. It’s a small fix. |
All reactions
Sorry, something went wrong.
59359b1
to
e8931ac
Compare
e8931ac
to
8b1a78c
Compare
8b1a78c
to
9edb619
Compare
Hi @ihrpr, just bringing this PR back to attention in case it got buried. |
All reactions
-
👍 1 reaction
Sorry, something went wrong.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you!
Sorry, something went wrong.
All reactions
-
❤️ 1 reaction
All reactions
-
🚀 2 reactions
Sorry, something went wrong.
Motivation and Context
Protocol
class currently hooks onto transports by completely overwriting them, which causes the originally hooked functions to be lost and not executed.For example this code snippet in the README.md wouldn't be executed.
https://github.com/modelcontextprotocol/typescript-sdk/blob/main/README.md?plain=1#L258-L262
How Has This Been Tested?
Breaking Changes
Types of changes
Checklist
Additional context