Skip to content

Commit c9c59aa

Browse files
committed
.
Signed-off-by: He-Pin <[email protected]>
1 parent 275244b commit c9c59aa

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

mcp-core/src/main/java/io/modelcontextprotocol/spec/McpClientSession.java

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,11 @@ private void dismissPendingResponses() {
145145
this.pendingResponses.clear();
146146
}
147147

148-
private void handle(McpSchema.JSONRPCMessage message) {
148+
/**
149+
* An extension point for handling incoming JSON-RPC messages.
150+
* @param message The incoming JSON-RPC message
151+
*/
152+
protected void handle(McpSchema.JSONRPCMessage message) {
149153
if (message instanceof McpSchema.JSONRPCResponse response) {
150154
logger.debug("Received response: {}", response);
151155
if (response.id() != null) {

0 commit comments

Comments
 (0)