Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
*
* <p>
* Example usage: <pre>{@code
* &#64;McpElicitation(clients = "my-client-id")
* @McpElicitation(clients = "my-client-id")
* public ElicitResult handleElicitationRequest(ElicitRequest request) {
* return ElicitResult.builder()
* .message("Generated response")
Expand All @@ -33,7 +33,7 @@
* .build();
* }
*
* &#64;McpElicitation(clients = "my-client-id")
* @McpElicitation(clients = "my-client-id")
* public Mono<ElicitResult> handleAsyncElicitationRequest(ElicitRequest request) {
* return Mono.just(ElicitResult.builder()
* .message("Generated response")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,14 +29,12 @@
*
* <p>
* Example usage: <pre>{@code
* &#64;McpLogging
* @McpLogging
* public void handleLoggingMessage(LoggingMessageNotification notification) {
* // Handle the notification
* }
*
*

&#64;McpLogging
* @McpLogging
* public void handleLoggingMessageWithParams(LoggingLevel level, String logger, String data) {
* // Handle the logging message
* }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
*
* <p>
* Example usage: <pre>{@code
* &#64;McpProgress(clientId = "my-client-id")
* @McpProgress(clientId = "my-client-id")
* public void handleProgressMessage(ProgressNotification notification) {
* // Handle the progress notification
* }</pre>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,14 +28,14 @@
*
* <p>
* Example usage: <pre>{@code
* &#64;McpPromptListChanged(clients = "test-client")
* @McpPromptListChanged(clients = "test-client")
* public void onPromptListChanged(List<McpSchema.Prompt> updatedPrompts) {
* // Handle prompt list change notification with the updated prompts
* logger.info("Prompt list updated, now contains {} prompts", updatedPrompts.size());
* // Process the updated prompt list
* }
*
* &#64;McpPromptListChanged(clients = "test-client")
* @McpPromptListChanged(clients = "test-client")
* public Mono<Void> onPromptListChangedAsync(List<McpSchema.Prompt> updatedPrompts) {
* // Handle prompt list change notification asynchronously
* return processUpdatedPrompts(updatedPrompts);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,14 +28,14 @@
*
* <p>
* Example usage: <pre>{@code
* &#64;McpResourceListChanged(clients = "test-client")
* @McpResourceListChanged(clients = "test-client")
* public void onResourceListChanged(List<McpSchema.Resource> updatedResources) {
* // Handle resource list change notification with the updated resources
* logger.info("Resource list updated, now contains {} resources", updatedResources.size());
* // Process the updated resource list
* }
*
* &#64;McpResourceListChanged(clients = "test-client")
* @McpResourceListChanged(clients = "test-client")
* public Mono<Void> onResourceListChangedAsync(List<McpSchema.Resource> updatedResources) {
* // Handle resource list change notification asynchronously
* return processUpdatedResources(updatedResources);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,15 +28,15 @@
*
* <p>
* Example usage: <pre>{@code
* &#64;McpSampling(clients = "test-client")
* @McpSampling(clients = "test-client")
* public CreateMessageResult handleSamplingRequest(CreateMessageRequest request) {
* // Process the request and return a result
* return CreateMessageResult.builder()
* .message("Generated response")
* .build();
* }
*
* &#64;McpSampling(clients = "test-client")
* @McpSampling(clients = "test-client")
* public Mono<CreateMessageResult> handleAsyncSamplingRequest(CreateMessageRequest request) {
* // Process the request asynchronously and return a result
* return Mono.just(CreateMessageResult.builder()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,14 +28,14 @@
*
* <p>
* Example usage: <pre>{@code
* &#64;McpToolListChanged(clients = "test-client")
* @McpToolListChanged(clients = "test-client")
* public void onToolListChanged(List<McpSchema.Tool> updatedTools) {
* // Handle tool list change notification with the updated tools
* logger.info("Tool list updated, now contains {} tools", updatedTools.size());
* // Process the updated tool list
* }
*
* &#64;McpToolListChanged(clients = "test-client")
* @McpToolListChanged(clients = "test-client")
* public Mono<Void> onToolListChangedAsync(List<McpSchema.Tool> updatedTools) {
* // Handle tool list change notification asynchronously
* return processUpdatedTools(updatedTools);
Expand Down