Sentinel icon indicating copy to clipboard operation
Sentinel copied to clipboard

Will Sentinel support SpringAI MCP adapter

Open 24kpure opened this issue 1 month ago • 3 comments

Issue Description

Type: feature request

Describe what feature you want

Sentinel support SpringAI MCP adapter.

Describe your initial design (if present)

Additional context

24kpure avatar Nov 27 '25 05:11 24kpure

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!

LearningGp avatar Nov 27 '25 07:11 LearningGp

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
}

24kpure avatar Dec 01 '25 07:12 24kpure

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.

LearningGp avatar Dec 08 '25 08:12 LearningGp