modelcontextprotocol / modelcontextprotocol/typescript-sdk
Client received "no session ID or not initialization request" when server restart
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 13.4k
- Forks
- 2.2k
- Avg merge
- 3d 15h
- Merged PRs (30d)
- 4
Description
How can the server request the client to re-initialize when server restart?
The client is currently experiencing a recurring server error from "no session ID or not initialization request".
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with examples/server/src/simpleStreamableHttp.ts at line 589 and trace how the server handles requests after a restart and how the client initializes its session. Reproduce the restart scenario and inspect the related client/server initialization flow. Done means the expected re-initialization behavior is defined and the recurring “no session ID or not initialization request” error is addressed or clearly documented.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- api, distributed-systems
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 48/100