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

Host multiple MCP servers with different HTTP endpoints in one process using keyed services

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

メンテナーはふだん 1 日以内に返信

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

評価

難易度
5/5
見積もり時間
1週間以上
初心者へのやさしさ
38/100
issue の種類
機能追加
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
csharp
領域
api, backend

調査の方向性

既存の MapMcp HTTP マッピングと dependency injection 登録のエントリポイントの調査から始めます。キー付きサービスで複数の MCP サーバーとルートをサポートし、各エンドポイントでツールのサブセットを公開する方法を確認します。1 つの ASP.NET Core プロセス内で複数のキー付きサーバーを登録し、それぞれを異なる HTTP エンドポイントにマッピングできれば完了です。

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

説明

enhancement needs confirmation

Is your feature request related to a problem? Please describe.

In my "modulith" (ASP.NET Core) application I want to provide multiple MCP servers/endpoints, so that every endpoint delivers a subset of tools, so that MCP clients are not "overwhelmed" by the amount of tools.

Describe the solution you'd like

I would like to register multiple MCP server as keyed services in dependency injection and call MapMcp multiple times with different routes providing the key used for the keyed services.

builder.AddKeyedMcpServer("key", ...) // etc.

app.MapKeyedMcp("key", "/mcp/key", ...) // etc.

Describe alternatives you've considered

I haven't considered alternatives, because keyed services seems natural for me. Only viable alternative would be "going microservices" and split the application into multiple containers.

主要言語
C#
スター
4.6k
フォーク
817
平均マージ
8日 7時間
マージ済み PR(30日)
3

環境構築

Codespaces で開く

このプロジェクトの開発コンテナを、あなたの GitHub アカウントでブラウザ上に起動します。

はじめの一歩

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

modelcontextprotocol/csharp-sdk のほかの issue

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

似ている issue

C# の issue をもっと見る

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

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