Package io.modelcontextprotocol.server
Interface McpStatelessRequestHandler<R>
- Type Parameters:
R- type of the MCP response
public interface McpStatelessRequestHandler<R>
Handler for MCP requests in a stateless server.
- Author:
- Dariusz Jędrzejczyk
-
Method Summary
Modifier and TypeMethodDescriptionreactor.core.publisher.Mono<R>handle(McpTransportContext transportContext, Object params) Handle the request and complete with a result.
-
Method Details
-
handle
Handle the request and complete with a result.- Parameters:
transportContext-McpTransportContextassociated with the transportparams- the payload of the MCP request- Returns:
- Mono which completes with the response object
-