Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

Support using WithStreamServerTransport for multiple in-process mcp servers

オープン
#1,172 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
35/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
csharp
領域
backend

調査の方向性

builder.Services.AddSingleton(new StreamServerTransport(inputStream, outputStream)) の登録から始め、StreamServerTransport が同一プロセス内の MCP Server にどのように接続されているかを調べます。チャネルとサービスのライフタイムに関する前提を追跡し、その後、複数の MCP Server クラスを別々のチャネルで同一プロセス内に宣言できることを確認します。

索引モデルが issue の本文から書いたものです。

説明

enhancement needs confirmation P3

The current implementation register the stream support as a singleton:

builder.Services.AddSingleton<ITransport>(new StreamServerTransport(inputStream, outputStream));

This prevents declaring multiple MCP Server classes in-process and using them with a separate channels.

Reasons for this choice:

  • creating MCP servers in a separate class library so that they can be instantiated in-process or out-of-process depending on the app
  • ability to clearly separate the tools, prompts and resources. Currently I have to mix all the in-process prompts, resources and tools in a single MCP server to be used in-process.
  • avoid creating a separate process just because of the library limitation (performance reasons)

As I mentioned in a discussion, the Model Context Protocol adhere to the "transparency" principle, but the library makes it very difficult to reach. This is the reason why I tagged this as a bug.

主要言語
C#
スター
4.5k
フォーク
814
平均マージ
9日 19時間
マージ済み PR(30日)
4

コントリビューションガイド

コントリビューションガイドを開く

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

modelcontextprotocol/csharp-sdk のほかの issue

modelcontextprotocol/csharp-sdk の issue をすべて見る

似ている issue

C# の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。