You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
test(@modelcontextprotocol/node): cover pre-read body pattern in stateless mode
Add a test for the handleRequest(req, res, parsedBody) overload in stateless
mode: drain the IncomingMessage body upstream (body-parser pattern), pass it
as parsedBody, and verify that both an initialize request and a subsequent
tools/list request succeed on the same reused transport.
Found while investigating #1994. In v2 the _hasHandledRequest reuse
restriction was removed, so both requests succeed. This test pins that.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
0 commit comments