Completions follow-ups
I maintainer di solito rispondono entro 1 giorno
@weiwastron ci sta già lavorando.
Dal 16/11/2026.
Valutazione
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Idoneità per principianti
- 55/100
- Tipo di issue
- Bug
- Chiarezza
- Abbastanza chiara
- Stato di attività
- Attiva
- Stack tecnologico
- java
- Ambito
- backend-api-design
Direzione di ricerca
Read the follow-up items alongside the #1316 review, then trace CompletionsFeature.handle, CompleteReference, McpFeature.completionRefTypes(), and ResourcesFeature.complete. Check the completion tests for missing-type refs, custom ref types, and concrete resource URIs; compare the resource behavior with the legacy McpAsyncServer. Confirm the intended concrete-resource behavior before treating that item as done.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Follow-ups from the review of #1316. Each item can go in its own small PR.
-
A
refwithouttypereturns an internal error instead of invalid params.CompletionsFeature.handlelooks upbyRefType.get(ref.get("type")).byRefTypecomes fromMap.copyOf, andget(null)on an immutable map throws an NPE, so a request like{"ref": {"name": "x"}, ...}gets -32603 instead of -32602. -
McpFeature.completionRefTypes()can't serve a new reference type.CompletionsFeaturedecodes every request intoCompleteRequestbefore callingfeature.complete(...).CompleteReferenceonly listsref/promptandref/resourcein@JsonSubTypes, so a feature that declaresref/customis advertised and routed to, but decoding fails with -32602 "Malformed CompleteRequest" beforecomplete()runs. Today a custom feature can only take over one of the two built-in types. Either remove the extension point until there's a use case, or letcomplete()take the raw params, ashandle()does. -
ref/resourcewith a concrete resource URI is rejected.ResourcesFeature.completeonly resolvesref/resourcethrough an exactfindTemplatematch, so a reference to an existing resource such astest://static-textgets -32602 "Unknown resource template". The legacyMcpAsyncServerreturns an empty completion here, so the two server stacks now differ. Confirm if this is intentional
- Lingua principale
- Java
- Stelle
- 3.8k
- Fork
- 1.1k
- Merge medio
- 1g 3h
- PR unite (30g)
- 38
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Ha un modello di pull request
- Leggi 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.
Altre issue di modelcontextprotocol/java-sdk
-
Modern `HttpServletMcpTransport` does not check `Mcp-Name` when `params.name` or `params.uri` is not a JSON stringForse già presa @starryeye l’ha presa oggi. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
modelcontextprotocol/java-sdk#1352 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
Unknown tool error always says "Unknown tool: invalid_tool_name" instead of the name that was calledAperta
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 85/100
modelcontextprotocol/java-sdk#1346 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 64/100
modelcontextprotocol/java-sdk#1345 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
Tool result _meta is lost when the server automatically adds text content for structured outputApertaarea/server legacy P3
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
modelcontextprotocol/java-sdk#1330 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
Client request handlers that complete empty send no JSON-RPC responseForse già presa @1fanwang l’ha presa 83 giorni fa. Apertaarea/client bug P2
Difficoltà 2/5 1-3 ore Idoneità per principianti 84/100
modelcontextprotocol/java-sdk#1124 · 6 commenti ·
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di modelcontextprotocol/java-sdk
Issue simili
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 65/100
-
crash
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 74/100
-
account bug course exam iris lecture
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
I maintainer di solito rispondono entro 1 giorno