modelcontextprotocol / modelcontextprotocol/java-sdk
Java MCP Server examples are incomplete and non-runnable
还没有人认领这个 Issue。
- 主要语言
- Java
- 星标
- 3.7k
- 派生
- 1.1k
- 平均合并
- 1 天 15 小时
- 30 天内合并 PR
- 9
描述
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
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
调研方向
从 https://modelcontextprotocol.io/sdk/java/mcp-server 的 Java MCP Server 文档开始,检查 WebFlux stateless 代码片段、其 Maven 依赖,以及缺失的配置或入口点。完成的标准是:文档包含一个完整的最小 Java 11 Hello World 示例,具有可解析的依赖和足够的设置,使其无需进一步研究即可复制、编译和运行。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- java
- 领域
- documentation
- Issue 类型
- 文档
- 难度
- 3/5
- 预计耗时
- 1-2 天
- 活跃度
- 停滞
- 描述清晰度
- 基本清楚
- 新手友好度
- 45/100