modelcontextprotocol / modelcontextprotocol/java-sdk
Add group to tools
Dieses Issue hat noch niemand übernommen.
- Vorherrschende Sprache
- Java
- Sterne
- 3.7k
- Forks
- 1.1k
- Ø Merge
- 1 T. 15 Std.
- Gemergte PRs (30 T.)
- 9
Beschreibung
Hello, I would like to add a group request endpoint, and mark which group it belongs to when registering tools. When using the SSE endpoint, describe the group in the path or parameters. When the client pulls the tool list, it returns the tools of the specified group (if no group is specified, all are returned).
I expect to solve the problem:
1 When a server has many tools, I don't want to use multiple endpoints to group these tools, which is simpler when used in a framework like Spring.
2 Configure different groups to express different agents by obtaining different tool lists.
Note: Alternatively, add a group by interface to handle the group names passed by the SSE endpoint. This interface receives the group name and tools list context, and returns the tools list corresponding to the group name.
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
Beginne damit, den bestehenden SSE-Endpunkt, den Ablauf der Tool-Registrierung und die Antwort auf die Tool-Liste nachzuverfolgen. Überprüfe, wie Anfrageparameter und registrierte Tools derzeit verarbeitet werden, bevor du zwischen Änderungen am Endpunkt und einer Gruppierungsschnittstelle entscheidest. Als abgeschlossen gilt die Aufgabe, wenn ein Server Tools nach Gruppen registrieren, über SSE eine Gruppe anfordern und entweder diese Gruppe oder alle Tools empfangen kann, wenn keine Gruppe angegeben ist.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- java
- Bereich
- api, backend-api-design
- Issue-Typ
- Feature
- Schwierigkeit
- 4/5
- Geschätzter Aufwand
- 3-5 Tage
- Aktivitätsstatus
- Veraltet
- Klarheit
- Größtenteils klar
- Anfängerfreundlichkeit
- 35/100