modelcontextprotocol / modelcontextprotocol/java-sdk
standardize tool metadata by adding annotation classes to sdk
Nessuno ha ancora preso questa issue.
- Lingua principale
- Java
- Stelle
- 3.7k
- Fork
- 1.1k
- Merge medio
- 1g 15h
- PR unite (30g)
- 9
Descrizione
Expected Behavior
It would be ideal to have Tool annotation classes (specifically Tool/ToolParam) be added to the mcp-java-sdk.
Current Behavior
Multiple, tool-specific annotations exist, the most prominent being spring's:
These annotations (and the one interface dependency) should be a part of the java mcp-sdk itself, rather than require spring dependencies (or other emerging implementations).
Context
b
It would be helpful to have Tool/ToolParam/ToolAnnotations/ToolResult annotations that are part of the java sdk, so that the MCP developer would not have to change annotations to use a different framework. Having Tool/ToolParam/ToolAnnotations/ToolResult annotations as part of the mcp itself rather than spring or any other specific framework would aid in that effort.
Guida per i contributori
Apri la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Direzione di ricerca
Inizia esaminando la directory delle annotazioni Spring AI collegata nell’issue e confrontando le annotazioni Tool, ToolParam, ToolAnnotations e ToolResult con l’attuale mcp-java-sdk. Il lavoro è completato quando l’SDK fornisce equivalenti indipendenti dal framework, così che gli sviluppatori MCP possano usare le stesse annotazioni senza Spring o un’altra dipendenza dall’implementazione.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- java, spring
- Ambito
- api, backend-api-design
- Tipo di issue
- Funzionalità
- Difficoltà
- 5/5
- Tempo stimato
- Più di una settimana
- Stato di attività
- Ferma
- Chiarezza
- Abbastanza chiara
- Idoneità per principianti
- 38/100