Fix invalid JSON-RPC request errors#2000
Fix invalid JSON-RPC request errors#2000Genmin wants to merge 3 commits intomodelcontextprotocol:mainfrom
Conversation
🦋 Changeset detectedLatest commit: bb65fb9 The changes in this PR will be included in the next version bump. This PR includes changesets to release 6 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
@modelcontextprotocol/client
@modelcontextprotocol/server
@modelcontextprotocol/express
@modelcontextprotocol/fastify
@modelcontextprotocol/hono
@modelcontextprotocol/node
commit: |
|
Added the missing changeset for @modelcontextprotocol/core, @modelcontextprotocol/node, and @modelcontextprotocol/server. Local validation on push passed the repo pre-push hook: typecheck, build, and lint. |
|
The only red check after the changeset push was the known transient Cloudflare Workers/Miniflare failure in on the Node 20 shard. I don't have permission to rerun failed jobs directly (), so I pushed an empty retry commit with no code changes. |
|
The only red check after the changeset push was the known transient Cloudflare Workers/Miniflare Network connection lost failure in test/server/cloudflareWorkers.test.ts on the Node 20 shard. I do not have permission to rerun failed jobs directly, so I pushed an empty retry commit with no code changes. |
Summary
-32600 Invalid Requestfor valid JSON bodies that fail JSON-RPC message schema validation in the streamable HTTP transportInvalid Requesterror response for malformed requests with an id, while leaving malformed notifications response-lessFixes #563.
Validation
pnpm --filter @modelcontextprotocol/core test -- test/shared/stdio.test.tspnpm --filter @modelcontextprotocol/server test -- test/server/stdio.test.ts test/server/streamableHttp.test.tspnpm --filter @modelcontextprotocol/node test -- test/streamableHttp.test.tspnpm --filter @modelcontextprotocol/core typecheckpnpm --filter @modelcontextprotocol/server typecheckpnpm --filter @modelcontextprotocol/node typecheckpnpm --filter @modelcontextprotocol/core lintpnpm --filter @modelcontextprotocol/server lintpnpm --filter @modelcontextprotocol/node lintpnpm run build:all,pnpm run lint:all,pnpm run typecheck:all