modelcontextprotocol / modelcontextprotocol/csharp-sdk

Support a non-SSE JSON-only mode similar to the TypeScript SDKs `enableJsonResponse: true`

Open
#545 5 comments 4 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement needs confirmation P2 ready for work
Dominant language
C#
Stars
4.5k
Forks
814
Avg merge
9d 19h
Merged PRs (30d)
4

Description

The server needs to be configured to support JSON mode (or not). For example in the TypeScript SDK there is enableJsonResponse: true on StreamableHTTPServerTransport. At the same time, the client also has configuration for what it prefers, that's what TransportMode on SseClientTransport in the .NET SDK is for. I have no idea about Python but if the SDK is public, you can search through the source code for similarly named symbols.

Originally posted by @TomasHubelbauer in #449

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.

Research direction

Start by searching the C# SDK for transport implementations and symbols related to StreamableHTTPServerTransport, SseClientTransport, TransportMode, and enableJsonResponse. Compare the TypeScript SDK behavior to determine the server and client configuration needed; done means the C# SDK supports a non-SSE JSON-only mode for both sides.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp
Domain
api
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Quiet
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.