From e3f0bd1f8bbb13619e58c9093301b9642784f1e5 Mon Sep 17 00:00:00 2001 From: Mark Pollack Date: Mon, 10 Feb 2025 23:42:00 -0500 Subject: [PATCH] Minor updates to book-library/starter-webflux-server --- .../book-library/starter-webflux-server/README.md | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/model-context-protocol/book-library/starter-webflux-server/README.md b/model-context-protocol/book-library/starter-webflux-server/README.md index 45ebb61..15d5f15 100644 --- a/model-context-protocol/book-library/starter-webflux-server/README.md +++ b/model-context-protocol/book-library/starter-webflux-server/README.md @@ -23,9 +23,20 @@ The project provides: The server uses WebFlux transport mode by default: ```bash -java -jar target/mcp-webflux-server-starter-0.0.1-SNAPSHOT.jar +./mvnw spring-boot:run ``` +## Running the Client Test + +After starting the server, you can run the WebFlux SSE client test located in `src/test/java/org/springframework/ai/mcp/sample/client/ClientWebFluxSse.java`. This test demonstrates how to connect to the server using Spring WebFlux's SSE transport. + +To run the test: +1. Ensure the server is running (previous step) +2. Open `ClientWebFluxSse.java` in your IDE +3. Run the main method in `ClientWebFluxSse` class + +The test creates a WebFlux SSE client that connects to `http://localhost:8080` and demonstrates the client-server interaction using the Model Context Protocol. + ## Available Tools ### OpenLibrary Tools