We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 275244b commit c9c59aaCopy full SHA for c9c59aa
mcp-core/src/main/java/io/modelcontextprotocol/spec/McpClientSession.java
@@ -145,7 +145,11 @@ private void dismissPendingResponses() {
145
this.pendingResponses.clear();
146
}
147
148
- private void handle(McpSchema.JSONRPCMessage message) {
+ /**
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) {
153
if (message instanceof McpSchema.JSONRPCResponse response) {
154
logger.debug("Received response: {}", response);
155
if (response.id() != null) {
0 commit comments