|
final McpTransportContext transportContext = this.contextExtractor.extract(request); |
I want to add interceptors for MCP tool, but I don't know how to add them.If I want to get something from request'body, I can't get them through this
contextExtractor for the body stream can only be read once.
java-sdk/mcp-spring/mcp-spring-webmvc/src/main/java/io/modelcontextprotocol/server/transport/WebMvcSseServerTransportProvider.java
Line 328 in 082444e
I want to add interceptors for MCP tool, but I don't know how to add them.If I want to get something from request'body, I can't get them through this
contextExtractorfor the body stream can only be read once.