S
Spring Webflux MCP Context
by @Kehrlann
Sample for explaining context propagation in Spring
Created 5/13/2026
Updated about 3 hours ago
README
Repository documentation and setup instructions
Context propagation in Spring MCP
Sample showcasing how to use Spring AI MCP, to make a Stateless Async MCP server, and custom authentication using a WebFilter.
Run with:
./mvnw spring-boot:run
Access by using the MCP inspector:
npx @modelcontextprotocol/inspector
And target the server at http://localhost:8080/mcp.
Connect, go to "Tools", list the tools then call the "greet" tool.
Notes
The CorsWebFilter in the demo is only used to allow direct access from the MCP inspector in the browser, without a proxy.
Not required for the full demo.
Quick Setup
Installation guide for this server
Installation Command (package not published)
git clone https://github.com/Kehrlann/spring-webflux-mcp-context
Manual Installation: Please check the README for detailed setup instructions and any additional dependencies required.
Cursor configuration (mcp.json)
{
"mcpServers": {
"kehrlann-spring-webflux-mcp-context": {
"command": "git",
"args": [
"clone",
"https://github.com/Kehrlann/spring-webflux-mcp-context"
]
}
}
}