S
Spring Webflux MCP Context
作者 @Kehrlann
Sample for explaining context propagation in Spring
创建于 5/13/2026
更新于 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.
快速设置
此服务器的安装指南
安装命令 (包未发布)
git clone https://github.com/Kehrlann/spring-webflux-mcp-context
手动安装: 请查看 README 获取详细的设置说明和所需的其他依赖项。
Cursor 配置 (mcp.json)
{
"mcpServers": {
"kehrlann-spring-webflux-mcp-context": {
"command": "git",
"args": [
"clone",
"https://github.com/Kehrlann/spring-webflux-mcp-context"
]
}
}
}