Java MCP Server examples are incomplete and non-runnable
还没有人认领这个 Issue。
评估
- 难度
- 3/5
- 预计耗时
- 1-2 天
- 新手友好度
- 45/100
- Issue 类型
- 文档
- 描述清晰度
- 基本清楚
- 活跃度
- 停滞
- 技术栈
- java
调研方向
从 https://modelcontextprotocol.io/sdk/java/mcp-server 的 Java MCP Server 文档开始,检查 WebFlux stateless 代码片段、其 Maven 依赖,以及缺失的配置或入口点。完成的标准是:文档包含一个完整的最小 Java 11 Hello World 示例,具有可解析的依赖和足够的设置,使其无需进一步研究即可复制、编译和运行。
由索引模型根据 Issue 内容生成。
描述
Bug description
The current documentation examples for the Java MCP Server are incomplete and non-functional. Dependencies referenced in the code snippets cannot be resolved, and critical components (e.g., main class, configuration, or entry point) are missing. There is no working “Hello World” example to verify basic setup and functionality, making it impossible for new users to get started.
Environment
Spring MCP version: 0.16.0 with webflux implementation
Java version: Java 11
Build tool: Maven
IDE: Eclipse
Steps to reproduce
Go to the official Spring MCP documentation (e.g., https://modelcontextprotocol.io/sdk/java/mcp-server).
Copy the provided code snippets with webflux stateless into a new Java project.
Attempt to compile or run the code.
Observe unresolved dependencies
Expected behavior
The documentation should provide a complete, minimal, and runnable Java example that:
Includes all necessary dependencies (with Maven/Gradle snippets).
Contains a working demo example.
Demonstrates a basic “Hello World” endpoint or service.
Can be copied, pasted, and run immediately without additional research or guessing.
Minimal Complete Reproducible example
- 主要语言
- Java
- 星标
- 3.7k
- 派生
- 1.1k
- 平均合并
- 1 天 15 小时
- 30 天内合并 PR
- 9
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
modelcontextprotocol/java-sdk 的其他 Issue
-
area/transport bug P2
难度 2/5 1-3 小时 新手友好度 88/100
modelcontextprotocol/java-sdk#1136 ·
-
area/client bug P2
难度 2/5 1-3 小时 新手友好度 84/100
modelcontextprotocol/java-sdk#1124 · 1 条评论 ·
-
ServerCapabilities.logging is added unconditionally, overriding the caller's explicit capabilities 未关闭bug P2 ready for work
难度 2/5 1-3 小时 新手友好度 68/100
modelcontextprotocol/java-sdk#1086 · 1 条评论 ·
-
enhancement good first issue P3
难度 2/5 1-3 小时 新手友好度 82/100
modelcontextprotocol/java-sdk#1067 ·
-
bug P2 ready for work
难度 2/5 1-3 小时 新手友好度 74/100
modelcontextprotocol/java-sdk#898 · 1 条评论 ·
查看 modelcontextprotocol/java-sdk 的全部 Issue
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 75/100
elastic/gradle-plugins#157 ·
-
enhancement Tools
难度 1/5 1 小时以内 新手友好度 75/100
-
难度 2/5 1-3 小时 新手友好度 70/100
apache/rocketmq-dashboard#5008 ·
-
bug
难度 2/5 1-3 小时 新手友好度 75/100
-
DETECT_PARAMETER_NAMES=false silently disables @ConstructorProperties-based Creator detection too 未关闭
难度 2/5 1-3 小时 新手友好度 70/100
FasterXML/jackson-databind#6229 ·