modelcontextprotocol / modelcontextprotocol/csharp-sdk

Is it possible to make the `StreamableHttpHandler` and `SseHandler` public?

Open
#710 4 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

Pre-submission Checklist
  • I have checked that this question would not be more appropriate as an issue in a specific repository
  • I have searched existing discussions and documentation for answers
Question Category
  • Protocol Specification
  • SDK Usage
  • Server Implementation
  • General Implementation
  • Documentation
  • Other
Your Question

We're integrating MCP into the HotChocolate GraphQL server, and we need to proxy these handlers and define our own MapGraphQLMcp method. However, the two handlers are marked as internal, so we're unable to access them without forking the SDK. Is it possible to make these handlers public?

Originally posted by @glen-84 in https://github.com/modelcontextprotocol/csharp-sdk/discussions/695

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

Locate the declarations and usages of StreamableHttpHandler and SseHandler in the C# SDK, then review the original discussion 695 and the current issue context. Check how their visibility affects the server API and existing tests; done means the maintainers have resolved whether these handlers should be publicly consumable without a fork.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp
Domain
api, backend-api-design
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Active
Clarity
Mostly clear
Newbie friendliness
58/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.