modelcontextprotocol / modelcontextprotocol/typescript-sdk

Refactor Protocol.ts to eliminate client/server conditionals

Open
#1,260 0 comments 0 reactions 1 assignee View on GitHub

@KKonstantinov is already working on this.

Since Jan 21, 2026.

breaking change enhancement P3 ready for work v2
Dominant language
TypeScript
Stars
13.4k
Forks
2.2k
Avg merge
3d 15h
Merged PRs (30d)
4

Description

Protocol.ts contains conditionals that can only be executed by client or server, but not both, defeating the purpose of an abstract class. Refactor to make the file easier to read and extend.

Part of v2 SDK work.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.