Interface McpTransport.McpHandler
- Enclosing interface:
McpTransport
public static interface McpTransport.McpHandler
Functional interface for handling incoming MCP messages.
-
Method Summary
Modifier and TypeMethodDescriptionhandleMessage(String sessionId, String message) Processes an incoming message and returns a future for the response.
-
Method Details
-
handleMessage
Processes an incoming message and returns a future for the response.- Parameters:
sessionId- The ID of the session that sent the message.message- The raw JSON-RPC message string.- Returns:
- A CompletableFuture that will be completed with the JSON-RPC response, or null if no immediate response is required (e.g. for notifications).
-