McpServerFeatures.AsyncResourceSpecification.@Deprecated public static class McpServerFeatures.AsyncResourceRegistration extends Object
Example resource registration:
new McpServerFeatures.AsyncResourceRegistration(
new Resource("docs", "Documentation files", "text/markdown"),
request -> {
String content = readFile(request.getPath());
return Mono.just(new ReadResourceResult(content));
}
)
| Constructor and Description |
|---|
AsyncResourceRegistration()
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
McpServerFeatures.AsyncResourceSpecification |
toSpecification()
Deprecated.
|
public McpServerFeatures.AsyncResourceSpecification toSpecification()
Copyright © 2025. All rights reserved.