public static class McpServerFeatures.SyncResourceSpecification extends Object
Example resource specification:
new McpServerFeatures.SyncResourceSpecification(
new Resource("docs", "Documentation files", "text/markdown"),
(exchange, request) -> {
String content = readFile(request.getPath());
return new ReadResourceResult(content);
})
McpSchema.ReadResourceRequest.Copyright © 2025. All rights reserved.