-
Notifications
You must be signed in to change notification settings - Fork 554
handlePostMessage fails when reqBody is not passed #223
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
Comments
Found problem.
If dev confirms this is bug and not being looked upon, I can fix this quick |
Raised PR for above issue: #238 |
This should be handled by removing all middleware on the |
Describe the bug
When creating mcp using SSE server,
await transport.handlePostMessage(req, res);
expects reqbody. Not providing is failing runMachine config:
Tried with node 20 and 22.
Mac M3
@modelcontextprotocol/sdk - 1.7.0
To Reproduce
Steps to reproduce the behavior:
node index.js
to run mcp servernode client.js
to run mcp clientindex.js
client.js
Issue exist in both client or api way.
Api way
Expected behavior
List out tools and execute pullTestResults tool.
Logs
Workaround for this issue is to send reqbody to
handlePostMessage
function.The text was updated successfully, but these errors were encountered: