modelcontextprotocol / modelcontextprotocol/csharp-sdk
Middleware tools list (different tool set based on user access)
Dieses Issue hat noch niemand übernommen.
- Vorherrschende Sprache
- C#
- Sterne
- 4.5k
- Forks
- 814
- Ø Merge
- 9 T. 19 Std.
- Gemergte PRs (30 T.)
- 4
Beschreibung
Is your feature request related to a problem? Please describe.
Cannot implement dynamic list of tools per user. My MCP will support many users at the same time. Each user has a different tool set based on his current project.
Describe the solution you'd like
Incapsulated middleware tools list management. The list of tools could be loaded based on custom list of tools of a user from my custom database and applied into csharp-sdk api to expose it to MCP client as usual for the connection.
Additional context
The MCP server by default has no tools. Just after user got connected Unity Engine via SignalR using token, the list of tools dynamically got fetched from Unity Engine. Then user may use an MCP client to connect to the MCP server with the access token and start using the tools. User may even create brand new custom tool inside of the Unity Engine and the tool will be uploaded to the MCP server into private tools list.
Beitragsleitfaden
Erste Schritte
- Lies das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreib ins Issue, dass du es übernimmst — das erspart doppelte Arbeit.
- Forke das Repository und arbeite in einem Branch.
- Öffne einen Pull Request, der die Issue-Nummer nennt.
Rechercherichtung
Das Issue nennt die csharp-sdk-API, die Verwaltung der Tool-Liste in der Middleware und den MCP-Verbindungsablauf, aber keine Dateien oder Tests. Beginne damit, die API- und Middleware-Schnittstellen zum Registrieren von Tools zu finden, und lege dann fest, wie die benutzerdefinierte Tool-Liste eines Benutzers nach der access-token-Authentifizierung geladen und angewendet wird. Als erledigt gilt die Aufgabe, wenn verschiedene Benutzer ihre eigenen Tool-Listen erhalten können und MCP-Clients diese Tools für die Verbindung sehen.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- csharp
- Bereich
- api, backend
- Issue-Typ
- Feature
- Schwierigkeit
- 5/5
- Geschätzter Aufwand
- Über eine Woche
- Aktivitätsstatus
- Veraltet
- Klarheit
- Muss geklärt werden
- Anfängerfreundlichkeit
- 35/100