McpServerFeatures.AsyncResourceSpecification
.@Deprecated
public static class McpServerFeatures.AsyncResourceRegistration
extends java.lang.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));
}
)
构造器和说明 |
---|
AsyncResourceRegistration()
已过时。
|
限定符和类型 | 方法和说明 |
---|---|
McpServerFeatures.AsyncResourceSpecification |
toSpecification()
已过时。
|
public McpServerFeatures.AsyncResourceSpecification toSpecification()