public static class McpServerFeatures.AsyncResourceSpecification extends Object
Example resource specification:
new McpServerFeatures.AsyncResourceSpecification(
new Resource("docs", "Documentation files", "text/markdown"),
(exchange, request) ->
Mono.fromSupplier(() -> readFile(request.getPath()))
.map(ReadResourceResult::new)
)
Copyright © 2025. All rights reserved.