Will Sentinel support SpringAI MCP adapter
Issue Description
Type: feature request
Describe what feature you want
Sentinel support SpringAI MCP adapter.
Describe your initial design (if present)
Additional context
This is a solid proposal. We’re actively planning to implement this functionality. Please feel free to share additional use cases or technical requirements in this issue—contributions are welcome! Based on my current understanding, the Spring AI MCP server can be exposed via WebMvc or WebFlux, so the existing WebMvc adapter and WebFlux adapter should cover this use case. I'll validate this approach in the near future (note that the WebFlux adapter may require a new release for full compatibility). Feel free to share any insights or technical considerations you have - let's discuss further!
Thanks for your reply.In the WebMvc mode (sse), since the MCP call is made using the JSON RPC method, the request URL is fixed(sseMessageEndpoint,default value:/mcp/message) and it is not possible to perform traffic control on the specified tool.
requestBody example:
{
"method": "tools/call",
"params": {
"name": "youMcpMethod",
"arguments": {
"param1": "1"
}
},
"jsonrpc": "2.0",
"id": 4
}
This approach would indeed require additional support, particularly for appending the information to the resource and handling Server-Sent Events (SSE) scenarios. Implementing DeferredResultProcessingInterceptor may be necessary for proper support. The issue has been labeled as Help Wanted in our repository.