feat(examples): add Java WebFlux MCP server example#439
feat(examples): add Java WebFlux MCP server example#439apappascs wants to merge 1 commit intomodelcontextprotocol:mainfrom
Conversation
- Spring Boot 3.5 + MCP Java SDK 0.17.2 with WebFlux Streamable HTTP transport - calculate tool with add, subtract, multiply, divide operations - interactive calculator UI via ext-apps SDK (CDN) - 3 MCP prompts: quick-calc, compare-numbers, percentage - CSP metadata on content items for unpkg.com script loading
|
cc: @tzolov |
|
Here's my Open Source example example using Java 25 with Virtual Threads and Spring Boot 4.0 / Spring AI 2.0. https://github.com/schlpbch/open-meteo-mcp-java The Open-Meteo MCP Java server provides weather, air quality, and conversational AI capabilities through three distinct API endpoints with enterprise-grade security and real-time streaming in a modular, containerized architecture: 🔌 Three API Endpoints |
|
If interested I gladly extract only the MCP part and contribute! |
Summary
Add a Java WebFlux example server demonstrating the MCP Java SDK with Spring Boot and Streamable HTTP transport.
Motivation and Context
The existing examples are all TypeScript/Python. This adds the first Java example, showing how to build an MCP Apps server using the official MCP Java SDK (mcp-spring-webflux) with Spring Boot WebFlux and Streamable HTTP transport. It serves as a starter template for Java developers.
How Has This Been Tested?
Breaking Changes
None. This is a new example — no existing code is modified.
Types of changes
Checklist
Additional context