This repository was archived by the owner on Feb 6, 2026. It is now read-only.
fix(use-mcp): connect to mcp fails with handleMessage function#9
Closed
ksankaran wants to merge 1 commit intomodelcontextprotocol:mainfrom
Closed
fix(use-mcp): connect to mcp fails with handleMessage function#9ksankaran wants to merge 1 commit intomodelcontextprotocol:mainfrom
ksankaran wants to merge 1 commit intomodelcontextprotocol:mainfrom
Conversation
Collaborator
|
I'll have a look at this tomorrow. I've found that downgrading to SDK 1.13.1 fixed this issue, but didn't actually look at what changed yet (or the fix, is it really only one character? lol). I'm building a proper E2E test suite (first bit is merged) cause I was getting such weird transient errors like this and I needed to get some hard data. So once that's ready I'll grab this commit and update the SDK to latest and see if everything passes. For now, I think if you use |
This was referenced Jul 2, 2025
Merged
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
I'm trying to use the library to connect to the MCP Tools. However, I noticed that, handleMessage is not part of the client in typescript sdk and hence, the call fails when trying to initialize the same.
Motivation and Context
Without this change, the MCP Client wont be initialized.
How Has This Been Tested?
In vite app, where I'm trying to load the library.
Breaking Changes
No.
Types of changes
Checklist
Additional context