Completions follow-ups
维护者通常 1 天内回复
@weiwastron 已经在做这个了。
开始于 2026年11月16日。
评估
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 新手友好度
- 55/100
- Issue 类型
- 缺陷
- 描述清晰度
- 基本清楚
- 活跃度
- 活跃
- 技术栈
- java
调研方向
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.
由索引模型根据 Issue 内容生成。
描述
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
- 主要语言
- Java
- 星标
- 3.8k
- 派生
- 1.1k
- 平均合并
- 1 天 3 小时
- 30 天内合并 PR
- 38
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
modelcontextprotocol/java-sdk 的其他 Issue
-
Modern `HttpServletMcpTransport` does not check `Mcp-Name` when `params.name` or `params.uri` is not a JSON string可能已有人在做 @starryeye 今天认领。 未关闭
难度 2/5 1-3 小时 新手友好度 75/100
modelcontextprotocol/java-sdk#1352 · 1 条评论 ·
维护者通常 1 天内回复
-
Unknown tool error always says "Unknown tool: invalid_tool_name" instead of the name that was called未关闭
难度 1/5 1 小时以内 新手友好度 85/100
modelcontextprotocol/java-sdk#1346 · 1 条评论 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 64/100
modelcontextprotocol/java-sdk#1345 · 1 条评论 ·
维护者通常 1 天内回复
-
area/server legacy P3
难度 2/5 1-3 小时 新手友好度 72/100
modelcontextprotocol/java-sdk#1330 · 1 条评论 ·
维护者通常 1 天内回复
-
Client request handlers that complete empty send no JSON-RPC response可能已有人在做 @1fanwang 于 83 天前认领。 未关闭area/client bug P2
难度 2/5 1-3 小时 新手友好度 84/100
modelcontextprotocol/java-sdk#1124 · 6 条评论 ·
维护者通常 1 天内回复
查看 modelcontextprotocol/java-sdk 的全部 Issue
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 65/100
-
crash
难度 2/5 1-3 小时 新手友好度 72/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 78/100
-
难度 2/5 1-3 小时 新手友好度 74/100
-
account bug course exam iris lecture
难度 2/5 1-3 小时 新手友好度 72/100
维护者通常 1 天内回复