File tree Expand file tree Collapse file tree
src/main/java/io/modelcontextprotocol/spec Expand file tree Collapse file tree Original file line number Diff line number Diff line change 77 <parent >
88 <groupId >io.modelcontextprotocol.sdk</groupId >
99 <artifactId >mcp-parent</artifactId >
10- <version >1.2 .0</version >
10+ <version >1.3 .0</version >
1111 </parent >
1212
1313 <artifactId >mcp-bom</artifactId >
Original file line number Diff line number Diff line change 66 <parent >
77 <groupId >io.modelcontextprotocol.sdk</groupId >
88 <artifactId >mcp-parent</artifactId >
9- <version >1.2 .0</version >
9+ <version >1.3 .0</version >
1010 <relativePath >../../pom.xml</relativePath >
1111 </parent >
1212 <artifactId >mcp-spring-webflux</artifactId >
Original file line number Diff line number Diff line change 66 <parent >
77 <groupId >io.modelcontextprotocol.sdk</groupId >
88 <artifactId >mcp-parent</artifactId >
9- <version >1.2 .0</version >
9+ <version >1.3 .0</version >
1010 <relativePath >../../pom.xml</relativePath >
1111 </parent >
1212 <artifactId >mcp-spring-webmvc</artifactId >
Original file line number Diff line number Diff line change 66 <parent >
77 <groupId >io.modelcontextprotocol.sdk</groupId >
88 <artifactId >mcp-parent</artifactId >
9- <version >1.2 .0</version >
9+ <version >1.3 .0</version >
1010 </parent >
1111 <artifactId >mcp-test</artifactId >
1212 <packaging >jar</packaging >
Original file line number Diff line number Diff line change 66 <parent >
77 <groupId >io.modelcontextprotocol.sdk</groupId >
88 <artifactId >mcp-parent</artifactId >
9- <version >1.2 .0</version >
9+ <version >1.3 .0</version >
1010 </parent >
1111 <artifactId >mcp</artifactId >
1212 <packaging >jar</packaging >
Original file line number Diff line number Diff line change @@ -213,8 +213,14 @@ else if (message instanceof McpSchema.JSONRPCNotification notification) {
213213 // happening first
214214 logger .debug ("Received notification: {}" , notification );
215215 // TODO: in case of error, should the POST request be signalled?
216- return handleIncomingNotification (notification )
217- .doOnError (error -> logger .error ("Error handling notification: {}" , error .getMessage ()));
216+ if (proxySession ) {
217+ logger .debug ("Sending notification to original server via proxy: {}" , notification );
218+ return this .transport .sendMessage (notification ).then (Mono .empty ());
219+ }
220+ else {
221+ return handleIncomingNotification (notification )
222+ .doOnError (error -> logger .error ("Error handling notification: {}" , error .getMessage ()));
223+ }
218224 }
219225 else {
220226 logger .warn ("Received unknown message type: {}" , message );
Original file line number Diff line number Diff line change 66
77 <groupId >io.modelcontextprotocol.sdk</groupId >
88 <artifactId >mcp-parent</artifactId >
9- <version >1.2 .0</version >
9+ <version >1.3 .0</version >
1010
1111 <packaging >pom</packaging >
1212 <url >https://github.com/modelcontextprotocol/java-sdk</url >
You can’t perform that action at this time.
0 commit comments