modelcontextprotocol / modelcontextprotocol/typescript-sdk
Typechecking should fail on returning {} for all requests
Open
Nobody has claimed this yet.
bug
P3
potentially close
ready for work
- Dominant language
- TypeScript
- Stars
- 13.4k
- Forks
- 2.2k
- Avg merge
- 3d 15h
- Merged PRs (30d)
- 4
Description
Right now, AFAICT this is considered valid, probably because of Result (the base definition) being a valid return type.
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 at the TypeScript definitions for Result, since the issue identifies it as the base return type, and trace the request-handler typechecking path. Add a regression case showing that returning {} for every request is rejected, then confirm that valid Result-based returns still typecheck.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- api
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 52/100