public static class McpServerFeatures.AsyncResourceSpecification
extends java.lang.Object
Example resource specification:
new McpServerFeatures.AsyncResourceSpecification(
new Resource("docs", "Documentation files", "text/markdown"),
(exchange, request) ->
Mono.fromSupplier(() -> readFile(request.getPath()))
.map(ReadResourceResult::new)
)
构造器和说明 |
---|
AsyncResourceSpecification() |